Adding a banner in Igames theme Adding a banner in Igames theme
 

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]

Main Menu

Adding a banner in Igames theme

Started by laurie1681, December 13, 2004, 06:11:11 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

laurie1681

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

Joachim Müller

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


Hein Traag

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

<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:

<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.

<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>



laurie1681

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

Hein Traag


Joachim Müller

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