Author |
Message |
danny234
Worker
![Worker Worker](modules/Forums/images/ranks/3stars.gif)
![](modules/Forums/images/avatars/gallery/blank.gif)
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. 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>';
?> |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
Gremmie
Former Moderator in Good Standing
![](modules/Forums/images/avatars/0cd76dcf45da5de2cf864.jpg)
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. |
_________________ 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 |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
danny234
![](modules/Forums/images/avatars/gallery/blank.gif)
|
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 |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
evaders99
Former Moderator in Good Standing
![](modules/Forums/images/avatars/803d73f6452557b947721.jpg)
Joined: Apr 30, 2004
Posts: 3221
|
Posted:
Sun Mar 02, 2008 2:25 am |
|
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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
danny234
![](modules/Forums/images/avatars/gallery/blank.gif)
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
danny234
![](modules/Forums/images/avatars/gallery/blank.gif)
|
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? |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
danny234
![](modules/Forums/images/avatars/gallery/blank.gif)
|
Posted:
Tue Mar 04, 2008 9:52 am |
|
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
montego
Site Admin
![](modules/Forums/images/avatars/0c0adf824792d6d341ef4.gif)
Joined: Aug 29, 2004
Posts: 9457
Location: Arizona
|
Posted:
Tue Mar 04, 2008 9:49 pm |
|
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](modules/Forums/images/smiles/icon_wink.gif) |
_________________ 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! |
|
|
![](themes/RavenIce/forums/images/spacer.gif) |
|