Following / Followers widgets made by me
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 !
You must be logged in to reply to this topic.