banner question banner question
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

banner question

Started by bart5986, January 21, 2005, 04:00:26 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bart5986

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

Joachim Müller

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

bart5986

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}

bart5986

the link is http://dynamic6.gamespy.com/~bart5986/cpg132/

so is everyone done correctly?


and any opinion on my banner?

Joachim Müller

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