how to add code to this area ? how to add code to this area ?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

how to add code to this area ?

Started by cong, May 09, 2007, 05:31:37 AM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

cong

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

Joachim Müller

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.

cong

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

Joachim Müller

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.

cong

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

Joachim Müller

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.

cong

ok thank you very much mr. GauGau  for your great support