UBB.Dev
Posted By: certify Compact header Help - Urgent - 07/28/2001 12:13 AM
How do I get rid of the double header?? I'm using compact templates.

http://www.certifyexpress.com/anothertest.shtml

Quote
quote:
Quote
quote:
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 12:15 AM
If I get rid of this line

$Header

then this line is gone as well.

You are not logged in. Login or Register
Posted By: Jamin Re: Compact header Help - Urgent - 07/28/2001 1:21 AM
OK, I have absolutely no clue what those quotes are for... Please explain them, cuz they don't make any sense to me.

I look at that page, and I don't see any UBB-generated header at all, that I can tell.

---Skorpion
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 1:30 AM
Quote
quote:
I did something just now. Ok I have place back the $Header to public_header.pl

Here is how I call the file using SSI.

Quote
quote:
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 2:05 AM
That is strange now nothing is showing!!

Where did I go wrong?
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 2:07 AM
Ok it done. See my problem now with the header.
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 2:33 AM
This is my last problem. Please help.
Posted By: Jamin Re: Compact header Help - Urgent - 07/28/2001 2:33 AM
OK, I see it now. It's kinda hard to tell where your page stops and the SSI begins. The only problem I've ever had with double headers like that, is when I had what I wanted on the page, already on the page, as well as the SSI. (I hope that made sense... reading it myself, it seems kinda confusing, but I honestly don't know how to say it any more clear..)

The SSI pulls EVERYTHING from your Header and Header Insert fields of the Style Template, as well as the $StandardTitleTable variable, which is what contains the login/logout thing when you're using Compact Headers. So, anything that is in those fields does NOT need to be hard-coded into the SHTML page.

If nothing is hard-coded into the page and you still can't figure it out, email me ([email][email protected][/email) and send me the .SHTML file, and I'll take a look at it.

---Skorpion
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 2:44 AM
I understand your explaination clearly.

Is there a way for my to do a changes in the public_header.pl file?
Posted By: Jamin Re: Compact header Help - Urgent - 07/28/2001 2:48 AM
What do you mean by changes?

If you mean adding HTML into the template file, you probably can, I wouldn't see why not. Just add it where you see all the rest of the HTML.

---Skorpion
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 2:52 AM
Changes as in having "You are not logged in. Login or Register" added to the public_header.pl but the $Header line remove.
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 2:54 AM
I've been looking at public_common.pl and public_forum_summary.pl to see how to do it. But I'm not too good in CGI.
Posted By: Jamin Re: Compact header Help - Urgent - 07/28/2001 3:15 AM
Quote
quote:
There's all the stuff from $StandardTitleTable. I'm guessing that's what you're looking for. I guess just replace $Header with that stuff, and it might work.

---Skorpion
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 3:22 AM
Now everything is gone. eek
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 3:26 AM
Actually I'm trying to get the You are not logged in. Login or Register to work..
Posted By: Jamin Re: Compact header Help - Urgent - 07/28/2001 3:29 AM
$show_logout is the variable for that.

---Skorpion
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 3:40 AM
Code removed by Skorpion.


Thanks Scorpion. Here is how I add it in public_header.pl but when I load the page http://www.certifyexpress.com/anothertest.shtml nothing shows up. confused

[ July 27, 2001: Message edited by: Skorpion ]
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 4:04 AM
Anybody??
Posted By: Jamin Re: Compact header Help - Urgent - 07/28/2001 5:25 AM
Those variables aren't set up for use from that template file. That's why they don't work. They just don't work.

I would guess you can make them work by doing a require [FILE] in the template. But I'm not sure which file you'd have to require. If you have UltraEdit, do a Find In Files... for $show_logout and see what you come up with.

---Skorpion
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 5:57 AM
Quote
quote:
I found $show_logout. It's in ultimatebb.cgi
Posted By: certify Re: Compact header Help - Urgent - 07/28/2001 7:18 AM
I got it using a simpler way. I created a fix template without the header and change the ubb_ssi.cgi line where it call the template. Thank you very much scorpion! smile

Quote
quote:
© UBB.Developers