JoeHarrison
03-24-2002, 03:11 PM
Hi... I just had a question. On my site, I have a bunch of pictures that people can look at and also add captions too. I do this with a mySQL database. Whenever someone wants to add a caption, they have to input their vB username and password, and I have it check against the vB user table before it inserts the record.
BUT, I was wondering if I could have the script know if the user is already logged in, so that they don't have to put in their info every time. If they're not logged in, then I could send them to the vB login screen... or use Snoozy's Remote Login script.
http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=205
I was thinking that maybe I could check their HOST_ADDR and match it against the vB session table... then get their user id. I was hoping someone could help me... thanks in advance!
BUT, I was wondering if I could have the script know if the user is already logged in, so that they don't have to put in their info every time. If they're not logged in, then I could send them to the vB login screen... or use Snoozy's Remote Login script.
http://www.vbulletin.org/hacks/index.php?s=&action=showhack&hackid=205
I was thinking that maybe I could check their HOST_ADDR and match it against the vB session table... then get their user id. I was hoping someone could help me... thanks in advance!