Advertisement
valuser

Update for bp-forum

Jan 21st, 2015
262
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1. The "shared link" comes from a news aggregation site powered by a premium theme onenewspremium.
  2.  
  3. See http://ericulous.com/onenews/ and hover over a link
  4.  
  5. You will see a tooltip with sharing links
  6.  
  7. On a test local install i have had the tooltip adapted to share the links on a multisite
  8.  
  9. See image http://imgur.com/6ggv89f
  10.  
  11. Clicking on the ruby brings up http://imgur.com/jE3hUzD and clicking on "Home Place" effects the transfer and so far so good the transfer is inserted as a post in the users pblog - its the buddypress part that appears not to follow through. Posts inserted this way are not recorded in activity.
  12.  
  13. Hence my interest in bp_activity_add
  14.  
  15. The relevant code is an entry in the file simplepie_wordpress_2.php *(of this theme) to place the image.
  16. (see http://pastebin.com/cmmt26e2 for complete file and go to/ find Social Icons to see the code below)
  17.  
  18. <a class="addthis_button" addthis:url="' . $permalink . '" addthis:title="' . esc_attr($title) . '"><img src="http://tsourclace.dev/wp-content/themes/styleruby-news2/includes/images/inwsrbyblgs2.png"></a>
  19.  
  20. and
  21.  
  22. Then there is is another file I have had an addition made
  23.  
  24. see http://pastebin.com/iwBqQkNB
  25.  
  26.  
  27. * this appears to be an slightly reconfigured version of the file simplepie_wordpress_2.php from the plugin https://wordpress.org/plugins/simplepie-plugin-for-wordpress/
  28.  
  29.  
  30. Frankly, while I would really really like to be able do this - it is a bit (or way) over the top!!
  31. Why ?
  32. Because actually visiting the links and using bp-bookmarklet (https://wordpress.org/plugins/bp-bookmarklet/) (just truly unbelieveably awesome) by imath is the complete solution.
  33.  
  34. Still if you can shed any light, getting these posts recognised in activity, or using bp_activity_add to insert them in activity, i would be absolutely thrilled!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement