Page 1 of 1

How to skip code from overall header

Posted: 7. May 2008 23:34
by JirkaX
Hi, I have advertisement code in overall header file and I would like it to be skipped on portal.php. Is there any easy way how to do it?

Re: How to skip code from overall header

Posted: 8. May 2008 06:05
by el_Vindicador
heres my solution.

copy the overall_header ...an rename to somethins like "portal_header"

quit the ad in that copy...

and modify the portal_body.html

<---- include overall_header jdahsndijnsa

to

<---- include portal_header sdnasoda

its a example.....just see the html files and rename.

Re: How to skip code from overall header

Posted: 8. May 2008 08:08
by Kevin
No need to define a new overall_header.

Simply wrap your ads code in the overall_header with:

Code: Select all

<!-- IF not $S_IN_PORTAL -->
--- your ads code ---

Code: Select all

<!-- ENDIF -->
Greetz


Kevin

Re: How to skip code from overall header

Posted: 8. May 2008 08:41
by JirkaX
Thanks Kevin. That's exactly what I was looking for.