HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


How do I make banners not show up in certain areas?

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#75237 (In Topic #15600)
Avatar

Well-settled

Hi, I don't want banners to show up in the forum area, how can this be done?
Back to the top
 
Posted
Rating:
#75303
Avatar

Well-settled

Is this not possible?
Back to the top
 
Posted
Rating:
#75334
Avatar

Community saint

You can add another exclusion beside the adminzone by doing the following:

Find this snippet of code in HEADER.tpl

Code

Out side Admin Zone we have the banner
Change the following statement to add ",forum" after "adminzone"

The edited portion of the line should look like this:

PHP code

{+START,IF,{$NOT,{$OR,{$EQ,{$ZONE},adminzone,forum},{$AND,{$HAS_ZONE_ACCESS,adminzone,forum},

Jean
Back to the top
 
Posted
Rating:
#75336
Avatar

Community saint

Jean, that's a SMART little trick. I shall make a note for future use.

thanks

Take my advice. I'm not using it!

View my working ocPortal site (version 9.x.x) at Anglo-Indian Portal
Back to the top
 
Posted
Rating:
#75339
Avatar

Well-settled

Thanks. II'll ttry Iit.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: