Viewing 5 posts - 1 through 5 (of 5 total)
The topic ‘Follow author link’ is closed to new replies.
Hi
I want to create an icon with a link inside my page template so that when clicked the user will be following the current post author.
Where can I find the code for this?
Thanks
You can use the UserPro API to achieve this.
1 2 3 4 |
<?php global $userpro_social; echo $userpro_social->follow_text( 'author_id_here', get_current_user_id()); ?> |
Great, thanks it worked. I have another question. I am using font icons and instead of showing the default text that displays for follow or unfollow I want to switch the icon. Is there a way I can replace this text with the icon font code?
Thanks
You need to modify the social module API file /addons/social/functions/api.php
Hi,
Can done this for bookmark button ?
Just add to collection button without default collection option (drop down) and new collection button
Thanks
The topic ‘Follow author link’ is closed to new replies.