The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
I'm working on my vbextern hack and need a routine to make one big array with the 'canview' permissions for each forum....I'm chewing on this for a couple of days now, but it's hard to understand someone else's code.
What I want is that you end up with a cached array for all forums: $forumpermissions[$forumid][$canview] so it might be something like this: $forumpermission[1][1] $forumpermission[2][1] $forumpermission[3][0] $forumpermission[4][1] $forumpermission[5][0] $forumpermission[6][1] $forumpermission[7][0] right now I call the getpermissions() function every time when I wanna know if a users is permitted to view the particular forum and that takes alot of query's. It would be better to make one array in the beginning and cache it. So you can do something like this: if($forumpermissions[$forumid]) { etc(); } else { continue; } Thanks in advance |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|