Question about modifying a template Question about modifying a 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

Question about modifying a template

Started by DraKZ, January 23, 2004, 03:06:26 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DraKZ

I was wondering if it's possible to create a template to just show just one picture with previous and next buttons, and description only (no top menu, comments, filmstrip) when I type in this URL

http://www.mywebsite.com/gallery/displayimage.php?album=lastup&cat=0&pos=1

I've tried messing with the templates and got it to where I sort of wanted it. But the problem is that if I mess with the template to make it to not display the menu in the template.html, the rest of the .php pages shows no menu either.

So my problem is that I just want the menu for the rest of php pages but not for the displayimage.php.

Also, is it possible to switch theme/template on the run by the use of URL instead having to go into the config in admin mode to change it?

Thanks in advance

Joachim Müller

Changing templetes/themes: anything is possible if you know php.

Switching between themes: take a look at the demo: there's a theme selector. Choose another theme and watch the address bar of the browser -> you'll notice that there's just a var being added to the url: theme=foo will swithc to the theme called "foo". If there isn't a theme called "foo", the gallery will be reset to display the default theme you specified in coppermine config. Hope I made the point...

GauGau

DraKZ

Thanks GauGau for the theme changing tip.

Yup that's what I was looking for. Thanks again for the tip, now I'm going to head back to modifying the theme.html and the php files to work the way I want it to. And then if I need to show the menu again, I just have to switch the deafult theme on the go with the theme=foo variable.

DraKZ

By the way, a quick question, I just got my gallery set up on my server and haven't gone over the php code that much. However, whenever I'm in admin mode and tries to click on the Upload Approval button, all I see is

y the Coppermine Dev Team // // (http://coppermine.sf.net/team/) // // see /docs/credits.html for details // // ------------------------------------------------------------------------- // // This program is free software; you can redistribute it and/or modify // // it under the terms of the GNU General Public License as published by // // the Free Software...and so on and so on

Just wondering if I did something wrong or forgot to do something during the installation process. Beside this problem, everything else seems to be working fine.

Thanks in advance

hyperion

The file has been corrupted.  It's missing the first few opening lines (<?php, in particular), so the server thinks it is text rather than a php executable.  Upload a fresh copy to your server.
&quot;Then, Fletch,&quot; that bright creature said to him, and the voice was very kind, &quot;let&#039;s begin with level flight . . . .&quot;

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)

DraKZ

Thanks Hyperion, I'm going to try to upload the file again, I suspect that it will work. This is a great gallery package!