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: my own image on the template?  (Read 3478 times)

0 Members and 1 Guest are viewing this topic.

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
my own image on the template?
« on: May 19, 2007, 08:30:06 am »

sorry if i'm posting this on the wrong place, i wasn't sure where should i ask this.

once i was told that albuns with more that 1.000 images could have an image on the template. is this right?
cause i've already reached 1.000 pictures and i'd like to personalise my template...

thanks!
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: my own image on the template?
« Reply #1 on: May 19, 2007, 12:25:15 pm »

Can you be a little bit more specific?
Albums already have an 'image', you click it to open the album. To specify the album image you use the 'album properties' (a button next to an album visible to the admin). There's no such thing as a 'min 1000 images requirement'.

Just read the docs
http://coppermine-gallery.net/demo/cpg14x/docs/index.htm#album_prop

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: my own image on the template?
« Reply #2 on: May 20, 2007, 07:16:06 pm »

no, no!
i meant like this: http://gallery.greysanatomy-france.com/

you know, that image above the title...

because when i created my gallery i asked about it and i was told that only galleries with more than 1000 images could do so, and i should send the picture to someone and this person would put it on my gallery.

isn't it right?
if not, how can i do it??
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: my own image on the template?
« Reply #3 on: May 20, 2007, 07:37:59 pm »

because when i created my gallery i asked about it and i was told that only galleries with more than 1000 images could do so
Who told you so?

isn't it right?
No, that's nonsense.
Logged

biellebrunner

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 46
Re: my own image on the template?
« Reply #4 on: May 20, 2007, 07:53:13 pm »

i have no ideia who told me that...
=~

so how can i do this?!?!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: my own image on the template?
« Reply #5 on: May 20, 2007, 07:56:27 pm »

edit themes/yourtheme/template.html as you see fit. Use a plain text editor (notepad.exe is fine). It's just plain HTML, so you'll just need to add an <img>-tag.
Logged

ComputerLady

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 23
    • Design COMP
Re: my own image on the template?
« Reply #6 on: May 20, 2007, 08:59:49 pm »

Another idea is to incorporate your own custom header/footer code into your template. That process is described here on the FAQ page:

http://coppermine-gallery.net/demo/cpg14x/docs/faq.htm#customHeader

Really not hard to do at all, assuming you have fair web programming skills...
Logged

ComputerLady

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Female
  • Posts: 23
    • Design COMP
Re: my own image on the template?
« Reply #7 on: May 20, 2007, 09:11:44 pm »

Sorry for adding yet another post onto this thread, but I realized I had forgotten to add WHY this was a good idea. (Don't see how to edit my post so I could add new information either!)

In any case, the reason I'm suggesting to opt with the customized header code over simply inserting an inline image tag is that you may wish to change that image over time. Provided the 'new' image uploaded to the server has the same size (width & height) as the old, and uses the same file name, you don't need to re-do the web code at all! (Be sure to use different filenames for the images store on your own system so nothing is is lost.)

Another reason why this is a good idea is that many wish to incorporate code for online advertising campaigns into their template. (Not sure if your site falls in that category, so this may not apply.) Again, very specific code needs to be included in the template so the money earned can be paid.

Opting for separate code for the custom header and footer will often save someone a great deal of time when doing updates for Coppermine. Not that there have been any radical changes in template structure in the past several versions, but who knows what the future holds? It is simply better to take the long view on things and separate that code as much as possible from the template so as to save time in the future. Just be sure to keep notes about what changes you've made in the template files, so duplicating them - if need be - within future versions of Coppermine will be a snap!

Hope I'm making better sense now!  ;D 
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 20 queries.