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: banner question  (Read 3231 times)

0 Members and 1 Guest are viewing this topic.

bart5986

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
banner question
« 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
« Last Edit: January 22, 2005, 09:25:05 am by GauGau »
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: banner question
« Reply #1 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
Logged

bart5986

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: banner question
« Reply #2 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}
Logged

bart5986

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 42
Re: banner question
« Reply #3 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?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: banner question
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.015 seconds with 20 queries.