This website can use cookies to improve the user experience

This website can use cookies to improve the user experience and to provide certain services and functions to users. Cookies contain small amounts of information (such as login information and user preferences) and will be stored on your device.

Enable All Cookies Privacy Policy

how to not show Header block in reviews?


avatar
capslock 0
From: -
how to not show Header block in reviews?

Is there a way to not show Header block in reviews?

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.

Responses to this topic


1 Re: how to not show Header block in reviews?
avatar
Administrator
1342
From: Austria
how to not show Header block in reviews?

This line:

if (preg_match("/review/i",$_SERVER['PHP_SELF']))

should be:

if (!preg_match("/review/i",$_SERVER['PHP_SELF']))
1 Re: how to not show Header block in reviews?
avatar
OP 0
From: -
how to not show Header block in reviews?

sorry for later ...
it displays blocks only in review.php but i need the opposite: blocks to not be displayed only in review
1 Re: how to not show Header block in reviews?
avatar
Administrator
1342
From: Austria
how to not show Header block in reviews?

Please send your core.php to office [-at-] esselbach [dot] com and I will take a look.
1 Re: how to not show Header block in reviews?
avatar
Administrator
1342
From: Austria
how to not show Header block in reviews?

Open core.php in an editor and find:

$cache = GetCache("news", "header_block");

Replace it with:

if (preg_match("/review/i",$_SERVER['PHP_SELF']))

{
$cache = GetCache("news", "header_block");

Then find:

WriteCache("news", "header_block", $thisblock, MkTime()+3600); 

and replace with:

WriteCache("news", "header_block", $thisblock, MkTime()+3600); 

}

Notice

This topic is archived. New comments cannot be posted and votes cannot be cast.