Author |
Message |
quickthrottle
Regular


Joined: Mar 18, 2006
Posts: 60
|
Posted:
Thu Mar 23, 2006 8:30 pm |
|
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!
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  |
|
|
|
 |
kguske
Site Admin

Joined: Jun 04, 2004
Posts: 6437
|
Posted:
Thu Mar 23, 2006 8:33 pm |
|
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...
Only registered users can see links on this board! Get registered or login! |
|
|
 |
quickthrottle

|
Posted:
Thu Mar 23, 2006 8:43 pm |
|
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


Joined: Dec 23, 2005
Posts: 226
Location: UK
|
Posted:
Fri Mar 24, 2006 7:16 am |
|
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. |
|
|
|
 |
montego
Site Admin

Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Fri Mar 24, 2006 8:32 am |
|
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. |
_________________ Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! |
|
|
 |
quickthrottle

|
Posted:
Sat Mar 25, 2006 11:10 am |
|
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

|
Posted:
Sat Mar 25, 2006 12:05 pm |
|
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

|
Posted:
Sat Mar 25, 2006 1:01 pm |
|
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

|
Posted:
Sat Mar 25, 2006 1:48 pm |
|
Have you hardcoded the Google code anywhere in your mainfile.php or theme.php? I am seeing it twice! |
|
|
|
 |
quickthrottle

|
Posted:
Sat Mar 25, 2006 2:03 pm |
|
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 www.clubhouseforum.com/google.doc |
|
|
|
 |
montego

|
Posted:
Sat Mar 25, 2006 2:39 pm |
|
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.
Regards,
montego |
|
|
|
 |
quickthrottle

|
Posted:
Sat Mar 25, 2006 3:01 pm |
|
that pushed everything to the right and only left side blocks would show.
but still no ad |
|
|
|
 |
montego

|
Posted:
Sat Mar 25, 2006 3:21 pm |
|
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

|
Posted:
Sat Mar 25, 2006 3:33 pm |
|
there on there way, And Thanks
If it means eney thing im useing rn76v2.02 with the wysiwyg editor active and working |
|
|
|
 |
montego

|
Posted:
Sat Mar 25, 2006 4:17 pm |
|
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

|
Posted:
Sat Mar 25, 2006 4:22 pm |
|
Well, tried to send it to you but it did not like your return email addy... not sure if that was intentional or not... if so then:
If not, then
 |
|
|
|
 |
quickthrottle

|
Posted:
Sat Mar 25, 2006 4:26 pm |
|
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

|
Posted:
Sat Mar 25, 2006 4:27 pm |
|
What cause you to be locked out? You didn't try to put that code into a text block did you? Besides, you should have set yourself up as "Protected". There are several threads here which talk about this if you need help. |
|
|
|
 |
quickthrottle

|
Posted:
Sat Mar 25, 2006 5:56 pm |
|
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

|
Posted:
Sat Mar 25, 2006 6:15 pm |
|
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!
We'll continue your NS discussion over here:
http://www.ravenphpscripts.com/postp64076.html |
|
|
|
 |
quickthrottle

|
Posted:
Sat Mar 25, 2006 7:04 pm |
|
well its not blowing out the page but now its not showing nothing. LOL |
|
|
|
 |
montego

|
Posted:
Sun Mar 26, 2006 6:11 am |
|
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

|
Posted:
Sun Mar 26, 2006 10:05 am |
|
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

|
Posted:
Sun Mar 26, 2006 10:16 am |
|
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. |
|
|
|
 |
|