WordPress.org

Ready to get started?Download WordPress

Forums

Sharedaddy
Adding this manually (26 posts)

  1. missgigi
    Member
    Posted 3 years ago #

    Hi,
    I love this plug in very much. Just wondering if there is a manual way to put it on my blog?
    right now where it is placed makes my posts look crazy and I would like to move it around where I want it to show up..thanks.

    http://wordpress.org/extend/plugins/sharedaddy/

  2. John Godley
    Member
    Plugin Author

    Posted 3 years ago #

    There isn't, but that's a good suggestion - I'll add a template tag in the next version.

  3. John Godley
    Member
    Plugin Author

    Posted 3 years ago #

    In 0.2.5 you can use:

    echo sharing_display();

  4. sirajcmr
    Member
    Posted 3 years ago #

    Will I be adding this code in my Single.PHP file?

    echo sharing_display();

    I added above said code, it did not work for me :(. I am wordpress newbie. so not sure whether I am doing it correct.

    Also how do I add Twitter, facebook on front page and all other options in my Post. Can I have 2 settings on Front page and POST?

    Also I would like to have the icons displayed at the top of the POSt, but this allowing me to add only at the end of POST :)

    Please reply

    Thanks and regards

    SiRu

  5. John Godley
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, it can go in single.php

    Do you have the sharing option enabled to show on single posts?

    There is currently no option to show above posts, but if you use the template tag you can position it anywhere you want.

  6. missgigi
    Member
    Posted 3 years ago #

    im running wordpress 3.0.1 will the echo work?
    see the site here
    http://rapfactz.com/site/

    the background of each post is going to be a thought bubble and along the bottom is where i wanted to place the buttons

    right now when i add a background the buttons go into the thought bubble

  7. John Godley
    Member
    Plugin Author

    Posted 3 years ago #

    Yes, it will work in WP 3.0.1 - the 0.2.5 above was referring to the version of the plugin.

  8. fonkyflo
    Member
    Posted 3 years ago #

    Thanks for the cool work, but unfortunately I can not insert sharedaddy via the "echo sharing_display();" manually on a single.php file. Sharedaddy even doesn't show up on a single.php without inserting it manually.
    Can anyone please give me a hint why sharedaddy works fine with the 2010-standard theme but doesn't work correctly in my theme?
    Sharedaddy shows up on index.php but not in single posts.

  9. John Godley
    Member
    Plugin Author

    Posted 3 years ago #

    Not sure I understand - you say you cannot insert it manually, but then say it doesn't show up unless inserted manually.

    Sharedaddy still needs to be configured to appear on posts or index pages, and the template function only works when inside the loop.

  10. fonkyflo
    Member
    Posted 3 years ago #

    Hi John!

    Thanks for your quick response. That's exactly the point where I got stuck. Adding the plugin manually ( echo sharing_display(); ) works perfect in my index.php or home.php file but the plugin output doesn't show up on my single.php.

    I've even got the same problem when I don't insert the plugin manually.
    It's so confusing because your plugin rocks.

    Thanks for all your help.

  11. hixen
    Member
    Posted 3 years ago #

    Using
    <?php echo sharing_display(); ?>

    I have been trying to add it below my content like this.

    <div class="entry-content">
    <p>lorem ipsum dolor sit amet...</p>
    </div>
    <div class="entry-meta">
    <p>yada yada yada</p>
    </div>
    <?php echo sharing_display(); ?>

    But I never get past the closing </div> from <div class="entry-content">

    It works perfectly fine to add it above.

    Anyone got a clue?

  12. John Godley
    Member
    Plugin Author

    Posted 3 years ago #

    fonkyflo, have you tried another theme?

    hixen, the function must be called inside the WordPress loop.

  13. hixen
    Member
    Posted 3 years ago #

    John, i have it inside the loop.

    Here is my code

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The echo sharing_display() always get printed out before my attachment stuff. If your wondering what that is, here is a link:
    http://www.tgrayimages.com/automate-file-attachments-on-your-wordpress-posts/

    It's like plugin looks for the the_content() and prints it right after it. But if it founds sharing_display() before the_content() it happily prints it out, but not after.

    Is there any way I can fix this?

  14. infected
    Member
    Posted 3 years ago #

    Having the same problem. It´s not possible for me to display the share buttons somewhere after the_content(). My theme´s containing a div to display some postinfos like author, rss, trackback etc. That´s the place i want to add the share buttons but it doesn´t work. It´s always displayed directly after the_content().

    URL: http://www.be-infected.de

    [Code moderated as per the Forum Rules. Please use the pastebin]

    I would like to place the buttons at the end of div underpost.

  15. hixen
    Member
    Posted 3 years ago #

    I did never find a solution to this, but since it worked fine to place it above the the_content() i did that and then wrapped it up in a container and absolute positioned it where I wanted it. It was not pretty but it worked for me.

    Just to give you an example what i did:

    <div id="content" style="position:relative;">
        <div class="sharing" style="position:absolute; bottom:0px;">
            <?php echo sharing_display(); ?>
        </div>
        <?php the_title(); ?>
        <?php the_content(); ?>
    </div> <!-- #content -->

    As I said its not pretty, but it did work for me.

  16. infected
    Member
    Posted 3 years ago #

    Hi!

    Thanks for your reply but it isn´t useful for me. Any other ideas?

  17. infected
    Member
    Posted 3 years ago #

    @John: Are there any restrictions where i can use the template tag? I put it on several places inside the loop but it won´t show up at this places.

  18. TheVirtualPreacher
    Member
    Posted 3 years ago #

    Right now I am using 4 different plugins for email, print, retweet and Facebook like.

    This plugin is great, because it's 4 in one and much more. Unfortunately there's no easy way for manual insertion or place it only on top of a post.

  19. cpkid2
    Member
    Posted 3 years ago #

    This would be an awesome feature. I switched to ShareThis because ShareDaddy doesn't have a manual insert option.

  20. DanMichel
    Member
    Posted 3 years ago #

    seriously, there needs to be a fix? anyone fix this?

  21. wetflameecigs
    Member
    Posted 3 years ago #

    wouldnt it be much easier if the author just added this feature to the plugin? How hard can it be to add a option for this?

  22. Navjot Singh
    Member
    Posted 3 years ago #

    +1 for manual insertion. Please add this feature.

  23. Gwyneth Llewelyn
    Member
    Posted 2 years ago #

    I hate ShareThis because it loads gazillions of times the same ultra-heavy JS library, each time their buttons are displayed. But ShareThis works on pretty much every theme out there. To be honest, the number of themes — even hand-crafted ones from scratch — where ShareDaddy actually works is really minimal: out of a hundred or so WP installations, I could only get ShareDaddy to work on a handful.

    I wish that manual insertion worked at all. The echo sharing_display(); sometimes works, but it's rare...

  24. GeekDownUnder
    Member
    Posted 2 years ago #

    If anyone is using the 'ShareDaddy' plugin for their self-hosted blogs I have finally had success with it.

    First I edited the plugins 'sharing-service.php' files to remove the following lines: (you can find them right at the bottom of the file)

    add_filter( 'excerpt_length', 'calculate_excerpt_length' );<br />
    add_filter( 'the_excerpt', 'sharing_display', 19 );<br />
    add_filter( 'the_content', 'sharing_display', 19 );

    The next bit is dependant on your theme files but somewhere you should have a 'loop.php' where your theme builds each post. Find this file and insert the following code wherever you want the ShareDaddy line to appear.

    <?php echo sharing_display(); ?>

    That should work. All the options in the settings page will still work, but this way you don't need to fiddle around with excerpts! Plus this way you have control over where it goes... realistically this plugin should never have been released without such a basic option!

    Hope this can help some of you.

    If anyone would like to see it in action check out my site at http://www.geekdownunder.net :)

  25. stl99
    Member
    Posted 2 years ago #

    @GeekDownUnder

    works fine, thanks a lot!

  26. rajsharma159
    Member
    Posted 2 years ago #

    @GeekDownUnder
    Thanks Mate. It worked perfectly.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags