Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Stop ads from showing in the header and footer when a user is registering?
WhiteEagle Offline
Member
***
Posts: 62
Joined: Sep 2011
Post: #1
Question Stop ads from showing in the header and footer when a user is registering?
Hello all,

How would I go about stopping the ads from showing in the header and footer when a user registers at my site? It's against the Google TOS to do so, so I want to fix it before I get in trouble with them. I'm not very good with PHP, as I can barely modify a template as it is.

TIA!
Nathan Pinno

I fold for team 52482. Do you fold?
MyBB powered sites: Leet Link FoodRatings
09-01-2011 06:50 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #2
RE: Stop ads from showing in the header and footer when a user is registering?
Do you mean in registration process (registration page)?

09-01-2011 06:52 AM
Find all posts by this user Quote this message in a reply
WhiteEagle Offline
Member
***
Posts: 62
Joined: Sep 2011
Post: #3
RE: Stop ads from showing in the header and footer when a user is registering?
That's exactly what I mean!

I fold for team 52482. Do you fold?
MyBB powered sites: Leet Link FoodRatings
09-01-2011 07:05 AM
Find all posts by this user Quote this message in a reply
RateU Offline
Administrator
*******
Posts: 2,350
Joined: Mar 2010
Post: #4
RE: Stop ads from showing in the header and footer when a user is registering?
Try this:

Code:
<if THIS_SCRIPT != 'member.php' || $GLOBALS['mybb']->input['action'] != 'register' then>
Your ads code here
</if>


09-01-2011 07:16 AM
Find all posts by this user Quote this message in a reply
WhiteEagle Offline
Member
***
Posts: 62
Joined: Sep 2011
Post: #5
RE: Stop ads from showing in the header and footer when a user is registering?
Perfect, thanks a lot! It works like a charm!

I fold for team 52482. Do you fold?
MyBB powered sites: Leet Link FoodRatings
09-01-2011 07:26 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #6
RE: Stop ads from showing in the header and footer when a user is registering?
To be honest, I doubt they really care, and I don't even really see how it's against their ToS.
But anyway, it's fair that people put it in header/footer and don't realise that it's on some pages it's not supposed to be on.

My Blog
09-01-2011 08:38 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: