The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
I have created a few custom pages that are only accesable for administrators, i want to use vbulletin to check if a person is a administrator or not or if he is logged in or not.
I know phpbb has these scripts, but i cant find them from vbulletin. Is there anybody that can help me?? Thanx
|
|
#2
|
||||
|
||||
|
include global.php
|
|
#3
|
||||
|
||||
|
If they are custom scripts already including global.php, you can use this to check. (Put this after your call to global.php.)
PHP Code:
|
|
#4
|
|||
|
|||
|
So if i include global.php and that code its only accesable as administrator?
Because i dont need the template to be included
|
|
#5
|
||||
|
||||
|
Yes.
|
|
#6
|
|||
|
|||
|
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|