PDA

View Full Version : custom mod/hack user rights in vbulletin


bituman
12 Mar 2007, 11:24
Ahoi all.. i am writing a vbulletin other-cms bridge, and instead of converting some vbulletin user rights to other-cms limited user rights, we decided we might aswell add some special user rights to vbulletin by installing a custom mod.
From there on we could simply check is the user has that special right on a given forum when logging in the cms to decide wheter hes a normal user, an admin etc..
Question is:
How to add custom rights to vbulletin?
Is there a mod tutorial on this?
thank you in advance

Marco van Herwaarden
12 Mar 2007, 11:49
HowTo Create Custom Usergroup Permissions (http://www.vbulletin.org/forum/showthread.php?t=82844&highlight=permissions)

bituman
12 Mar 2007, 12:19
With the link provided i could add user group permissions.. half of a success..
I am far from being familiar with vbulletin, how can i add permissions for a specific forum?

I will grant the user admin permissions in the cms if he has the cms_admin permission not generally, but on a specific forum, so i can use:

$forumperms = fetch_permissions(3);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['is_admin'])) {