PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  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
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Thu Mar 23, 2006 8:30 pm Reply with quote Back to top

I built a block for AdSense.
It shows up but its not in the block.

Have a look!
Only registered users can see links on this board!
Get registered or login to the forums!


here is the code that i used:


Well I cant post the d*** thing

you cant get much help like this.

Where did i go wrong Embarassed
View user's profile Send private message
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 6044

PostPosted: Thu Mar 23, 2006 8:33 pm Reply with quote Back to top

Did you post it in to your block as source? If so, it probably has javascript, and it won't get past the HTML filter. You might need to create the block offline and upload it, or use an existing Ad Sense block / addon.
View user's profile Send private message
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Thu Mar 23, 2006 8:43 pm Reply with quote Back to top

No it is hardcoded in to the block itself.
I built it in note pad, named it block-Google_Ad_1.php
Uploaded it to Blocks then Activated it in the admin section and thats what i got.

Im Sorry I just noticed im in the wrong forum.
Blond moment i guess.
View user's profile Send private message
hinksta
Worker
Worker


Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Fri Mar 24, 2006 7:16 am Reply with quote Back to top

As far as I know you should't use notepad, it could be the problem. Do a google search for Crimson Editor.

Some of my google add's have taken up to a week to show up so you may have to wait a little.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Fri Mar 24, 2006 8:32 am Reply with quote Back to top

You must have removed your block? I don't see it. What was it doing? By the way, I will move this topic to the blocks forum.
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sat Mar 25, 2006 11:10 am Reply with quote Back to top

Yes i removed it
what it was doing was showing the block as it should , some times an ad would be in it some times it would not.
but then there would be one above it as well, as if it had been hard coded in to the nuke script as well.
i will turn it back on for you to see what its doing.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Mar 25, 2006 12:05 pm Reply with quote Back to top

Looks like you have the google adds twice, once in the "Advertising" block and then in this additional block. Either keep your Google Adds block disabled or strip out the code that is in your Advertising block and place it into your Google Adds block.

There is a right way of adding multiple google adds for adsense on a page, but, unfortunately, I don't know what that is. (I've never had the need.)
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sat Mar 25, 2006 1:01 pm Reply with quote Back to top

Yes it looks that way but its not.
If i remove the block they will both go away.
only Advertising i have in list is the banner part of admin section.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Mar 25, 2006 1:48 pm Reply with quote Back to top

Have you hardcoded the Google code anywhere in your mainfile.php or theme.php? I am seeing it twice!
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sat Mar 25, 2006 2:03 pm Reply with quote Back to top

No its only in the block that i made, when i remove that block they both are gone.
very strange.
wish i could post my block content here but i cant.

it tells me its not allowed

here is a link to a text version
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Mar 25, 2006 2:39 pm Reply with quote Back to top

Try this as your block file contents instead of what you are using:

Code:

<?php

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}

$content = <<< EOD
<center>
<s cript type="text/j avascript"><!--
google_ad_client = "<<edited for privacy>>";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "CC3333";
google_color_url = "0066FF";
google_color_text = "CC3300";
--></s cript>
<s cript type="text/j avascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</s cript>
</center>
EOD;

?>


Please note that you must remove the spaces that I have added in the words javascript and in script. That is what was not allowed in the posts. Also note that I removed your google_ad_client id. People need to use their own. Wink

Regards,
montego
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sat Mar 25, 2006 3:01 pm Reply with quote Back to top

that pushed everything to the right and only left side blocks would show.
but still no ad
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Mar 25, 2006 3:21 pm Reply with quote Back to top

Send me the entire block file. You have not done this right. By the way, send both the Advertiser block and the Google Ad block to:

montego __ at ___ montegoscripts {{do t}} com
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sat Mar 25, 2006 3:33 pm Reply with quote Back to top

there on there way, And Thanks
If it means eney thing im useing rn76v2.02 with the wysiwyg editor active and working
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Mar 25, 2006 4:17 pm Reply with quote Back to top

My appologies, I had forgotten just how "picky" the HEREDOC syntax is. It was experiencing parse errors (you were good to not have display_errors set to true!). Here is the corrected syntax:

Code:

<?php

if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}

$content = <<<EOD
<center>
<s cript type="text/j avascript"><!--
google_ad_client = "<<again edited out>>";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_ad_type = "text_image";
google_ad_channel ="";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "CC3333";
google_color_url = "0066FF";
google_color_text = "CC3300";
--></s cript>
<s cript type="text/j avascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</s cript>
</center>
EOD;

?>


I will also send it to you in a reply email. Your other block above it was just fine.
View user's profile Send private message Visit poster's website
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Mar 25, 2006 4:22 pm Reply with quote Back to top

Well, tried to send it to you but it did not like your return email addy... Sad not sure if that was intentional or not... if so then:

Smack

If not, then

Blonde Moment

ROTFL
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sat Mar 25, 2006 4:26 pm Reply with quote Back to top

Well it now seems that NukeSentinel has locked me out and im now trying to find my way back in with out a new install

I will let you know how it goes.

its he ll to be a newbie at this.
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Mar 25, 2006 4:27 pm Reply with quote Back to top

What cause you to be locked out? You didn't try to put that code into a text block did you? Wink Besides, you should have set yourself up as "Protected". There are several threads here which talk about this if you need help.
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sat Mar 25, 2006 5:56 pm Reply with quote Back to top

No NukeSentinel(tm) 2.4.2pl3 config set up will not import my user name and password.

not sure if its even working or not.
i set the Admin Auth: to ADMIN HTTP AUTH and could not get in
then set it to ADMIN CGIAUTH could not get in so i set it back to OFF

Well, block still doing the same thing so if it worked on your site its just not going to work on this one.
what i did is saved it as a block and just activated it in the block section of the admin area
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sat Mar 25, 2006 6:15 pm Reply with quote Back to top

Uughhh... when I post the code into the forum its hosing up the spacing. Be sure that there is no space after the first "EOD" and after the last "EOD;"! This works! I tested it! Wink

We'll continue your NS discussion over here:
Only registered users can see links on this board!
Get registered or login to the forums!
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sat Mar 25, 2006 7:04 pm Reply with quote Back to top

well its not blowing out the page but now its not showing nothing. LOL
View user's profile Send private message
montego
Site Admin


Joined: Aug 29, 2004
Posts: 9136
Location: Arizona

PostPosted: Sun Mar 26, 2006 6:11 am Reply with quote Back to top

Well, I made two assumptions right up front, but now I will ask them:

1) Had you signed up for Google Adsense and that is the code you got from them?

2) How long has your site been operational with content to crawl?
View user's profile Send private message Visit poster's website
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sun Mar 26, 2006 10:05 am Reply with quote Back to top

1 ) yes this account Was made 2 years ago.
2 ) I have had this site for 5 years, It was Invision Power Board till i went NUKE
and i was running google ad then.
View user's profile Send private message
quickthrottle
Regular
Regular


Joined: Mar 18, 2006
Posts: 60

PostPosted: Sun Mar 26, 2006 10:16 am Reply with quote Back to top

With my luck its a bad install, Im having XML errors with the WYSISWYG editor, RWH_WhoIsWhere is haveing MySql error, and now its the Google Ad.
View user's profile Send private message
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