r-a-y / buddypress-followers

Follow users on your BuddyPress site. Similar to Twitter!
http://wordpress.org/plugins/buddypress-followers/
74 stars 39 forks source link

1.2.x branch testing: Dynamic follow count #29

Closed henrywright closed 10 years ago

henrywright commented 10 years ago

Regarding https://github.com/r-a-y/buddypress-followers/issues/14 - if a member follows another member whilst on their profile page, the follow count in the tab updates dynamically (without a page refresh).

But, if tabs aren't used and the follow count is displayed on the page using something like

$counts = bp_follow_total_follow_counts(); 
echo $counts['followers'];

then the count doesn't update dynamically after clicking the follow button.

r-a-y commented 10 years ago

I'm currently targeting default BP areas where the count is located because I know where they are ;)

It's really impossible to predict how the count is going to be used on everyone's site. I guess I could also target a generic .followers-count class, but you'd need to wrap this around the count in your markup.

henrywright commented 10 years ago

I see, there isn't any way for you to guess how and where people will use the count. On second thoughts, perhaps this sort of thing beyond scope!

r-a-y commented 10 years ago

Going to close this one as this will be a headache ;)