The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
![]()
I'm trying to write some code that pulls up only the forum that the current user can use, NOT including the forums the current user is not allowed to view and NOT including the forums that are not
PHP Code:
I was doing great by copying the routine from the /archive/global.php subroutine for getting foruminfo. The only problem is there was nothing about 'showonforumjump'. So I went to the functions.php subroutine and all it says there is PHP Code:
There must be some way to access this. That's why I keep saying the permission system in vb is very good, but how the hell does it work? Thank you in advance for any help you can offer. |
#2
|
||||
|
||||
![]()
Hmm, does work for me:
PHP Code:
|
#3
|
||||
|
||||
![]()
Here's my code. It all prints out the same permission even for forums I know are not showonforumjump. What did I do wrong?
PHP Code:
|
#4
|
||||
|
||||
![]() PHP Code:
![]() I think you want this: PHP Code:
So either include it their, or directly check the bit in the query (like as it is done with cancontainthreads) |
#5
|
||||
|
||||
![]()
Thank you I figured it out and got it working
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|