Category list in displayimage.php Category list in displayimage.php
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Category list in displayimage.php

Started by castrated, September 29, 2004, 02:14:19 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

castrated

Hi,
Just a quick thanks for the great gallery. I am trying to edit displayimage.php to use different viewers for different categories. I managed to get it working with albums using                                  switch ($album) {
                                         Case 7:
                                         Case 10;

but I need to use it to reference categories. Something like "if ($cat != 2) {" doesn't seem to work.

Any help is much appreciated.

Thanks.

Casper

There is a hack to do this, but making the changes in include/init.inc.php.  See http://forum.coppermine-gallery.net/index.php?topic=3138.0
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

castrated

#2
Hi Casper,

Thanks for the help, my PHP is improving but is still a bit sketchy . I think I was a little unspecific in what I am trying to do.
I have some images in certain categories that I want to open in a java viewer. I have managed to get this working when the fullsize popup opens but I don't want all the images opening in the java popup since some are standard images, so if I seperate them into categories then I can specify which popup will open for each category. The "switch ($album) {" is working fine but I will have to specify each and every album. The intermediate view does not seem to recognise the command "if ($cat != 2) {".

Thanks again,

Craig