The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
Hi all,
Just wondering if anyone would be able to post some example code for checking if a user is logged in. I've not too much experience in PHP OOP but am happy to learn from examples. Cheers. |
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
Quote:
Does vB not have a specific function for checking if a user is logged in then? |
|
#4
|
|||
|
|||
|
you can use
PHP Code:
|
|
#5
|
|||
|
|||
|
ragtek, I'm guessing I need to include global.php and would use the above like:
PHP Code:
Found it And yeah, I was right
|
|
#6
|
|||
|
|||
|
Thanks, really helpful!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|