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?
While your IE/netscape/opera/mozilla/etc is on your board, rightclick and choose view source.
There, copy getCokie function and the Hello, thing.
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?
it is still doing that and when u go to the forums it has you as loged in. please help
Bumping this because I'd like to see a solution to this, too.
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.
Great, thanks Darkki.
I hope you're successful.
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.
noncgi/vars_config.inc.php, it has $BBStatus ("ON" or "OFF").