Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Opinions please
#15
Well, this bit checks if the user is on a login, logout, or register page. I couldn't find any more in a hurry, but if anyone knows of any others, please let me know Smile
/* Now let's check if the page they are on is a message page */
$script_name = str_replace("/forums/", "", $_SERVER['SCRIPT_NAME']);
switch($script_name) {
  case "member.php":
    if (($_GET['action'] == "login") || ($_GET['action'] == "logout") || ($_GET['action'] == "register")) {
      $google_ad['advert'] = "";
      $google_ad['message'] = "";
    }
  break;
}
In my script, that goes below the part that checks whether they should see the ads or not. It seems to work for me Smile

(This is assuming your website is located at http://domain/forums/, you can change that accordingly. Eg http://domain/mybb/ you would change "/forums/" to "/mybb/")
[Image: 143e9cd3157e53.jpg]
James - Micra Sports Club


Messages In This Thread
Opinions please - by James - 2004-12-23, 01:12 AM
RE: Opinions please - by James - 2004-12-23, 01:46 AM
RE: Opinions please - by yukisho - 2004-12-23, 01:47 AM
RE: Opinions please - by James - 2004-12-23, 01:57 AM
RE: Opinions please - by yukisho - 2004-12-23, 02:09 AM
RE: Opinions please - by James - 2004-12-23, 02:20 AM
RE: RE: Opinions please - by wolfden - 2004-12-23, 10:28 AM
RE: RE: RE: Opinions please - by James - 2004-12-23, 10:32 AM
RE: Opinions please - by yukisho - 2004-12-23, 02:25 AM
RE: Opinions please - by James - 2004-12-23, 02:42 AM
RE: Opinions please - by yukisho - 2004-12-23, 03:06 AM
RE: Opinions please - by wolfden - 2004-12-23, 10:30 AM
RE: Opinions please - by wolfden - 2004-12-23, 10:38 AM
RE: Opinions please - by James - 2004-12-23, 10:45 AM
RE: Opinions please - by James - 2004-12-23, 10:59 AM
RE: Opinions please - by wolfden - 2004-12-23, 11:20 AM
RE: Opinions please - by James - 2004-12-23, 11:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)