Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
quickthrottle
Regular
Regular



Joined: Mar 18, 2006
Posts: 60

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

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

Have a look! www.clubhouseforum.com

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: 6432

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

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.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
quickthrottle







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

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.
 
hinksta
Worker
Worker



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

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

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: 9457
Location: Arizona

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

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.

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
quickthrottle







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

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.
 
montego







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

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.)
 
quickthrottle







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

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.
 
montego







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

Have you hardcoded the Google code anywhere in your mainfile.php or theme.php? I am seeing it twice!
 
quickthrottle







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

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! ]
 
montego







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

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
 
quickthrottle







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

that pushed everything to the right and only left side blocks would show.
but still no ad
 
montego







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

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
 
quickthrottle







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

there on there way, And Thanks
If it means eney thing im useing rn76v2.02 with the wysiwyg editor active and working
 
montego







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

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.
 
montego







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

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
 
quickthrottle







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

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.
 
montego







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

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.
 
quickthrottle







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

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
 
montego







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

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! ]
 
quickthrottle







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

well its not blowing out the page but now its not showing nothing. LOL
 
montego







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

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?
 
quickthrottle







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

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.
 
quickthrottle







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

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.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©