Support Forums

Noads Variable

This is a discussion on Noads Variable within the Technical Support forums, part of the Technical Support Forums category; This question may be related to a resolved thread: Still two passwords sent after upgrade - 68 Classifieds Forums . ...


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 11-17-2009, 02:13 AM   #1
Member
 
Join Date: Apr 2009
Posts: 61
Rep Power: 12
JP2 Designs is on a distinguished road
Default Noads Variable

This question may be related to a resolved thread: Still two passwords sent after upgrade - 68 Classifieds Forums.


Hi, i have the same problem as the above thread, how do you create a Noads Variable so for that page the google adverts will not show on the "forget password" page?

Thank you
Jermayn
__________________
Jermayn Parker
v4.1.3 Developer
using deapsea as a template for hack m y own
JP2 Designs is offline  
Old 11-17-2009, 06:37 AM   #2
Staff
 
Join Date: Mar 2006
Posts: 593
Rep Power: 34
Blair will become famous soon enough
Default

1. Open your layout.tpl file
2. Find your Google Adsense code
3. Wrap your Adsense code like this:
PHP Code:
{if $body != "user/userlogin.tpl"}
   {
literal}
      ..... 
Google adsense code .....
   {/
literal}
{/if} 
__________________
Blair
68C Staff

68C Downloads | Report a Bug | Knowledge Base
If you have a current support subscription, you can Submit a Support Ticket
Blair is offline  
Old 11-17-2009, 09:11 PM   #3
Member
 
Join Date: Apr 2009
Posts: 61
Rep Power: 12
JP2 Designs is on a distinguished road
Default

Thanks for that Blair but it did not work...

I tried blocking the script when "user/userlogin.tpl" was called but that did not work when I went to the "userforgot.tpl" page, so I tried that and the script was blocked when you entered in your email but after that the adsense shows up again (so only blocks it once) after your email address has been sent.

The url you get in the email is something like "http://www.tradinghub.com.au/userforgot.php?key=zp90gNuYrWv4K7F" and that also shows the adsense code.

Its like the noad variable only works once and if it has the "?key=etcetcetc" it sees it as a different url and will show the adsense code.

I am using openx but I tried pure adsense JS and that still did not work.

Thanks for your help
__________________
Jermayn Parker
v4.1.3 Developer
using deapsea as a template for hack m y own
JP2 Designs is offline  
Old 11-19-2009, 12:52 AM   #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

Can you try this:
Code:
{if $body != "user/userlogin.tpl" || $smarty.post.action == '' || $smarty.get.key != ""}
{/if}
I may need to double check that if but I think that will work.
__________________
Eric Barnes
68 Classifieds Developer
Customer Area | Issue Tracker | Documentation | 68C Mods | 68 @ Twitter | My Modules
Eric Barnes is offline  
Old 11-19-2009, 05:56 AM   #5
Member
 
Join Date: Apr 2009
Posts: 61
Rep Power: 12
JP2 Designs is on a distinguished road
Default

Works a charm Eric...

Thanks man
__________________
Jermayn Parker
v4.1.3 Developer
using deapsea as a template for hack m y own
JP2 Designs is offline  
Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
If Variable contains bowers01 Technical Support 1 09-28-2009 08:47 AM
v4.0.x How to compare variable hel68c Modules / Plugins / Modifications 5 04-14-2009 04:52 PM
category variable seymourjames Modules / Plugins / Modifications 5 08-26-2008 11:24 AM
$Body Variable? kampbell Templates, HTML, CSS, and Design Help 2 08-26-2007 11:41 AM


All times are GMT -4. The time now is 05:41 AM.


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