Thanks and happy you like this widget.
You should test this in order to display the friends of the loggedin_user on every page :
line 39, 87 and 111 : $user_id = $bp->loggedin_user->id;
line 40 : $user_all_friends_url = $bp->loggedin_user->domain . BP_FRIENDS_SLUG;
remove line 42 and 58
remove line 135 and 151.
It should work, and you actually built another widget 😉
well actually, a user must be logged in, so instead of removing line 42, 58, 135 and 151, i think it would be best to edit line 42 this way :
<?php if(is_user_logged_in()): ?>
and line 135 this way
if(is_user_logged_in()){
Thread Starter
shoeyn
(@shoeyn)
thanks for your replies, I shall test it out and report back after christmas 🙂
hi imath,
thanks for great plugin, your corrections here are exactly what I needed, as shoeyn still celebrates christmas, I can confirm that your method works, at least at the moment see no any issue.
Hi James,
thank you for the feedback, i was afraid to wait for Sheyn till next year christmas 😉
Hi Bowe 😉
Just added a beta version of next version if you want to test it..
Version 1.1, as you suggested on my blog, will add the widget on every page displaying the loggedin user’s friends and when in BP member area, it will display the displayed member’s friends.
Hi there,
Just to say that this plugin does not show as a widget in BP 1.5. It is not uncommon as I’ve tried a few widgets that fail to show on the Appearance/Widgets page. Something fairly fundamental seems to have changed in the way widgets are registered.