Is the Most popular hack supposed to work with 1.2 as well?
I've just tried to implement it in my gallery and here's what it says:
`Fatal error: Call to undefined function zp_conf() in C:Documents and SettingsPERSONALDesktopxampphtdocsnewthemesdefaultcustom-functions.php on line 62`
Comments
`getAlbumStatistic($number, 'popular')` and
`printAlbumStatistic($number, 'popular')`
now do this task.
These routines are available in the nightly zenphoto build: http://www.zenphoto.org/files/nightly/
I've been using this method to count my hits so when I call this new function I get this error:
`Zenphoto Error
MySQL Query ( SELECT id, title, folder, thumb FROM `albums` ORDER BY hitcounter DESC LIMIT 10 ) Failed. Error: Unknown column 'hitcounter' in 'order clause'`
What changes do I need to apply to make it work?