vBadvanced Forums  
Go Back   vBadvanced Forums > vBadvanced Products > vBadvanced CMPS > vBa CMPS v1.x (Archive - Closed for Posting) > Troubleshooting / "How do I..." Questions

 
 
Thread Tools Display Modes
  #1  
Old 04-04-2005, 04:04 PM
gguerra3 gguerra3 is offline
Member
 
Join Date: Feb 2005
Posts: 31
Default GoogleAds in Forum Header but not in CMPS header

I need to place my google ads in the header section of all of my forum pages but not my CMPS home page where I have them in a module. What would be the appropriate <if> statement in the header template. Thanks
  #2  
Old 04-04-2005, 04:07 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: GoogleAds in Forum Header but not in CMPS header

Try...
PHP Code:
<if condition="!THIS_SCRIPT == 'adv_index'">
<!-- 
INSERT GOOGLE AD HERE -->
</if> 
  #3  
Old 04-04-2005, 05:54 PM
gguerra3 gguerra3 is offline
Member
 
Join Date: Feb 2005
Posts: 31
Default Re: GoogleAds in Forum Header but not in CMPS header

Quote:
<if condition="!THIS_SCRIPT == 'adv_index'">
<!-- INSERT GOOGLE AD HERE -->
</if>
this does not work.
My CMPS home page is named index.php
My forums home page is forums/index.php

This is my code which is located in the header template. When I remove the if statement the google ads appear on all pages. With the if statement they dont appear on any of them. I would like for the ads to appear on forum pages only and not CMPS home page

PHP Code:
<if condition="!THIS_SCRIPT == 'adv_index'">
<
script type="text/javascript"><!--
google_ad_client "xxxxxxxxxxxxxxxxxxxxxx";
google_ad_width 468;
google_ad_height 60;
google_ad_format "468x60_as";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
  
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</if> 
Thanks
  #4  
Old 04-04-2005, 06:06 PM
KW802's Avatar
KW802 KW802 is offline
Administrator
 
Join Date: Mar 2004
Location: A galaxy far, far away...
Posts: 5,030
Default Re: GoogleAds in Forum Header but not in CMPS header

Whoops, wrong syntax... it should be:
PHP Code:
<if condition="THIS_SCRIPT != 'adv_index'">
<!-- 
INSERT GOOGLE AD HERE -->
</if> 
  #5  
Old 04-04-2005, 06:34 PM
gguerra3 gguerra3 is offline
Member
 
Join Date: Feb 2005
Posts: 31
Default Re: GoogleAds in Forum Header but not in CMPS header

works fine, thanks
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Seperate header for CMPS Frontpage attroll Add-On Modules & Modifications 7 12-08-2004 01:46 AM
Custom Header on CMPS romeshomey Troubleshooting / "How do I..." Questions 2 07-18-2004 04:22 PM


All times are GMT -4. The time now is 10:00 PM.

Forums Powered by vBulletin, Copyright ©2000-2009, Jelsoft Enterprises Ltd.
Please note that vBadvanced is in no way affiliated with Jelsoft Enterprises Ltd, nor will Jelsoft be able to provide any support for our products.