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
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.
Have you tried going to the register and log in templates to see if the code is there.
The templates used on login and register page are the universal header and footer templates. So obviously this shows on very page.
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
You can add exception if statements to the plugin.
(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 ?
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)

Something like that will work fine.
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)

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,759 Sep 18, 2010, 02:19 PM
Last Post: 88power88
  Bans.php Page Elite Dash 7 5,032 Aug 07, 2010, 07:18 AM
Last Post: IceGuru
  [Release] Donation Page 1.1 Zash 23 13,293 Jul 25, 2010, 12:23 PM
Last Post: Zash
  Reputation Given Page MrAnonymous 17 10,425 Jul 11, 2010, 01:12 PM
Last Post: Elite Dash
  Login box in the top right wcwman18 0 2,394 Jun 24, 2010, 10:30 AM
Last Post: wcwman18

Forum Jump:

Users browsing this thread: 1 Guest(s)