Skip to content
WJunction - Webmaster Forum

Question about ads in global template

Status
Not open for further replies.
Hello,

We are using global template to show ads in header and footer on all pages of our site, and it works fine. However, we now want to show different ads in header and footer ONLY on our forum index page (while keeping current ads on all other pages).

Does anyone know is that possible, and how exactly to achieve that?

Thanks!
 

3 comments

Sure. Place your ads in this if statement
Code:
<if test="$this->request['section']=='boards'">
Board Index ads Here
<else />
All other ads here
</if>
 
Last edited:
Thanks Lockdown, I really appreciate your help, but it does not seem to work. Only old ads are still showing on all pages.

Perhaps I gave you wrong information. We just want this one special ad on our home page (on sitename.com nothing else) I am not sure if that is the same as ['section']=='boards' ?
 
When you say home page? It could be board index or ip.content or ip.portal or uportal or homemade. Which are you referring?

Give me a link or pictures of what you have and what you want.
 
Status
Not open for further replies.

About the author

B
New Member · Joined
2
Messages
0
Reactions
1
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom