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: Adding a banner in Igames theme  (Read 3471 times)

0 Members and 1 Guest are viewing this topic.

laurie1681

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Adding a banner in Igames theme
« on: December 13, 2004, 06:11:11 pm »

i tried many things modifying template html etc but i don't manage to find a way to add simply a banner into the brown header of the theme.If someone knows i will be very happy
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding a banner in Igames theme
« Reply #1 on: December 13, 2004, 06:41:45 pm »

a banner rotation script (dynamic content) or just a plain image (static html)?
Post a link to your page and a link to the banner.

Joachim
Logged

laurie1681

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Adding a banner in Igames theme
« Reply #2 on: December 14, 2004, 07:37:24 pm »

Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Adding a banner in Igames theme
« Reply #3 on: December 14, 2004, 07:52:15 pm »

Assuming you want the banner to appear instead of " GaryOldman.Info Movies Galleries"  I think you should find this piece of code

Code: [Select]
<td background="themes/igames/images/top_panel_r1_c1.jpg">
            <h1>{GAL_NAME}</h1>
            <h3>{GAL_DESCRIPTION}</h3></td>

And edit it to be something like this:

Code: [Select]
<td background="themes/igames/images/top_panel_r1_c1.jpg">
<A HREF="/index.php"><IMG SRC="where/you/store/the/banner/banner.jpg"></A>
</td>

I did the same on my gallery. Removed the gallery name tag and added a picture with a href tag.
Code: [Select]
<tr>
<td style="background-image:url(themes/rainy_day/images/template_r2_c1.gif);background-repeat:repeat-y"><img  src="images/spacer.gif" width="18" height="57" border="0" alt="" /></td>
<td width="100%" background="themes/rainy_day/images/template_r2_c2.gif"><table border="0" width="100%" cellspacing="5" cellpadding="0"><tr><td></div><div>
## Where the {GAL_NAME} tag used to be is now a image ##
<A HREF="/index.php"><IMG SRC="themes/rainy_day/images/ScoutlinkBig.gif" WIDTH="100" HEIGHT="97" BORDER="0" ALT=""></A>
</td><td align="left"><div width="300" align="center"></td></tr></table></td>
<td style="background-image:url(themes/rainy_day/images/template_r2_c10.gif);background-repeat:repeat-y"><img src="images/spacer.gif" width="16" height="57" border="0" alt="" /></td>
</tr>

Logged

laurie1681

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Adding a banner in Igames theme
« Reply #4 on: December 14, 2004, 08:18:01 pm »

i need to center the banner what is the script already?
and thanks
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: Adding a banner in Igames theme
« Reply #5 on: December 15, 2004, 08:33:11 am »

<center>  ;D </center>
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Adding a banner in Igames theme
« Reply #6 on: December 16, 2004, 08:20:27 am »

in fact this is most basic html, the only thing you have to take care of: the path to the resource (e.g. the path that comes after src= inside the <img> tag) has either to be absolute (e.g. src="foo/bar/pic.jpg") or relative seen from coppermine's root (not seen from the location your template file resides in).
A good place to teach yourself some basic html is http://www.w3schools.com/

Joachim
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 21 queries.