BuddyBoss Home – Web › Support Forums › Solutions › Social Learner › BuddyPress Social Wall
Tagged: code, social wall
- This topic has 2 replies, 2 contibutors, and was last updated 9 years, 1 months ago by Anonymous.
Viewing 3 posts - 1 through 3 (of 3 total)
Question
October 10, 2015 at 3:09 am #48362@mln83For the ‘BuddyBoss Wall’ plugin is it still possible to add the code snippet below to be able to share activity / accomplishments on Twitter, Facebook and/or Google Share?
Source: http://www.magpress.com/blog/10-useful-custom-functions-for-buddypress-themes#bptrick2
1 if( !function_exists('add_social_link_to_activity') ): 2 /////////////////////////////////////////////////////////////////////////////// 3 // add social links to BuddyPress activity directory 4 ////////////////////////////////////////////////////////////////////////////// 5 function add_social_link_to_activity() { ?> 6 <?php if( bp_is_directory() ): //only show this in activity directory ?> 7 <div class="social-links activity-<?php bp_activity_id(); ?>"> 8 9 <a href="http://twitter.com/share" data-url="<?php echo urlencode(bp_activity_thread_permalink()); ?>" data-count="horizontal" data-counturl="<?php echo bp_activity_thread_permalink() ?>" data-text="<?php echo strip_tags( bp_get_activity_action() ); ?>"class="twitter-share-button"><?php _e('Tweet', TEMPLATE_DOMAIN); ?></a> 10 11 <g:plus action="share" annotation="bubble" href="<?php echo urlencode(bp_activity_thread_permalink()); ?>"></g:plus> 12 13 <iframe src="//www.facebook.com/plugins/like.php?href=<?php echo urlencode( bp_activity_thread_permalink() ); ?>&send=false&layout=button_count&width=450&show_faces=false&font=arial&colorscheme=light&action=like&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:21px;" allowTransparency="true"></iframe> 14 </div> 15 <?php endif; ?> 16 <?php } 17 function add_social_link_addthis_js() { ?> 18 <script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script> 19 <script type="text/javascript" src="http://apis.google.com/js/plusone.js"></script> 20 <?php } 21 add_action('bp_activity_entry_content', 'add_social_link_to_activity'); 22 add_action('wp_footer', 'add_social_link_addthis_js'); 23 endif;
Best regards,
MichaelAnswers
October 10, 2015 at 3:28 am #48363@mln83I have also found this plugin which seems to do what I suggested:
http://codecanyon.net/item/easy-social-share-buttons-for-wordpress/6394476Do you know if it works together with the BuddyBoss Wall plugin?
October 10, 2015 at 4:40 am #48367@
AnonymousIt will work, might be it need some css tweaks
you can also check https://wordpress.org/plugins/buddypress-social/screenshots/Regards
Viewing 3 posts - 1 through 3 (of 3 total)
- The question ‘BuddyPress Social Wall’ is closed to new replies.