PDA

View Full Version : Integrating vBulletin Permissions


nadreg
01-02-2008, 11:33 PM
Hi all,

I'm trying to write a custom Java component that is "aware" of user permissions. So far, I've been able to write a Java component that can correctly identify the logged in user, the groups they belong to, etc. But I'm having trouble deciphering the way vBulletin sets up its permissions.

Can anyone point me in the right direction? I haven't been able to find anything on the net.

Thanks much in advance.

alexgeek
01-03-2008, 12:39 AM
Which permissions? Like how many images a user can have in their sig? Or what forums they can view?

nadreg
01-03-2008, 02:58 AM
Ideally, I want to know all the permissions the user has... images in a sig as well as forum permissions. Are they stored in a common format in the database, or are they vastly different?

Which forums they can view would be a good start, is they are very different. I want to know if they have permissions to read a forum, or post threads in a forum, or edit threads in a forum, etc.

Thanks for your help.

Guest190829
01-04-2008, 08:03 AM
Permissions are all bitfields...

Look at cache_permissions funciton in function.php ... after the function call, all the user's permissions are stored in $vbulletin->userinfo['permissions'] array ...

You will then have to compare the users value with the default bitfields which are stored serialized in the datastore and compiled in class_core.php into the vbulletin registry.