MyBB Community Forums

Full Version: Need someone to fix this so it works, or create a new plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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:
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
It can be done by forum permissions under forum management to hide a specific forum for guests or specific group.
Thanks for your reply...We don't want the forums hidden - We want links hidden from unregistered users... Except in specific forums.

Still need help with this. Anyone can make a plugin for 1.8 with this functionality or can make this existing plugin work.

SOLVED. Issue was variables not properly declared in the plugin.