Skip to:
Content
Pages
Categories
Search
Top
Bottom

Adding Social Bookmarking to Posts


  • myershenry
    Member

    @myershenry

    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.

Viewing 6 replies - 1 through 6 (of 6 total)

  • chrishajer
    Participant

    @chrishajer

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


    myershenry
    Member

    @myershenry

    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:

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

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


    chrishajer
    Participant

    @chrishajer

    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:

    https://bbpress.org/plugins/topic/social-it/


    myershenry
    Member

    @myershenry

    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.

    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


    chrishajer
    Participant

    @chrishajer

    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.

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.
Skip to toolbar