Support Forums

banner above header on inner pages

This is a discussion on banner above header on inner pages within the Technical Support forums, part of the Technical Support Forums category; Hello Everyone! I like to display a banner above the header (the very top of the page) on the inner ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

This topic is resolved.

If you have a similar issue that this thread does not address, open a new related support topic.

 
Thread Tools Display Modes
Old 05-12-2008, 01:03 AM   #1
Senior Member
 
Join Date: Oct 2006
Posts: 133
Rep Power: 23
manilaboy is on a distinguished road
Default banner above header on inner pages

Hello Everyone!

I like to display a banner above the header (the very top of the page) on the inner pages but NOT on the home page. How can I do this?
__________________
Mike D.
manilaboy is offline  
Old 05-12-2008, 09:28 AM   #2
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

What you would need to do is add an if statement around the banner. Something like:
Code:
{if $body!=home.tpl}
show the image
{/if}
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-12-2008, 03:40 PM   #3
Senior Member
 
Join Date: Oct 2006
Posts: 133
Rep Power: 23
manilaboy is on a distinguished road
Default

Quote:
Originally Posted by suzkaw
What you would need to do is add an if statement around the banner. Something like:
Code:
{if $body!=home.tpl}
show the image
{/if}
Thanks Eric. Will this work on google ads too? I like to show google ads on the inner pages, but not on home page.
__________________
Mike D.
manilaboy is offline  
Old 05-12-2008, 03:46 PM   #4
68 Classifieds Staff
 
Eric Barnes's Avatar
 
Join Date: Mar 2006
Location: Belmont, NC
Posts: 5,489
Rep Power: 135
Eric Barnes is just really nice Eric Barnes is just really nice
Default

Yes this should work as well.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 05-12-2008, 03:49 PM   #5
Senior Member
 
Join Date: Oct 2006
Posts: 133
Rep Power: 23
manilaboy is on a distinguished road
Default

Quote:
Originally Posted by suzkaw
Yes this should work as well.
Where exactly do I need to insert it? I tried on different locations but did not work.
__________________
Mike D.
manilaboy is offline  
Old 05-14-2008, 07:51 PM   #6
Senior Member
 
Join Date: Oct 2006
Posts: 133
Rep Power: 23
manilaboy is on a distinguished road
Default

anybody can help?
__________________
Mike D.
manilaboy is offline  
Old 05-14-2008, 08:52 PM   #7
Developer & Moderator
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 2,311
Rep Power: 69
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Put it right after the #wrapper.

-Mike
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10,4.2,5.0)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline  
Old 05-14-2008, 10:24 PM   #8
Senior Member
 
Join Date: Oct 2006
Posts: 133
Rep Power: 23
manilaboy is on a distinguished road
Default

Thanks. I was able to add the banner on top of the site but it shows up on the home page. I prefer to display it only on the inner pages of the site.
__________________
Mike D.
manilaboy is offline  
Old 05-14-2008, 10:47 PM   #9
Senior Member
 
cwp's Avatar
 
Join Date: Jun 2007
Posts: 296
Rep Power: 25
cwp is a jewel in the rough
Default

Try this

Code:
{if $body!=home.tpl}
{else}
banner code here
{/if}
__________________
Version 4.0.3 Developer
cwp is offline  
Old 05-15-2008, 04:22 AM   #10
Senior Member
 
Join Date: Oct 2006
Posts: 133
Rep Power: 23
manilaboy is on a distinguished road
Default

Quote:
Originally Posted by cwp
Try this

Code:
{if $body!=home.tpl}
{else}
banner code here
{/if}
Thanks. It did not work either.
__________________
Mike D.
manilaboy is offline  
Closed Thread

Thread Tools
Display Modes



All times are GMT -4. The time now is 03:46 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2011, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0