Quote:
Originally Posted by estyles
Hi,
Can someone please give me an explanation on what the number representing the users permissions for each forum represents? I can view the array containing the permissions for each forum but I have no idea what each number represents.
I'm pretty sure that 1048575 is full administration priveledges, 655363 is guest priveledges, 1044991 is registered users permissions etc.
Basically I just want to write a script to show the latest threads from the forum providing the user logged in has view permissions on that forum.
|
vBulletin uses Bits for its permission system, and bit testing to test whether a user has certain permissions.
I believe there is a modification that already does what you are looking for:
https://vborg.vbsupport.ru/showthread.php?t=83230
If you take a look at vBulletin's default code or the hack mentioned above, you can see conditional that test permissions.