Info
- 7 posts
- 3 voices
- Started 2 years ago by myershenry
- Latest reply from chrishajer
- This topic is not resolved
Adding Social Bookmarking to Posts
-
- Posted 2 years ago #
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.
-
- Posted 2 years ago #
Is this a plugin for bbPress, or how are you getting the functionality?
-
- Posted 2 years ago #
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
-
- Posted 2 years ago #
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/ -
- Posted 2 years ago #
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.
-
- Posted 2 years ago #
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
-
- Posted 2 years ago #
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.phprename it to:
_social-it.php
^ and see if it works. If it does not, just delete the file and load the forums again. -
You must log in to post.