forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: laurie1681 on December 13, 2004, 06:11:11 pm

Title: Adding a banner in Igames theme
Post by: laurie1681 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
Title: Re: Adding a banner in Igames theme
Post by: Joachim Müller 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
Title: Re: Adding a banner in Igames theme
Post by: laurie1681 on December 14, 2004, 07:37:24 pm
yes gauguau this is the url http://www.garyoldman.info/Movies
and one banner example here
http://img.photobucket.com/albums/v158/laurie1681/top_panel_r1_c1.jpg
Title: Re: Adding a banner in Igames theme
Post by: Hein Traag 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>

Title: Re: Adding a banner in Igames theme
Post by: laurie1681 on December 14, 2004, 08:18:01 pm
i need to center the banner what is the script already?
and thanks
Title: Re: Adding a banner in Igames theme
Post by: Hein Traag on December 15, 2004, 08:33:11 am
<center>  ;D </center>
Title: Re: Adding a banner in Igames theme
Post by: Joachim Müller 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