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: how to add code to this area ?  (Read 4466 times)

0 Members and 1 Guest are viewing this topic.

cong

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
how to add code to this area ?
« 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
« Last Edit: May 14, 2007, 01:32:33 pm by Stramm »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: how to add code to this area ?
« Reply #1 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.
Logged

cong

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: how to add code to this area ?
« Reply #2 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: how to add code to this area ?
« Reply #3 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.
Logged

cong

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: how to add code to this area ?
« Reply #4 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
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: how to add code to this area ?
« Reply #5 on: May 12, 2007, 09:16:59 am »

Edit http://www.congland.com/themes/giallo/template.html, find
Code: [Select]
          <!-- 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
Code: [Select]
<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.
Logged

cong

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 49
Re: how to add code to this area ?
« Reply #6 on: May 14, 2007, 12:27:41 pm »

ok thank you very much mr. GauGau  for your great support
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 16 queries.