Get URL Followers / Following – UserPro Forums https://forum.userproplugin.com/forums/topic/get-url-followers-following/feed/ Mon, 29 Apr 2024 19:33:28 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19089 <![CDATA[Get URL Followers / Following]]> https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19089 Mon, 27 Jan 2014 13:47:57 +0000 Adriano Maia Hi!
How can i return the URL Followers and Follwing?
I use this:
echo $userpro_social->following_count_plain( $user_id );
and
echo $userpro_social->followers_count_plain( $user_id );

but i would like to link!

]]>
https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19655 <![CDATA[Reply To: Get URL Followers / Following]]> https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19655 Fri, 31 Jan 2014 18:37:49 +0000 Adriano Maia Can anyone help me? 😛

I need to display the URL to make a link. like: site.com/following/usernameviewed
When i use this echo $userpro_social->following_count_plain( $user_id ); i return the number, but not have the link!

]]>
https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19668 <![CDATA[Reply To: Get URL Followers / Following]]> https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19668 Fri, 31 Jan 2014 18:59:52 +0000 admin You can use API to do this.

Use this to generate link for FOLLOWERS

echo $userpro->permalink($user_id, 'followers', 'userpro_sc_pages');

For FOLLOWING same

echo $userpro->permalink($user_id, 'following', 'userpro_sc_pages');

Remember to change $user_id with the dynamic user ID you want. This will link to followers/following page for specific user.

]]>
https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19676 <![CDATA[Reply To: Get URL Followers / Following]]> https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19676 Fri, 31 Jan 2014 19:10:58 +0000 Adriano Maia if i put $user_id that will work? For me works, this shows from a user that im viewing the profile 🙂

]]>
https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19678 <![CDATA[Reply To: Get URL Followers / Following]]> https://forum.userproplugin.com/forums/topic/get-url-followers-following/#post-19678 Fri, 31 Jan 2014 19:14:24 +0000 admin user_id need to be dynamically set. Depends on where you use that code /snippet

]]>