Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Google ads problem  (Read 6118 times)

0 Members and 1 Guest are viewing this topic.

Faithless

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Google ads problem
« on: February 02, 2006, 10:06:07 am »

Hi
I inserted Google adsense code in template.html but it doesn’t work
Can you help me plz?

My gallery: http://elisha-fans.com/gallery/
« Last Edit: February 02, 2006, 01:15:35 pm by GauGau »
Logged

Nibbler

  • Guest
Re: Google ads problem
« Reply #1 on: February 02, 2006, 10:40:01 am »

It should be

Code: [Select]
<script type="text/javascript"><!--
google_ad_client = "pub-0652110030323747";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0099FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>

not

Code: [Select]
<script type="text/javascript"><!--
<script type="text/javascript"><!--
google_ad_client = "pub-0652110030323747";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0099FF";
google_color_url = "008000";
google_color_text = "000000";
//--></script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script>
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Google ads problem
« Reply #2 on: February 02, 2006, 10:41:13 am »

Improper table nesting and double-declaration of the script section, try
Code: [Select]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html dir="{LANG_DIR}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset={CHARSET}" />
<meta http-equiv="Pragma" content="no-cache" />
<title>{TITLE}</title>
{META}
<link rel="stylesheet" href="themes/pink/style.css" type="text/css" />
<script type="text/javascript" src="scripts.js"></script>
<!-- $Id: template.html,v 1.6 2005/12/04 03:22:35 donnoman Exp $ -->
</head>
<body>
  {CUSTOM_HEADER}
  <table width="790px" border="0" align="center" cellpadding="0" cellspacing="0">

    <tr>
  <td width="5" background="themes/pink/images/border_left.gif"><img src="images/border_left.gif" width="5" height="2"></td>
  <td width="33" background="themes/pink/images/left.gif"><img src="themes/pink/images/left.gif" width="33" height="12"></td>
      <td valign="top" style="background-color:#edebf9;">
        <table width="100%" border="0" cellspacing="0" cellpadding="10">
          <tr>
            <td align="center"><h3>{GAL_DESCRIPTION}</h3>
              <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">

                <tr>
                  <td>
<script type="text/javascript">
<!--
google_ad_client = "pub-0652110030323747";
google_ad_width = 468;
google_ad_height = 15;
google_ad_format = "468x15_0ads_al_s";
google_ad_channel ="";
google_color_border = "F9DFF9";
google_color_bg = "F9DFF9";
google_color_link = "0099FF";
google_color_url = "008000";
google_color_text = "000000";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
                </td>
                </tr>
              </table>
              <br />
              {SYS_MENU} <br />
              {SUB_MENU}            </td>

          </tr>
        </table>
        <table width="100%" border="0" align="center" cellpadding="10" cellspacing="0">
          <tr>
            <td align="left" valign="top">
              {ADMIN_MENU}
              {GALLERY}            </td>
          </tr>
        </table>
        </td>
    <td width="33" background="themes/pink/images/right.gif"><img src="../images/right.gif" width="33" height="13"></td>
  <td width="5" background="themes/pink/images/border_left.gif"><img src="images/border_left.gif" width="5" height="2"></td>
    </tr>
</table>
  {CUSTOM_FOOTER}{VANITY}
</body>
</html>
instead for a start.
Logged

Faithless

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Google ads problem
« Reply #3 on: February 02, 2006, 12:35:47 pm »

Thank both of you Nibbler and GauGau
It was the fastest answer I’ve ever got

I think it is ok now, isn’t it?

Thx again
Logged

mogadishu

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Google ads problem
« Reply #4 on: March 15, 2006, 12:00:05 pm »

I Didn't wante to Make another Topic.. (Sorry if is Wrong)
I Need Help finding The Good color For My Ads To inser at:
http://www.alexzander.ro/photo-album/index.php [Edit GauGau]Warning: link not worksafe[/edit]

ADS Are like:

Quote
google_ad_type = "text_image";
google_ad_channel ="7980359141";
google_color_border = "E4E6D9";
google_color_bg = "000000";
google_color_link = "0066CC";
google_color_url = "000000";
google_color_text = "000000";

