solved Followers Module Quota Config

SoftDesigns
SoftDesigns
@softdesigns
6 years ago
242 posts
Hi - Trying to config the Followers module per quota.
Some quotas / profiles we want to enable followers, others we want to disable followers.
Do not see any option to achieve this. Are we missing something?
Please Advise...
updated by @softdesigns: 12/09/18 03:49:39PM
paul
@paul
6 years ago
4,331 posts
Hi - Its not an option to do this within the Follower module, sorry.
What you would need to do is edit the profile_header.tpl template to test for the profile's quota and only show the Follow button if allowed -

{if $profile_quota_id IN 1,2,3}
    {jrCore_lang id=62 skin="jrElastic2" default="Follow" assign="follow"}
    {jrFollower_button profile_id=$_profile_id title=$follow}
{/if}

Obviously set quota IDs and language parameters as appropriate.
hth


--
Paul Asher - JR Developer and System Import Specialist
SoftDesigns
SoftDesigns
@softdesigns
6 years ago
242 posts
Ok - Thanks :) From you code above, now we can control the "Follow" button.
--
Now, how to use the same technique to hide the "Followers" menu tab button ?
Where can we find the "Followers" menu tab button code, which template?
paul
@paul
6 years ago
4,331 posts
What skin are you using?


--
Paul Asher - JR Developer and System Import Specialist
SoftDesigns
SoftDesigns
@softdesigns
6 years ago
242 posts
@paul - Using Ninja Skin...
paul
@paul
6 years ago
4,331 posts
In the Ninja skin's profile_sidebar.tpl template, about line 70, remove or comment out the block of code there that shows a user's followers.
You also might want to disable the drop down User Menu 'Profiles You Follow' option by going to ACP=>Core=>System Core=>Tools=>User Menu Editor
Modify the Profiles You Follow option and make it inactive.
hth


--
Paul Asher - JR Developer and System Import Specialist

Tags