2018-01-09, 12:32 PM
It's a plugin that hides links from guests and unverified users... Works great, however we need to be able to allow links in specific forums and parent forums.
For 1.6 we used the statement:
It worked great in 1.6.
In 1.8, it's not working. The plugin hides for unregistered users, but unfortunately hides them in ALL forums. My guess is that it has something to do with the forum variables, but I could be wrong. I've tried different methods of declaring usergroups and forums, but to no avail.
The two plugins I've been working with are:
AN Only Registered: https://community.mybb.com/mods.php?action=view&pid=284 and Registered Links: https://community.mybb.com/mods.php?action=view&pid=222 . I prefer AN Only Registered because it displays a nicer formatted message if a user isn't signed in.
Anybody that can fix this, or create a new plugin that works as we need, please let me know
For 1.6 we used the statement:
if($forum['pid'] != 70 && !in_array($forum['fid'], array(100,140,68,78,39,159,56,160)) && in_array($mybb->usergroup['gid'], array(1, 5, 7, 12)))
It worked great in 1.6.
In 1.8, it's not working. The plugin hides for unregistered users, but unfortunately hides them in ALL forums. My guess is that it has something to do with the forum variables, but I could be wrong. I've tried different methods of declaring usergroups and forums, but to no avail.
The two plugins I've been working with are:
AN Only Registered: https://community.mybb.com/mods.php?action=view&pid=284 and Registered Links: https://community.mybb.com/mods.php?action=view&pid=222 . I prefer AN Only Registered because it displays a nicer formatted message if a user isn't signed in.
Anybody that can fix this, or create a new plugin that works as we need, please let me know