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 [2]   Go Down

Author Topic: adding custom field to thumbnail view?  (Read 17230 times)

0 Members and 1 Guest are viewing this topic.

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: adding custom field to thumbnail view?
« Reply #20 on: March 15, 2006, 08:35:52 pm »

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
Code: [Select]
                    case 'lastup':
                        display_thumbnails('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;
replace with
Code: [Select]
                    case 'lastup':
                        display_thumbnails_last('lastup', $cat, 1, $CONFIG['thumbcols'], max(1, $matches[2]), false);
                        flush();
                        break;
Pages: 1 [2]   Go Up
 

Page created in 0.025 seconds with 19 queries.