Welcome to Geeklog, Anonymous Wednesday, October 09 2024 @ 11:51 pm EDT
Geeklog Forums
Remove header on certain pages?
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
Im using the theme professional, and would like to remove the header when browsing certain directories.
What I want removed are the table who bulids placing for the logo and welcometext.
I.E When browsing the forum, the header should not show...
What I want removed are the table who bulids placing for the logo and welcometext.
I.E When browsing the forum, the header should not show...
12
8
Quote
Status: offline
casper
Forum User
Full Member
Registered: 02/11/04
Posts: 142
Location:Skien, Norway
Oh, yes. Im impressed over how many answears I get when posting in the forums lately...
But, for the future if anybody needs it here are a quick solution on my question:
Ive now setup a site where the albums got more space for the pics when removing the header of the site.
Just add some php in the header.thtml around what you need to remove on certain pages or directories.
if (
($_SERVER['PHP_SELF'] == "/directory/file1.php")||
($_SERVER['PHP_SELF'] == "/directory/file2.php")||
($_SERVER['PHP_SELF'] == "/directory/file3.php")||
($_SERVER['PHP_SELF'] == "/directory/file4.php")
) {
print '';
} else {
print '';
}
?>
On the first print statement leave blank, on the second print statement add inside the single quotes what in your header you dont want to show on the defined pages. A print argument can span over several lines without any lineending, just make sure you have the ";" at the end of all lines.
But, for the future if anybody needs it here are a quick solution on my question:
Ive now setup a site where the albums got more space for the pics when removing the header of the site.
Just add some php in the header.thtml around what you need to remove on certain pages or directories.
Text Formatted Code
<?phpif (
($_SERVER['PHP_SELF'] == "/directory/file1.php")||
($_SERVER['PHP_SELF'] == "/directory/file2.php")||
($_SERVER['PHP_SELF'] == "/directory/file3.php")||
($_SERVER['PHP_SELF'] == "/directory/file4.php")
) {
print '';
} else {
print '';
}
?>
On the first print statement leave blank, on the second print statement add inside the single quotes what in your header you dont want to show on the defined pages. A print argument can span over several lines without any lineending, just make sure you have the ";" at the end of all lines.
9
7
Quote
All times are EDT. The time is now 11:51 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content