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
mercman
Regular
Regular



Joined: Nov 29, 2006
Posts: 64
Location: TN, USA

PostPosted: Thu Dec 14, 2006 7:37 pm Reply with quote

Hello all!
I've been trying to get some Google AdSense code to work in different blocks on my site, but all I end up with are collapsed blocks.
This changes if I place the code into one of the HTML header, footer, etc. "pages" of the theme (the banners, etc. show up, but this really messes up the site layout - LOL).
Not sure if it matters, but I'm using the 7.6 distro and Sentinel 2.5.03.
Can someone help a relative PHP noob?
This is a sample of the a block code:
Code:
<?php

if (eregi("block-google_image_lft.php",$PHP_SELF)) {
    Header("Location: index.php");
    die();
}
$content  =  "<scr ipt type=\"text/javascr ipt\"><!--";
$content  .= "google_ad_client = \"pub-8180455488922863\";";
$content  .= "google_ad_width = 120;";
$content  .= "google_ad_height = 600;";
$content  .= "google_ad_format = \"120x600_as\";";
$content  .= "google_ad_type = \"image\";";
$content  .= "//2006-12-14: vert_image_left";
$content  .= "google_ad_channel = \"5978443721\";";
$content  .= "google_color_border = \"CCCCCC\";";
$content  .= "google_color_bg = \"CCCCCC\";";
$content  .= "google_color_link = \"000000\";";
$content  .= "google_color_text = \"333333\";";
$content  .= "google_color_url = \"666666\";";
$content  .= "//--></scr ipt></p>";
$content  .= "<scr ipt type=\"text/javascript\"";
$content  .= "src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">";
$content  .= "</scr ipt>";
?>


Thanks in advance!

-Merc
 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Thu Dec 14, 2006 8:02 pm Reply with quote

try this....

Code:


<?php
if ( !defined('BLOCK_FILE') ) {
    Header("Location: ../index.php");
    die();
}
$content = '<center><sc ript type="text/javasc ript"><!--
google_ad_client = "pub-8180455488922863";
google_ad_width = 120;
google_ad_height = 600;
google_ad_format = "120x600_as";
google_ad_channel ="5978443721";
google_color_border = "CCCCCC";
google_color_bg = "CCCCCC";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></scr ipt>
<sc ript type="text/javascr ipt"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</sc ript></center>'
?>

 
View user's profile Send private message
mercman







PostPosted: Thu Dec 14, 2006 8:08 pm Reply with quote

hitwalker,
Thank you for your reply.
No dice though; still a collapsed block. Crying or Very sad

-Merc
 
hitwalker







PostPosted: Fri Dec 15, 2006 4:44 am Reply with quote

What you mean with collapsed block ?
 
mercman







PostPosted: Mon Dec 18, 2006 11:14 am Reply with quote

Simply that.
A block on the left or right side of the page that has nothing showing in it, but has a title.
Here, let me PM you the address to my beta testing site so you can see what I mean.
PM sent.

-Merc
 
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 ©