What WP plugin will do this?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DWB
    Registered User
    • Jul 2003
    • 31779

    #1

    What WP plugin will do this?

    I need to be able to add a note or author comment after each blog post and would like to have it highlighted like this is. I see it on many blogs but can't find a plugin to do it.



    Thanks in advance.
  • MrGusMuller
    Confirmed User
    • Oct 2010
    • 1262

    #2
    Edit the post page and had div with proper css and content in it? :S
    StagCMS - Adult CMS - user friendly adult content management system - speed up your websites with no SQL connections
    ICQ: 63*23*43*113

    Comment

    • DWB
      Registered User
      • Jul 2003
      • 31779

      #3
      Originally posted by MrGusMuller
      Edit the post page and had div with proper css and content in it? :S
      Yea I could hard code it in but I'd like to be able to use it on and off. Like an excerpt for example. If you don't put anything there, nothing shows up. Same idea.

      I figured there is plugin for this but I could be wrong.

      Comment

      • MrGusMuller
        Confirmed User
        • Oct 2010
        • 1262

        #4
        try to add this in your /wp-content/themes/YOURTEMPLATE/single.php

        PHP Code:
        <div style="background-color:#f5f5b7; border-color:#e2d6ac; border-style: dashed; padding:10px;">
        
            YOUR MSG
            
        </div> 
        
        before
        PHP Code:
        <div class="comments"> 
        


        You can also create a shortcode for that, like [note msg="blablabla"]....

        Hit me if u need help
        Last edited by MrGusMuller; 02-27-2011, 11:33 AM.
        StagCMS - Adult CMS - user friendly adult content management system - speed up your websites with no SQL connections
        ICQ: 63*23*43*113

        Comment

        • Kiopa_Matt
          Confirmed User
          • Oct 2007
          • 1448

          #5
          It's not a plugin. I don't know Wordpress much expect reverse engineering it, but there's comments, and then there's admin comments, or something to that affect. Maybe it's "author comments".

          Anyway, it's in the CSS. You have to find a theme that supports it, then copy it.

          PS. Don't quote me on that, as I could be wrong. Again, I don't know WP very well.
          xMarkPro -- Ultimate Blog Network Management
          Streamline your marketing operations. Centralize management of domains, pages, Wordpress blogs, sponsors, link codes, media items, sales and traffic statistics, plus more!

          Comment

          • MrGusMuller
            Confirmed User
            • Oct 2010
            • 1262

            #6
            Originally posted by DirtyWhiteBoy
            Yea I could hard code it in but I'd like to be able to use it on and off. Like an excerpt for example. If you don't put anything there, nothing shows up. Same idea.

            I figured there is plugin for this but I could be wrong.

            You can create a shortcode for that.
            Its easy shit.
            Add something like this to ur /wp-content/themes/YOURTHEME/functions.php

            PHP Code:
            function myNote ($atts, $msg)
            {
                
                extract(shortcode_atts(array(
                            "atts" => '',
                            "msg" => ''
                    ), $atts));
             
             return '<div style="background-color:#f5f5b7; border-color:#e2d6ac; border-style: dashed; padding:10px;">'.$msg.'</div>';
                  
            }
            add_shortcode('note', 'myNote'); 
            

            then, in the post that you want to call, write [note msg="blalbla bla bla"] where you want the warning
            Last edited by MrGusMuller; 02-27-2011, 11:44 AM.
            StagCMS - Adult CMS - user friendly adult content management system - speed up your websites with no SQL connections
            ICQ: 63*23*43*113

            Comment

            • Agent 488
              Registered User
              • Feb 2006
              • 22511

              #7
              post the blog you see it on.

              Comment

              • Jdoughs
                Confirmed User
                • Mar 2004
                • 5794

                #8
                Lots of hard solutions for an easy problem.

                Search "WP Author Plugin" in google, there is dozens of them, you could also just add it as a custom field and have a lot more control over it (ie an endless amounts of text/image/author combinations and even advertisements).

                Working it as a custom field allows you to add it wherever you want, but also with any text/image/etc that you want to put.
                LinkSpun - Premier Adult Link Trading Community - ICQ - 464/\281/\250
                Be Seen By New Webmasters/Affiliates * Target out webmasters/affiliates based on niches your sites are for less than $20 a month.
                AmeriNOC - Proudly hosted @ AmeriNOC!

                Comment

                • harvey
                  Confirmed User
                  • Jul 2001
                  • 9266

                  #9
                  you're over complicating things, just do this:

                  Code:
                  <?php if(get_post_meta($post->ID, 'author-comment', true)): ?>
                  <div style="somestyle"><?php echo get_post_meta($post->ID, 'author-comment', true); ?></div>
                  <?php endif; ?>
                  then just use a custom field named author-comment (or whatever) with the text you want and apply the style as you want.

                  Alternatively, if your theme doesn't use excerpts, then you can simply place the_excerpt() there, so you'll only need to add an excerpt to display that text, and if you don't input anything, then nothing will be displayed.
                  This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth

                  Comment

                  • DWB
                    Registered User
                    • Jul 2003
                    • 31779

                    #10
                    Originally posted by MrGusMuller
                    You can create a shortcode for that.
                    Its easy shit.
                    Add something like this to ur /wp-content/themes/YOURTHEME/functions.php

                    PHP Code:
                    function myNote ($atts, $msg)
                    {
                        
                        extract(shortcode_atts(array(
                                    "atts" => '',
                                    "msg" => ''
                            ), $atts));
                     
                     return '<div style="background-color:#f5f5b7; border-color:#e2d6ac; border-style: dashed; padding:10px;">'.$msg.'</div>';
                          
                    }
                    add_shortcode('note', 'myNote'); 
                    

                    then, in the post that you want to call, write [note msg="blalbla bla bla"] where you want the warning
                    My theme is throwing an error when I try this. Saying I can't modify the header.

                    Also flagging me when I try to create a custom field. Grrrrr.

                    It's a Woo Theme.

                    Comment

                    • DWB
                      Registered User
                      • Jul 2003
                      • 31779

                      #11
                      I messed something up in my functions page that was creating the error for the custom field. Working on that now.

                      Comment

                      • DWB
                        Registered User
                        • Jul 2003
                        • 31779

                        #12
                        OK... I think the custom field will work, but how do I tell it to call just 1 key (key is called "note")?

                        If I put the_meta() it calls them all.

                        Comment

                        • DWB
                          Registered User
                          • Jul 2003
                          • 31779

                          #13
                          Originally posted by harvey
                          you're over complicating things, just do this:

                          Code:
                          <?php if(get_post_meta($post->ID, 'author-comment', true)): ?>
                          <div style="somestyle"><?php echo get_post_meta($post->ID, 'author-comment', true); ?></div>
                          <?php endif; ?>
                          then just use a custom field named author-comment (or whatever) with the text you want and apply the style as you want.

                          Alternatively, if your theme doesn't use excerpts, then you can simply place the_excerpt() there, so you'll only need to add an excerpt to display that text, and if you don't input anything, then nothing will be displayed.
                          Bingo, that did the trick.

                          Thanks everyone.

                          Comment

                          • fris
                            Too lazy to set a custom title
                            • Aug 2002
                            • 55679

                            #14
                            Originally posted by DirtyWhiteBoy
                            Bingo, that did the trick.

                            Thanks everyone.
                            if you are using woothemes, they have their own shortcodes for notices. like you see on this page.

                            scoll down

                            http://www.woothemes.com/2011/02/new-ideas-feb-11/

                            more info

                            http://www.woothemes.com/2010/08/woo...rk-shortcodes/

                            http://www.woothemes.com/2011/02/we-...ur-shortcodes/
                            Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.

                            Comment

                            • chris_joseph
                              Confirmed User
                              • Apr 2006
                              • 1056

                              #15
                              check this plug-in http://wordpress.org/extend/plugins/...x/screenshots/
                              Web and Graphic Designer
                              Hit me up on ICQ#291166250

                              Comment

                              Working...