| |
adders1 Noogle

Joined: 24 Oct 2006
286.20 GC$
Items
|
Posted: Tue Oct 24, 2006 12:30 pm Post subject: Using a CMS - how do I stop ads appearing on all pages |
|
|
|
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 |
|
|
mertero Googler

Joined: 15 Mar 2005
4286.45 GC$
Items
|
Posted: Thu Oct 26, 2006 9:27 pm Post subject: AdSense module |
|
|
|
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 |
|
|
adders1 Noogle

Joined: 24 Oct 2006
286.20 GC$
Items
|
Posted: Fri Oct 27, 2006 7:25 am Post subject: |
|
|
|
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 |
|
|
Sponsored Links
|
Posted: 28 Aug 2008 9:26 pm Post subject: Advertisements |
|
|
|
|
|
|
| Back to top |
|
|
|
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
|
|
|
|
|