MyBB Community Forums

Full Version: hide plugin
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, I'm using a plugin, Hide links from guest.I want to use that plugin for those who did not activate their account yet.How can I do that???
which plug-in it is (post Link) ? you may have to modify the main php file and re-install it..
Open inc/plugins/hidelinks.php and search:
if($mybb->user['usergroup'] == "1")
Replace that with:
if(in_array($mybb->user['usergroup'], array(1,5))
but how can I set up my group order???
I set up 3 group Orders:
1- Admin
2- super mods
3- Mods

and now how can I change the groups which are left??? I can't see any option to change their order
please help me
What are you talking about? Confused
without this I ll not be able to edit the plugins.cause I do not know which groups number are for awating activation
array(1,5)
1 & 5 are group ids.
but what is the group ID for the member awating activation???
I got this!!! group no 5!!!
I don't really understand what you mean.

By default Guests has usergroup ID 1 and Awaiting activation has usergroup ID 5 .
user group IDs given by Aries-Belgium are different from your group order.
in general, Guests are group 1 AND awaiting activation are group 5 in myBB !!
(2011-06-13, 04:59 PM)Aries-Belgium Wrote: [ -> ]Open inc/plugins/hidelinks.php and search:
if($mybb->user['usergroup'] == "1")
Replace that with:
if(in_array($mybb->user['usergroup'], array(1,5))

are you forgot one ending )
or is it alright???
It's alright, it will work. One of the parenthesis closes the if statement, and the other closes the array.
Pages: 1 2