Hier je vous proposais de mettre les mains dans le cambouis afin de créer un sidebar widget pour afficher les avatars des amis d'un utilisateur de votre communauté BuddyPress, aujourd'hui simplifiez vous la vie avec ce plugin :)
je "bricole" sur le web en manipulant des outils comme html/css, php, asp 3.0 (si si!!), javascript, actionscript 1-2-3, Ajax, flash, flex.. i am a Mac/linux allergique à Windows ;)
Hier je vous proposais de mettre les mains dans le cambouis afin de créer un sidebar widget pour afficher les avatars des amis d’un utilisateur de votre communauté BuddyPress. Aujourd’hui grâce la suggestion de @wpmuorg, je vous propose les mêmes fonctionnalités mais sous la forme d’un plugin activable puis paramétrable depuis l’administration WordPress
Au risque d’être redondant par rapport à mon précédent article, BP Show Friends permet d’afficher les amis du membre affiché et un ajax permet de filtrer ceux qui sont en ligne. J’ai cependant apporté quelques modifications en permettant notamment de traduire ce widget et j’ai déplacé les ajax sous son titre.

Une fois installé, rendez-vous dans le menu Apparence / Widgets de l’administration WordPress pour le déposer dans la sidebar de votre thème et personnaliser le nombre d’avatars à afficher.

Mise à jour 25/03/2011 : version 1.1, le widget se charge désormais si le membre est loggé et affiche ses amis. Si la zone membre d’un autre utilisateur est chargée, il affichera les amis de l’utilisateur en question.
Mise à jour le 11/11/2011 : version 1.1.2, correction bug rencontré depuis l’upgrade de BuddyPress 1.5
imath.. est propulsé par WordPress sur le réseau owni.fr sur un theme de Tom Wersinger et un design de Loguy.
Administration du site
[...] A new BuddyPress plugin is available in the WordPress repository that allows you to display to a member’s friends who are online. BP Show Friends adds a widget to your BuddyPress site to show the friends of the current user displayed – not the ones of the logged in user. It gives the option to show both recently active members and those who are currently online. If you have any questions about the plugin, drop @imath a note on the plugin’s homepage. [...]
Hi, how could I remove the argument which limits the widget the the users profile page?
Best regards
Hi, you can follow this conversation on the plugin forum http://wordpress.org/support/topic/plugin-bp-show-friends-display-everywhere-your-friends-only?replies=4 . Then you should have a widget available on every page but showing only the friends of the loggedin user.
thanks imath! that did the trick, here’s the revised code for anyone wanting to do the same: http://pastebin.com/peWC7u8q
Cool thanks a lot
Coucou !
Et merci pour ce super (rare !) plugin francais !!!
Une idée complémentaire a ce plugin : un addon/widget “vous pourriez connaitre….” qui sélectionne les amis de mes amis qui ne sont pas encore mes amis. ca se serait coooool
bravo et merci !
Coucou @Aphrodite,
Merci pour ce commentaire et ton idée. Je vais regarder ce que je peux faire à ce sujet
A+
Re Coucou @Aphrodite, sinon y a ça pour le suggest friends http://wpmu.org/daily-tip-build-your-buddypress-community-with-the-friend-suggestions-widget/
Coucou !
merci du tuyau arf et oui il existe donc ^^
Une remarque : le widget ne marche pas sur les sous sites du réseau c’est normal ?
Hello @Aphrodite,
Effectivement c’est normal, le widget en l’état a besoin d’être joué dans une page BuddyPress.
En revanche, il est possible que la version tweakée pour n’afficher que les amis du membre loggé fonctionne.. à tester
-> http://wordpress.org/support/topic/plugin-bp-show-friends-display-everywhere-your-friends-only?replies=4
ou plus simplement assemblée par @Charl : http://pastebin.com/peWC7u8q
Hi Imath,
What a beautiful plugin! Loving it!
PS: If I where you I would update it and make it show the logged-in user friends by default. That makes it even more useful imo!
Woops.. I might have been to early with my happiness.
I’ve updated the plugin to show the friends of the currently logged in user as well.. but now this means that it will show the friends of the logged in user on ALL member pages.
Ideally it would:
a) Showing the friends of the logged in user when NOT on a member page. With a widget title “Bowe’s friends”
b) Switch to show the friends of the currently displayed member. Example: “Imath’s friends”
I think this would be awesome!
Hi Bowe !!
thks 4 your comments. I agree with you, i will work on it soon.
That would be great! Could you let me know through Twitter or BP-Tricks if you’ve updated it?
You can count on me
Bonjour,
Nous venons de déployer BuddyPress (avec votre excellent plugiciel) en intranet pour nos 15 000 employés branchés.
Une petite suggestion émanant de plusieurs d’entre eux: lorsque l’on passe la souris sur l’image d’un membre, il serait intéressant de pouvoir voir son nom en texte alternatif.
Bonsoir Pierre-Antoine,
Merci pour ce feed-back. Effectivement, sinon il est possible en modifiant un peu le functions.php de rajouter des hovercards au survol : cf http://imath.owni.fr/2010/11/23/buddypress-xprofile-hovercard/
[...] sesuai dengan groupnyaBP Profile As Homepage: untuk menjadikan profil member sebagai halaman utamaBP Show Friends: untuk menampilkan teman dari memberBuddyPress Chat Component: untuk chatting antar [...]
hello sir i instal this plagin when i active this plagin i see there is fetel error ‘
Hello,
hard to answer you, i need more details.. Just 4 your info, this plugin requires WordPress 3.0 to 3.1.1 and BuddyPress 1.2.7 or 1.2.8 in order to work.
Hello Boss!
i should use online friends option is a default option?
What can i do?
Thanks in Advance
Hello Ashok,
You mean you want to change the default behavior of the widget by showing loggedin friends first ?