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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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)