Welcome to Geeklog Thursday, April 22 2021 @ 09:31 pm EDT

Geeklog Forums

Remove header on certain pages?


Status: offline

casper

Forum User
Full Member
Registered: 11/02/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...
 Quote

Status: offline

casper

Forum User
Full Member
Registered: 11/02/04
Posts: 142
Location:Skien, Norway
Oh, yes. Im impressed over how many answears I get when posting in the forums lately... Leaves me speechless

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.

PHP Formatted Code
<?php
  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.
 Quote

All times are EDT. The time is now 09:31 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