coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: cong on May 09, 2007, 05:31:37 AM

Title: how to add code to this area ?
Post by: cong on May 09, 2007, 05:31:37 AM
hello ,

i want to add code in the area shown in the attached picture
how ???

[edit GauGau] replaced hotlinked image with attachment [/edit]

thanx in advance
Title: Re: how to add code to this area ?
Post by: Joachim Müller on May 09, 2007, 07:08:55 AM
Code (as in "dynamic output generated by server-sided scripting using PHP") or static (HTML/JavaScript) output? Clarify what you actually want to do. Post a link to your gallery and what is suppossed to show up beneath the navigation.
Title: Re: how to add code to this area ?
Post by: cong on May 09, 2007, 01:37:25 PM
i want to add ads code like adsense called adbrite i think it is java
i added it by editing templates.html  but the ads code affected by effects on buttons

my gallery is

www.congland.com
Title: Re: how to add code to this area ?
Post by: Joachim Müller on May 09, 2007, 07:08:36 PM
First of all, the ads are using JavaScript, not Java - those are two entirely different animals. Second: adding the JavaScript code to template.html is fine and the suggested/recommended method. If you don't like the way the ads look, wrap them into a <div> container and apply the CSS formatting you see fit. This is in no way related to coppermine, but basic HTML/CSS know how that we can hardly support you with.
Title: Re: how to add code to this area ?
Post by: cong on May 11, 2007, 11:14:47 PM
ya i understand you but i don't know how to make this code not to be affected with css i want it without any changes because adsense require no changes in ads

if it with wrap it in <div> i can't do this. please explain this to me (how to make wrap)

thank you for your support
Title: Re: how to add code to this area ?
Post by: Joachim Müller on May 12, 2007, 09:16:59 AM
Edit http://www.congland.com/themes/giallo/template.html, find          <!-- Begin: AdBrite -->
          <script type="text/javascript">
   var AdBrite_Title_Color = '000000';
   var AdBrite_Text_Color = '666666';
   var AdBrite_Background_Color = 'F0F0F0';
   var AdBrite_Border_Color = 'F0F0F0';

</script>
          <script src="http://ads.adbrite.com/mb/text_group.php?sid=332848&zs=3132305f363030" type="text/javascript"></script>
        <div align="left"><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=332848&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your
          Ad Here</a></div>
        <!-- End: AdBrite -->
and replace with<div style="border:1px solid green; background-color:blue;color: purple;">
          <!-- Begin: AdBrite -->
          <script type="text/javascript">
   var AdBrite_Title_Color = '000000';
   var AdBrite_Text_Color = '666666';
   var AdBrite_Background_Color = 'F0F0F0';
   var AdBrite_Border_Color = 'F0F0F0';

</script>
          <script src="http://ads.adbrite.com/mb/text_group.php?sid=332848&zs=3132305f363030" type="text/javascript"></script>
        <div align="left"><a target="_top" href="http://www.adbrite.com/mb/commerce/purchase_form.php?opid=332848&afsid=1" style="font-weight:bold;font-family:Arial;font-size:13px;">Your
          Ad Here</a></div>
        <!-- End: AdBrite -->
</div>
and adjust the color codes I set in above example as you see fit. As I suggested: I can't teach you HTML/CSS. Buy a book or check out some tutorials (there are loads of them available), to be found by googling for them.

Even better: change the nesting of the tables.

I'm not going to do your homework.
Title: Re: how to add code to this area ?
Post by: cong on May 14, 2007, 12:27:41 PM
ok thank you very much mr. GauGau  for your great support