PDA

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


bituman
03-12-2007, 09:24 AM
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
03-12-2007, 09:49 AM
<a href="https://vborg.vbsupport.ru/showthread.php?t=82844&highlight=permissions" target="_blank">HowTo Create Custom Usergroup Permissions</a>

bituman
03-12-2007, 10:19 AM
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'])) {