The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
checking who is logged in
i want to use this for my "reviews" section (its totally seperate from vB, minus the "whos logged in" part), where people can submit reviews. i want the user to be logged in before they submit it, because their ID will be submitted into the db with the review, so they can edit it later on
i remember in phpBB, you included a file, and then called a function which would load the current logged in user's information into an array, then you can check whether they were logged in/get all of their other info how do i do that with vB? i wanna get at least the user id of the person logged in, kinda like if(user_logged_in){ do stuff else redirect to log in on the official board i was told: if ($bbuserinfo[userid]==1) { do stuff; } else { do other stuff; } but what include file would that be? thanks |
#2
|
|||
|
|||
*bump*
anyone?? |
#3
|
||||
|
||||
|
#4
|
|||
|
|||
woohoo! thanks
|
#5
|
||||
|
||||
your welcome
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|