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
danny234
Worker
Worker


Joined: Feb 14, 2008
Posts: 123

PostPosted: Fri Feb 29, 2008 1:09 pm Reply with quote

I got this code that works as a block in the modules in admin panel but when it's activated it had nothing in it so I changed the google ad client code in the file so now I have the google ad in the box but it's showing as a white background inside the block. What I wanted to know is how do I find the right colour code so I can blend it in with the background so it looks neat and not out of place like it does now and change the links so they look like the rest of my site?
Here is my website, you can see what I mean if you look on the bottom left of the page. Only registered users can see links on this board! Get registered or login!

this is the code below that I use for my block





if (eregi("block-Google-Ads120x240.php", $PHP_SELF)) {
Header("Location: index.php");
die();
}
$content = '<center><script type="text/javascript"><!--
google_ad_client = "pub-9848591903060382";
google_ad_width = 120;
google_ad_height = 240;
google_ad_format = "120x240_as";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</center>';
?>
 
View user's profile Send private message Visit poster's website MSN Messenger
Gremmie
Former Moderator in Good Standing


Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA

PostPosted: Fri Feb 29, 2008 3:16 pm Reply with quote

Google for web color codes. Or use a paint program like photoshop or the gimp to determine the code for a given color. Then replace the numbers (FFFFF, 0000, 666666) above with your color values. Give that a shot.

_________________
Only registered users can see links on this board! Get registered or login! - An Event Calendar for PHP-Nuke
Only registered users can see links on this board! Get registered or login! - A Google Maps Nuke Module 
View user's profile Send private message
danny234
PostPosted: Fri Feb 29, 2008 3:34 pm Reply with quote

Thanks Gremmie it worked much appreciated, 1 quick question why do google ads not relate to my website like mine is a games/computer site but google advertise insurance or whatever else there is lol

Danny
 
evaders99
Former Moderator in Good Standing


Joined: Apr 30, 2004
Posts: 3221

PostPosted: Sun Mar 02, 2008 2:25 am Reply with quote

There are keywords that various advertisers pay for. Sometimes you may say something that someone is paying a lot of money for, in which case you'll get those ads more. I believe you can select which categories you want, if you don't like certain ads appearing on your site.

_________________
- Only registered users can see links on this board! Get registered or login! -

Need help? Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
danny234
PostPosted: Mon Mar 03, 2008 8:09 am Reply with quote

Is there anyway I can put google ads in my forums as well? Like maybe at the top and bottom of the forums?
 
danny234
PostPosted: Mon Mar 03, 2008 4:13 pm Reply with quote

I've also seen a webite where they have google ads in the forums post so it looks exactly like someone posted a post and show up in the forum table so it's blended in with the table if you get me, is that a hard thing to do or is that easy to do?
 
danny234
PostPosted: Tue Mar 04, 2008 9:52 am Reply with quote

bump
 
montego
Site Admin


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

PostPosted: Tue Mar 04, 2008 9:49 pm Reply with quote

danny234, please give folks at least 48 hours to respond per our Only registered users can see links on this board! Get registered or login!. Thanks.

Unfortunately, every theme can be different. However, if your theme has a header.html and footer.html, maybe that could be a place to start looking. Wink

_________________
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! 
View user's profile Send private message Visit poster's website
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 ©