my own image on the template? my own image on the template?
 

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

my own image on the template?

Started by biellebrunner, May 19, 2007, 08:30:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

biellebrunner

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!

Stramm

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

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

Joachim Müller

Quote from: biellebrunner on May 20, 2007, 07:16:06 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?

Quote from: biellebrunner on May 20, 2007, 07:16:06 PMisn't it right?
No, that's nonsense.

biellebrunner

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

so how can i do this?!?!

Joachim Müller

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.

ComputerLady

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

ComputerLady

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