View Full Version : vb log in script
berry05
05-14-2008, 12:05 AM
hii!
i have a homepage that i want to put a log-in feature in it...but i dont know how to code one....its so people can log into vb but log in from my homepage as well....
any help?
Dismounted
05-14-2008, 07:00 AM
Just copy over the login box from the template.
bwcbob
05-15-2008, 01:58 PM
It is pretty easy, just look at the login code, run a query based on user input (after protecting it) and verify input + salt and check if that is the pass
berry05
05-15-2008, 06:51 PM
ok i'll try lol
Opserty
05-15-2008, 08:35 PM
Just emulate the HTML output from the login form, as long as it your HTML form points to the vBulletin login script it should log the user into vBulletin.
TMR Bac
05-15-2008, 08:59 PM
Let's say you want to keep the person logged in as they travel to other areas of the website outside of vbulletin. I used to be able to do this by simply checking $bbuserinfo for a userid which told if if the person was logged in and who they were. When I upgraded to the latest version, this ceased to work. Stumped...
--------------- Added 1210889060 at 1210889060 ---------------
Forgot the key ingredient to making that work...
I required the global file on every page of the site: require('global.php');
berry05
05-16-2008, 12:47 PM
can somoen give me the code to add ?
please!
Lynne
05-16-2008, 03:59 PM
search "login" "all forums" "titles only" and you get a ton of hits. This mod may help you out with the code: https://vborg.vbsupport.ru/showthread.php?t=173693
TMR Bac
05-16-2008, 05:30 PM
Thanks. I think I've got it working flawlessly now.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.