View Single Post
  #1  
Old 06-02-2013, 09:16 PM
  Soft-Reseller.com's Avatar 
Soft-Reseller.com Soft-Reseller.com is offline
 

Advanced Member
  
Join Date: Jul 2009
Posts: 68
 

Default Want to show different banner on Home page and other pages.

I want to show my own banner on Home page and Google banners on all other pages.

I know it will require an if condition and a veriable to catch link. I am giving down an idea but if someone can give me exact code needed.


variable = a
a = get current link
if ( a = homepage or a = home.php )
{ show my own banner (My HTML Code)}
else
{ show google banner (Google Adsense Code)}


Here I use or in if condition because when you simply open the domain
example
http://www.soft-reseller.com
you will not find any file name in the end and usually it is index.html but what xcart uses I dont know.


Regards
Reply With Quote