How to skip code from overall header

Current Version: 1.0.6
Released: 09.01.10
Forum rules
Before creating a new support thread, please take a look in the board3 Portal FAQ and use the search!
Many questions have already been answered.
Locked

Topic author
JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

How to skip code from overall header

Post 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?

el_Vindicador
Active Member
Posts: 13
Joined: 8. February 2008 17:16

Re: How to skip code from overall header

Post 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.
User avatar

Kevin
Site Admin
Posts: 2989
Joined: 7. January 2006 20:11
phpBB.de User: Saint
phpBB.com User: Saint_hh
Location: Hamburg
Contact:

Re: How to skip code from overall header

Post 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
~~~ They say the definition of madness is doing the same thing and expecting a different result ~~~

Kein Support per PN / No support via PM!

Topic author
JirkaX
Translator
Posts: 67
Joined: 19. April 2008 14:47

Re: How to skip code from overall header

Post by JirkaX »

Thanks Kevin. That's exactly what I was looking for.
Locked

Return to “board3 Portal 1.0.x - English Support”