Google Community Chat
 
Using a CMS - how do I stop ads appearing on all pages

You're visiting Google Community as a guest.
In order to post, you'll need to register and log in.


(If you were registered and logged in, these advertisements wouldn't be here)
Post new topic   Reply to topic    Google Community Forum Index // Google AdWords & AdSense Forum
   
Author Message
adders1
Noogle
Noogle


Joined: 24 Oct 2006

286.20 GC$

Items

PostPosted: Tue Oct 24, 2006 12:30 pm    Post subject: Using a CMS - how do I stop ads appearing on all pages Reply with quote
Hello All

I'm using a PHP based CMS and adsense forms part of my webpage template.

I don't want the ads in content, does anyone know how to stop ads appears in certain URLs/pages.

This could be via some option I'm unaware of or through coding PHP/javascript.

I've tried this question on coding forums with no luck, thought I'd give you guys a go.

for those that want to know.

I use Joomla - the pages I want to omit are different pages with the Forum component I use so I can't handle this using selective placement of modules.

Cheers

Adders1

_________________
Astronomican - Warhammer 40k Community
Web Hosting
Back to top
View user's profile Send private message Visit poster's website
mertero
Googler
Googler


Joined: 15 Mar 2005

4286.45 GC$

Items

PostPosted: Thu Oct 26, 2006 9:27 pm    Post subject: AdSense module Reply with quote
I know there is an AdSense module for Joomla... Have you tried using it? It might enable you to do what you want.
_________________
Ron Mertens | Metalgrass software
AdSenseLog : Maximize your AdSense revenues with our tracking and analyzing software!
Back to top
View user's profile Send private message Visit poster's website
adders1
Noogle
Noogle


Joined: 24 Oct 2006

286.20 GC$

Items

PostPosted: Fri Oct 27, 2006 7:25 am    Post subject: Reply with quote
Yep - I've already installed this.

It's alright I've hand coded a fix for this issue using an array.

I know this isn't a coding forum but someone may find this helpful:

Code:

$url = substr($_SERVER['REQUEST_URI'],1);
$nodisplay = Array("vnew/index.php?option=com_frontpage&Itemid=1", "vnew/index.php?option=com_content&task=view&id=5&Itemid=6". "etc", "etc");

<?php
                     
                    if (!in_array($url, $nodisplay))
                        mosLoadModules ( 'header', -2);
 ?>



Cheers

Adders1

_________________
Astronomican - Warhammer 40k Community
Web Hosting
Back to top
View user's profile Send private message Visit poster's website
Sponsored Links
Posted: 28 Aug 2008 9:26 pm    Post subject: Advertisements
Back to top
Post new topic   Reply to topic    Google Community Forum Index // Google AdWords & AdSense Forum All times are GMT - 8 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.

alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden

© 2005-2006 Google Community

Powered by phpBB

Privacy Policy | Contact Us

Powered by Google Search blog

This website is not affiliated in any way with Google, Inc.
Google™ is a registered trademark of Google, Inc.