| Author |
Message |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Wed Aug 18, 2004 7:04 pm |
|
I tried to put google's adsense code in the 1st box in the footer (in Admin preferences) and Sentinel banned me lol
I've unbanned myself and removed the IP I was on at the time, I get a different one each time from AOL.
However, how the heck do you put the adsense banner on your site without setting off sentinel?
I'd like it at the bottom of the page above the Sentinel banner.
Can someone advise please?
thanks |
|
|
|
 |
oprime2001 Worker


Joined: Jun 04, 2004 Posts: 119 Location: Chicago IL USA
|
Posted:
Wed Aug 18, 2004 7:09 pm |
|
| Muffin wrote: | I tried to put google's adsense code in the 1st box in the footer (in Admin preferences) and Sentinel banned me lol
I've unbanned myself and removed the IP I was on at the time, I get a different one each time from AOL.
However, how the heck do you put the adsense banner on your site without setting off sentinel?
I'd like it at the bottom of the page above the Sentinel banner.
Can someone advise please?
thanks |
Have you tried adding the "Sentinel-offending" code to foot1 within nuke_config via phpmyadmin? Or you can prolly add the adsense code to the footer.php.
In my sites, I place the Google adSense code within its own googleads.php and call the code with a | Code: | | include("googleads.php"); | whereever I want the adsense banner. Using an include also helps with the maintenance since there is a single place you need to modify the adsense code.
Hope that helps. |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Wed Aug 18, 2004 7:22 pm |
|
I'm not that good with putting stuff in the code, so I didnt look to see if i could put it in the footer.php I'll take a look at that (just looked and dont have a clue where to put it or if i have to add anything else to it)
I dont go into phpmyadmin if I can help it, incase I screw it up lol
The second option sounds better but:
Do you make a php file with just the googleads code in it and call it googleads.php ?
If I want the banner at the bottom of the page before the copyright text for nuke, which file do I enter the code to call that page, and where do I insert it?
I've also discovered a bug in Sentinel by this happening, so I'll post that in the bugs section  |
|
|
|
 |
oprime2001 Worker


Joined: Jun 04, 2004 Posts: 119 Location: Chicago IL USA
|
Posted:
Wed Aug 18, 2004 7:42 pm |
|
If you want the adsense before the copyright, I would throw that include within function footmsg() in footer.php to look like
| Code: | include("googleads.php");
// DO NOT REMOVE THE FOLLOWING COPYRIGHT LINE. YOU'RE NOT ALLOWED TO REMOVE NOR EDIT THIS.
echo "$copyright<br>$total_time<br>\n</font>\n"; | I tried to add my googleads.php here but I got banned during the post preview!
Check out (found on NukeCops) with more info on adding adsense throughout your nuke site. |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Wed Aug 18, 2004 7:50 pm |
|
I've already got banned once tonight from my site, so I'll check the link out. lol
Thanks for that. |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Wed Aug 18, 2004 8:16 pm |
|
Well I've copied the code out for a googleads.php file which puts the banner in your frontpage where your first block is, so it stays there all the time.
But it has javascript in the bottom which is likely to set off sentinel again, cos i tried to post it on here and I got banned rofl
oh dear. All I want is me googleads banner at the bottom of the page  |
|
|
|
 |
oprime2001 Worker


Joined: Jun 04, 2004 Posts: 119 Location: Chicago IL USA
|
Posted:
Wed Aug 18, 2004 8:41 pm |
|
Once you have the adsense code in a googleads.php, Sentinel should not care. Somebody correct me if I'm wrong, but my understanding is that Sentinel only checks/bans when you try to post "offending" code which is why we both got bans during our respective post previews.
You should be able to see the google adsense at the bottom of your webpage without Sentinel banning you if you're using an include to call your googleads.php. |
|
|
|
 |
Tao_Man Involved


Joined: Jul 15, 2004 Posts: 252 Location: OKC, OK
|
Posted:
Thu Aug 19, 2004 11:51 am |
|
Maybe a stupid question but can you not turn off script blocking then post your changes then turn it back on? |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Thu Aug 19, 2004 2:29 pm |
|
ermm I hadnt thought of that lol
too obvious I guess.
Would that work once I turned script blocker on again? I mean I wanna put the adsense block in the centre top of Home.
I'll give it a whirl. Live dangerously for once rofl
I'll let ya know what happens. |
|
|
|
 |
Tao_Man Involved


Joined: Jul 15, 2004 Posts: 252 Location: OKC, OK
|
Posted:
Fri Aug 20, 2004 7:36 am |
|
Sentinel is to keep people posting scripts on your board not to keep you from running them. Sentinel itself uses javascript.
Worst case, edit mainfile, comment out sentinel, make your changes, then uncomment. you should leve your board unprotected for only a min or two that way |
|
|
|
 |
blith Client

Joined: Jul 18, 2003 Posts: 977
|
Posted:
Fri Aug 20, 2004 9:46 am |
|
Muffin I have adsense in my header and it did not cause any problems. I wonder what the issue is? |
|
|
|
 |
Muffin Client

Joined: Apr 10, 2004 Posts: 649 Location: UK
|
Posted:
Fri Aug 20, 2004 1:52 pm |
|
Well I did as I was told and just switched Sentinel's Script Blocker off and had no problems at all.
Thanks for everyone's time and help. |
|
|
|
 |
Dauthus Worker


Joined: Oct 07, 2003 Posts: 211
|
Posted:
Sat Aug 21, 2004 9:38 pm |
|
uhhhhhh.....did you remember to turn it back on? |
|
|
|
 |
|
|
|
|