Thank You in Advence !
« Last Edit: March 17, 2006, 08:04:25 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Google ads problem
« Reply #5 on: March 16, 2006, 08:15:54 am »

"good" colors are a matter of taste, what recommendation do you expect? Add the google ads code to your page as suggested and edit the colors later.
Logged

mogadishu

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Google ads problem
« Reply #6 on: March 17, 2006, 01:07:13 am »

:(( i don't know what color to use (can't find the good color for the template i USE)

Please Somebody Help.

Thank you in Advence !
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Google ads problem
« Reply #7 on: March 17, 2006, 08:07:03 am »

you still haven't done as suggested: add the adsense code to your page now, worry about the colors later.

Colors used in your theme:
Quote
Hex 000000 = RBG   0,   0,   0 = black
Hex 005D8C = RBG   0,  93, 140 = dark blue
Hex 333333 = RBG  51,  51,  51 = black
Hex 394048 = RBG  57,  64,  72 = black
Hex 394049 = RBG  57,  64,  73 = black
Hex 404750 = RBG  64,  71,  80 = dark grey
Hex 414852 = RBG  65,  72,  82 = dark grey
Hex 444444 = RBG  68,  68,  68 = dark grey
Hex 474F5A = RBG  71,  79,  90 = dark grey
Hex 49525D = RBG  73,   82, 93 = dark grey
Hex 4F5864 = RBG  79,  88, 100 = dark grey
Hex 4F5964 = RBG  79,  89, 100 = dark grey
Hex 515B67 = RBG  81,  91, 103 = dark grey
Hex 555555 = RBG  85,  85,  85 = medium grey
Hex 56606D = RBG  86,  96, 109 = medium grey
Hex 5B5B5B = RBG  91,  91,  91 = medium grey
Hex 5D6674 = RBG  93, 102, 116 = medium grey
Hex 5D6876 = RBG  93, 104, 118 = medium grey
Hex 616C7A = RBG  97, 108, 122 = medium grey
Hex 616D7B = RBG  97, 108, 123 = medium grey
Hex 6A7786 = RBG 106, 119, 134 = medium grey
Hex 777777 = RBG 119, 119, 119 = medium grey
Hex 8090A3 = RBG 128, 144, 163 = steel grey
Hex 949494 = RBG 148, 148, 148 = medium grey
Hex AEAEAE = RBG 174, 174, 174 = light grey
Hex BDBEBD = RBG 189, 190, 189 = light grey
Hex C7C7C7 = RBG 199, 199, 199 = light grey
Hex CCCCCC = RBG 204, 204, 204 = light grey
Hex DFDFDF = RBG 223, 223, 223 = light grey
Hex EAEAEA = RBG 234, 234, 234 = dark white
Hex EFEFEF = RBG 239, 239, 239 = dark white
Hex F2F8FF = RBG 242, 248, 255 = dark white
Hex FFFFFF = RBG 255, 255, 255 = white

Take a look at the stylesheet to find out what colors are being used for which purpose. Your stylesheet is located at http://www.alexzander.ro/photo-album/themes/hardwired/style.css
Logged

mogadishu

  • Coppermine newbie
  • Offline Offline
  • Posts: 6
Re: Google ads problem
« Reply #8 on: March 17, 2006, 04:47:31 pm »

Thank You verry Much !
Logged

lordprodigy

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 228
    • B514 ///
Re: Google ads problem
« Reply #9 on: March 17, 2006, 05:57:25 pm »

I know this topic is solved but Google provides you with a complete color management tool for your ads. Pick up the colors used in your template from the the template's css and add them in google's manager. You can preview your ads as you change them... have fun.
Logged

ennovative

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Google ads problem
« Reply #10 on: March 21, 2006, 02:45:56 pm »

for future reference, if you're trying to match an existing colour scheme, try using Pixie from Nattyware http://www.nattyware.com/pixie.html it's a free mini utility that shows you the hex and html values wherever you mouse over on your screen.
Logged
Pages: [1]   Go Up
 

Page created in 0.021 seconds with 16 queries.