Log in

View Full Version : Some help please


tasman
11-22-2002, 08:15 PM
I am trying to find a way to prevent the header info from displaying until after a user logs in.

As the page loads, the site logo is displayed, then the menu bar, then the logon prompt. I don't want the menu bar to be displayed until after the person logs in to the forum.

Any ideas?

TIA

tas

Dark_Wizard
11-22-2002, 08:46 PM
Try Logician's Dynamic Templates hack....that should do the trick!

Logician
11-22-2002, 09:24 PM
yep you can apply the hack and in the header use the conditional:
[[($bbuserinfo[userid]>0)]]
your header for members go here
[[/($bbuserinfo[userid]>0)]]

or

if you want "the hack" way,
edit global.php find:


eval("\$header .= \"".gettemplate('header')."\";");


After that add:
if ($bbuserinfo[userid]==0) {$header=' ';}

Both will do the trick, choose your pick :)

tasman
11-22-2002, 09:52 PM
lol - I tried both :)

Thanks so much

Logician
11-22-2002, 10:08 PM
well dont use both, it's redundant.. choose either one.. :)

Erwin
11-22-2002, 10:40 PM
Or if you don't even want to hack a single PHP file, add the line of code for the global.php posted by Logician into your phpinclude template. :) Just a template edit.

tasman
11-23-2002, 07:27 PM
I meant I used one on the header and the other on the footer - just had to try both examples out :)