Plugin: BuddyPress Followers

Join this plugin group to follow comments, support topics and reviews.

Following / Followers widgets made by me (10 posts)

Started 5 months, 2 weeks ago by: abyss

  • Profile picture of abyss abysshorror said 5 months, 2 weeks ago:

    @apeatling, @r-a-y Hi !
    I took the liberty of using the _inc/bp-follow-widgets.php code and going a little further.

    I noticed the only widget available was for following users, so I decided to add another one of the followers.

    Then I realized that the widgets were showing information of _me_ , not of the user I was visiting on my site. So I changed this.
    Now, when you’re seeing someone’s profile, you can see him/her following and followers list.
    Also, if the user has no following/followers, the widget will say so (in the original behavior, the widget will not be shown). I also tried to add a link saying “the user has no followers. Follow him by clicking _here_” but I couldn’t get the correct link to get that done :(

    I think this little features could be useful for many (they are for me !) so maybe you could check them out, fix if something’s wrong, and add them for future releases.

    I’m not a dev so I’d like if someone could take a look at what I’ve done. Maybe I introduced a security flaw or a bug :)

    The code for my _inc/bp-follow-widgets.php is here: http://pastebin.com/z9P98hNZ

    I’ve also made a spanish translation of the plug-in. Ask me if interested !

    Cheers !

  • Profile picture of verleicoeim verleicoeim said 5 months, 1 week ago:

    Drowning man will catch at a straw

  • Profile picture of romocpoitens romocpoitens said 4 months, 3 weeks ago:

    I am not young enough to know everything

  • Profile picture of biocucoco biocucoco said 4 months, 1 week ago:

    The very first law in advertising is to avoid the concrete promise and cultivate the delightfully vague

  • Profile picture of matiou34 matiou34 said 4 months ago:

    Great @abysshorror ! Exactly what Im looking for !
    Could you explain how to use it ?
    I created a folder bp-follow-widgets then a bp-follow-widgets.php with you code. What I have to do after that ?

    Thank you !

  • Profile picture of abyss abysshorror said 4 months ago:

    Hey @matiou34. Once you’ve done that, go to Apparence->Widgets on your WP admin and you should see two widgets (one for following, one for followers). Just put them in your sidebar.

    Let me know !

  • Profile picture of matiou34 matiou34 said 4 months ago:

    @abysshorror Thank you !
    I can’t get the number of followers/followings. Do you know what’s wrong ? I have a basic installation of buddypress

  • Profile picture of abyss abysshorror said 3 months, 4 weeks ago:

    Weird. You just see “Following ()” / “Followers ()” ?

    BTW, I was lucky to see this reply. Notifications are not working ?

  • Profile picture of matiou34 matiou34 said 3 months, 4 weeks ago:

    @abysshorror Yes I see : Following (5) when I use bp_get_displayed_user_nav();
    I Just want to take the number of followers and following and not all the navigation.

    I did’nt check the notification.

    Thanks for your reply !

  • Profile picture of musicdesigns musicdesigns said 1 day, 4 hours ago:

    @abysshorror is there any way to have the name of the user in the widget also.

    e.g.

    Luke’s followers

    Luke is Following

    Obviously this name would be dependant on which page you were visiting.

    I don’t think it’s currently very obvious that the widget is changing dependant on page visited. The addition of the name might help…?