forum.coppermine-gallery.net

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Themes/Skins/Templates => Topic started by: bart5986 on January 21, 2005, 04:00:26 pm

Title: banner question
Post by: bart5986 on January 21, 2005, 04:00:26 pm
I was in the templates.php and I saw {GAL_NAME} and I guessed it was for the banner, so I stuck image tags in there. It worked but I want to know if it will cause any problems with my photo gallery
Title: Re: banner question
Post by: Joachim Müller on January 21, 2005, 05:04:15 pm
there's no such file as template.php - it's either theme.php or template.html. The file that has {GAL_NAME} in it is template.html. All the stuff in curly braces is being replaced dynamically when the template is actually parsed, so you're allowed to change the surrounding html code, but you shouldn't touch the placeholders in curly braces. To add an image (a static banner), just add the html anywhere in template.html (but mind that you either have to use absolute reference to files like <img src="/absolute/path/to/my/banner.jpg">, or relative paths seen from the coppermine root (not the theme folder). If everything works as expected on your page, run with it.
Posting a link to your actual gallery might help to determine if you have set up everything correctly.

Joachim
Title: Re: banner question
Post by: bart5986 on January 21, 2005, 05:19:41 pm
I tested it with a blue image and it looked right, when I actually make the image i'll post a link. and I must have meant template.html

So do I make it {GAL_NAME}=img src  or {GAL_NAME}={img src}
Title: Re: banner question
Post by: bart5986 on January 22, 2005, 04:21:19 am
the link is http://dynamic6.gamespy.com/~bart5986/cpg132/

so is everyone done correctly?


and any opinion on my banner?
Title: Re: banner question
Post by: Joachim Müller on January 22, 2005, 09:24:49 am
your page appears OK, so simply leave it as-is. Your above posting is not correct though, it's neither
Quote
{GAL_NAME}=img src
nor
Quote
{GAL_NAME}={img src}
...
Like I said before: {GAL_NAME} is just a token (a placeholder) that get's replaced with something, you can not use it for anything else. Just leave it alone (or remove it completely) and add a plain html tag, like this
Code: [Select]
<img src="/foo/bar.jpg" width="100" height="100" alt="" />wherever you want it to appear, that's it.

Marking this thread as solved.

Joachim