Author |
Message |
danny234
Worker
Joined: Feb 14, 2008
Posts: 123
|
Posted:
Fri Feb 29, 2008 1:09 pm |
|
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. www.myps3online.co.uk
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>';
?> |
|
|
|
|
Gremmie
Former Moderator in Good Standing
Joined: Apr 06, 2006
Posts: 2415
Location: Iowa, USA
|
Posted:
Fri Feb 29, 2008 3:16 pm |
|
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. |
_________________ GCalendar - An Event Calendar for PHP-Nuke
Member_Map - A Google Maps Nuke Module |
|
|
|
danny234
|
Posted:
Fri Feb 29, 2008 3:34 pm |
|
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
|
Posted:
Sun Mar 02, 2008 2:25 am |
|
|
|
|
danny234
|
Posted:
Mon Mar 03, 2008 8:09 am |
|
Is there anyway I can put google ads in my forums as well? Like maybe at the top and bottom of the forums? |
|
|
|
|
danny234
|
Posted:
Mon Mar 03, 2008 4:13 pm |
|
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
|
Posted:
Tue Mar 04, 2008 9:52 am |
|
|
|
|
montego
Site Admin
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Mar 04, 2008 9:49 pm |
|
|
|
|
|