UBB.Dev
Posted By: jonlevine Custom header for one, generic for the rest - 03/05/2003 4:30 PM
How would I use a custom header for just one page on my boards, the login page, and then the generic header for the rest? I tried just inserting the custom header above the php in the login code, then commenting out the
// Send a html header
$html = new html;
but received an error. any thoughts?
$html = new html;

That line merely creates an html object (an instance of the html class defined in ubbt.inc.php), and stores a reference to the object in the variable $html. If you commented out only that line, then any code which uses that variable would fail.
I see. So which line would I comment out so that the generic header is not used?
Which file are you editing?
login.php, but I was just taking a stab. Should i be editing a different one?
I figured it out. Went the other way and used the special forum header function. That way the one page uses the generic header and all the others use a custom one.
© UBB.Developers