REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Disable Ads on Login and registration Page
#1
I use ad manager plugin. However i see that header and footer ads are placed on every page which includes login as well as register page. This is certainly against adsense TOS.

Can anyone tell me how to exclude from these pages.
#2
Have you tried going to the register and log in templates to see if the code is there.
#3
The templates used on login and register page are the universal header and footer templates. So obviously this shows on very page.
#4
No one ? Strange that no bothered about this issue. Right now i am skeptical to use My Ads manager .. don't want my adsense account in trouble, unless this issue is fixed
#5
You can add exception if statements to the plugin.
#6
(May 08, 2010, 01:57 PM)labrocca Wrote: You can add exception if statements to the plugin.

And what are those for login page/ register page / forgot password page / ucp page ?
#7
Login is action "login".
Register is action "register".
Lost password is action "lostpw".

The usercp shouldn't be a google adsense problem.

So to remove the ads from those pages something like this can be added to the function in the plugin file.

$check = array("login","lostpw","register");
if (in_array($mybb->input['action'], $check)
return;

Something like that will work fine.
#8
FYI you might want to make this plugin be inclusive then if you're really picky about ads.

$check = array("forumdisplay.php","index.php","showthread.php");
if (in_array(THIS_SCRIPT, $check)
return;

I think something like that would work and add pages as you deem fit. On the top of each file is a line like this:

define('THIS_SCRIPT', 'usercp.php');


Possibly Related Threads...
Thread Author Replies Views Last Post
  Theres no refferal box on registration 88power88 2 3,357 Sep 18, 2010, 02:19 PM
Last Post: 88power88
  Bans.php Page Elite Dash 7 4,509 Aug 07, 2010, 07:18 AM
Last Post: IceGuru
  [Release] Donation Page 1.1 Zash 23 11,799 Jul 25, 2010, 12:23 PM
Last Post: Zash
  Reputation Given Page MrAnonymous 17 9,010 Jul 11, 2010, 01:12 PM
Last Post: Elite Dash
  Login box in the top right wcwman18 0 2,234 Jun 24, 2010, 10:30 AM
Last Post: wcwman18

Forum Jump:


Users browsing this thread: 1 Guest(s)