adding custom field to thumbnail view? - Page 2 adding custom field to thumbnail view? - Page 2
 

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

adding custom field to thumbnail view?

Started by Astra, February 09, 2006, 03:32:13 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Stramm

It's not very easy to display one part of the info right of the thumb and the rest below it. A good bunch of code needs to be edited .If you're really interested in this then have a look at my modpack ( http://forum.coppermine-gallery.net/index.php?topic=28367 ). Either leran how to do it from the modpack or use the modpack and add above code to it (Maybe the easier solution).

If you don't want to display the USER1 field on last additions... puhh...
functions.inc.php:
make a duplicate of the function display_thumbnails , call it display_thumbnails_lastup... don't have the user1 code here
in index.php
                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;

replace with
                    case 'lastup':
                        display_thumbnails_last('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;