UBB.Dev
Posted By: snark52k1 loged in on home page - 05/04/2002 11:39 PM
How can i have it so they can log in on the home page and have it say loged in on the side bar of the home page?
Posted By: LK Re: loged in on home page - 05/10/2002 12:41 PM
While your IE/netscape/opera/mozilla/etc is on your board, rightclick and choose view source.
There, copy getCokie function and the Hello, thing.
Posted By: snark52k1 Re: loged in on home page - 05/12/2002 2:46 AM
ok i did that but not on the main site it has not loged in. Please log in or register. It will not show that you are loged in. How can i fix this?
Posted By: snark52k1 Re: loged in on home page - 05/24/2002 10:05 PM
it is still doing that and when u go to the forums it has you as loged in. please help
Posted By: ScottRoberts Re: loged in on home page - 05/31/2002 6:54 AM
Bumping this because I'd like to see a solution to this, too.
Posted By: Darkki Re: loged in on home page - 05/31/2002 9:42 AM
Need answer for this also. Started to code that myself but have to say that those login code is little messy to find right arguments to move to homepage to get status on logging.

Managed to get my homepage inform is forums are open or closed so not to have to go to forums for that.. really simply code:

require "bboard/cgi-bin/vars_config.cgi";
require "$vars_config{VariablesPath}/vars_misc.cgi";
if ($vars_misc{BBStatus} ne 'ON') {
$ubb_check = "Forums are closed";
} else {
$ubb_check = "Forums are open";
}

And then just output print to somewhere where you want to see that inform. But really like to get inform about logging inform and also feature that I could log in at main pages. Going to try to code that myself already so if I managed to figure out how to do that I'll paste that code.
Posted By: ScottRoberts Re: loged in on home page - 05/31/2002 7:55 PM
Great, thanks Darkki. cool I hope you're successful. smile
Posted By: AllenAyres Re: loged in on home page - 05/31/2002 8:40 PM
You might check the vars_config.inc.php file... require it for the paths, then check the coding in the ultimatebb.php file for the actual cookie check. Should be a bit easier on your server than the cgi route.
Posted By: Dave2 Re: loged in on home page - 06/01/2002 8:56 PM
quote:
Originally posted by AllenAyres:
You might check the vars_config.inc.php file...

Your what file? tipsy
Posted By: LK Re: loged in on home page - 06/01/2002 9:00 PM
noncgi/vars_config.inc.php, it has $BBStatus ("ON" or "OFF").
© UBB.Developers