Log in

View Full Version : checking who is logged in


nabeel
07-20-2002, 10:51 PM
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 :)

nabeel
07-21-2002, 02:08 AM
*bump*

anyone??

Dean C
07-21-2002, 08:09 AM
try this:

https://vborg.vbsupport.ru/showthread.php?s=&threadid=34690

:D

- Mist

nabeel
07-21-2002, 02:25 PM
woohoo! thanks :)

Dean C
07-21-2002, 02:35 PM
your welcome :)