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 |
#2
|
|||
|
|||
You have to loop through logically like index.php/forumjump. If you don't, inheritance doesn't work.
|
#3
|
||||
|
||||
That's the way I currently do it, only I do it multiple times, so wouldn't it be possible to make one while loop and make such an array instead calling this while-loop over and over again?
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|