Forums

Join
bbPress Support ForumsPluginsAdding Social Bookmarking to Posts

Info

Adding Social Bookmarking to Posts

  1. I'd like to add the Add to Any code to a single forum post and I'm not sure which of the many php files to add it to. Code is here - from the WP plugin page:

    <?php echo '<ul class="addtoany_list">';
    if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') )
        ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "
    
    <li>", "html_wrap_close" => "</li>
    ") );
    if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') )
        ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "
    
    <li>", "html_wrap_close" => "</li>
    ") );
    echo ''; ?>

    Wary of adding it anywhere because I just tried a BBpress sitemap plugin that broke the forums. Thanks for the help.

  2. Is this a plugin for bbPress, or how are you getting the functionality?

  3. It's a WP plugin that works for posts and pages, but not for anything else, so I want to put it directly into the BBpress template - not sure where. Here's the plugin:

    http://wordpress.org/extend/plugins/add-to-any/

    And my site: http://www.selfpublishingreview.com

  4. You can't call a WordPress function (or even a function in a WordPress plugin) without doing deep integration between WordPress and bbPress. Normally, someone would create similar functionality in a bbPress plugin so you can use that instead of trying to call the WordPress plugin:

    How about this bbPress plugin from Gautam Gupta:
    http://bbpress.org/plugins/topic/social-it/

  5. Thanks, good to know. Issue is that I'm using Buddypress so I can't access the BBpress admin to activate BBpress-specific plugins (so far as I know). So I think I need to go into php and edit it directly.

  6. You can, by putting on /bb-admin to the end URL of your forums.

    So if your forums are at http://mydomain.com/forums then bbAdmin will be http://mydomain.com/forums/bb-admin

  7. You could also have the plugin auto-load by putting an underscore in front of the plugin file name. So, if this plugin file is named:
    social-it.php

    rename it to:
    _social-it.php
    ^ and see if it works. If it does not, just delete the file and load the forums again.

  8. You must log in to post.