Renumber albums OR get category ID from theme.php Renumber albums OR get category ID from theme.php
 

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

Renumber albums OR get category ID from theme.php

Started by artoonie, July 01, 2007, 02:02:35 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

artoonie

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)