Member
Member
gjr   16-05-2008, 20:30
#1

Heya all,
Any tips on reversing the order of the printed out dates using the printAllDates template function. Currently it is ordered oldest to newest, but I would like it ordered with the most recent on top. Sorry - I am not a coder - any tips appreciated!

Member
Member
sbillard   16-05-2008, 22:35
#2

In the function getAllDates() in template-functions.php there is a line that reads ksort($datecount); Change "ksort" to "krsort". Be aware that you will have to make this change each time you update to a new version of zenphoto.

Member
Member
gjr   17-05-2008, 01:32
#3

perfect - thanks sbillard!!

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.