Advanced search  


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.

Pages: [1]   Go Down

Author Topic: Renumber albums OR get category ID from theme.php  (Read 2765 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 66
Renumber albums OR get category ID from theme.php
« on: July 01, 2007, 02:02:35 am »

I have an itsy problem, and there's two solutions. Can you help me with either? (i only need one)

First solution-Renumber the albums
My albums are sorted alphabetically and i want the first one to be 1, the second 2, and so on.
And user galleries to be at the end of the others.

Second solution-Get category ID
This is probably a lot easier if it's possible. I need to get the category ID of a thumbnail's parent image from theme_display_thumbnails in theme.php, from inside the foreach($thumb_list as $thumb)
eg. $thumb['cat_id'] (but <--that doesnt work)
Pages: [1]   Go Up

Page created in 0.019 seconds with 19 queries.