PHP Web Host - Quality Web Hosting For All PHP Applications Just Great Software
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Wed Aug 18, 2004 7:04 pm Reply with quote Back to top

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
View user's profile Send private message
oprime2001
Worker
Worker


Joined: Jun 04, 2004
Posts: 119
Location: Chicago IL USA

PostPosted: Wed Aug 18, 2004 7:09 pm Reply with quote Back to top

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.
View user's profile Send private message
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Wed Aug 18, 2004 7:22 pm Reply with quote Back to top

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) Rolling Eyes

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 Sad
View user's profile Send private message
oprime2001
Worker
Worker


Joined: Jun 04, 2004
Posts: 119
Location: Chicago IL USA

PostPosted: Wed Aug 18, 2004 7:42 pm Reply with quote Back to top

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 Shocked during the post preview!

Check out
Only registered users can see links on this board!
Get registered or login to the forums!
(found on NukeCops) with more info on adding adsense throughout your nuke site.
View user's profile Send private message
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Wed Aug 18, 2004 7:50 pm Reply with quote Back to top

I've already got banned once tonight from my site, so I'll check the link out. lol

Thanks for that.
View user's profile Send private message
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Wed Aug 18, 2004 8:16 pm Reply with quote Back to top

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 Rolling Eyes
View user's profile Send private message
oprime2001
Worker
Worker


Joined: Jun 04, 2004
Posts: 119
Location: Chicago IL USA

PostPosted: Wed Aug 18, 2004 8:41 pm Reply with quote Back to top

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.
View user's profile Send private message
Tao_Man
Involved
Involved


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Thu Aug 19, 2004 11:51 am Reply with quote Back to top

Maybe a stupid question but can you not turn off script blocking then post your changes then turn it back on?
View user's profile Send private message Visit poster's website
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Thu Aug 19, 2004 2:29 pm Reply with quote Back to top

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.
View user's profile Send private message
Tao_Man
Involved
Involved


Joined: Jul 15, 2004
Posts: 252
Location: OKC, OK

PostPosted: Fri Aug 20, 2004 7:36 am Reply with quote Back to top

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
View user's profile Send private message Visit poster's website
blith
Client


Joined: Jul 18, 2003
Posts: 977

PostPosted: Fri Aug 20, 2004 9:46 am Reply with quote Back to top

Muffin I have adsense in my header and it did not cause any problems. I wonder what the issue is?
View user's profile Send private message Visit poster's website
Muffin
Client


Joined: Apr 10, 2004
Posts: 649
Location: UK

PostPosted: Fri Aug 20, 2004 1:52 pm Reply with quote Back to top

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.
View user's profile Send private message
Dauthus
Worker
Worker


Joined: Oct 07, 2003
Posts: 211

PostPosted: Sat Aug 21, 2004 9:38 pm Reply with quote Back to top

uhhhhhh.....did you remember to turn it back on?
View user's profile Send private message Visit poster's website
Display posts from previous:       
Post new topic   Reply to topic

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum