Member
Member
Barbara   2007-12-08, 01:33
#1

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 Cocuments and SettingsPERSONALDesktopxampphtdocsnewthemesdefaultcustom-functions.php on line 62

Member
Member
sbillard   2007-12-08, 02:44
#2

The hack has not been upgraded to v1.2 as capability is now integrated into zenphoto.

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/

Member
Member
Barbara   2007-12-08, 23:33
#3

Sweet! Just updated to the last nightly build. One problem though, sorry for the trouble.
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?

Member
Member
sbillard   2007-12-08, 23:39
#4

Sounds like you did not run the setup/upgrade program. You need to do that to create the hitcounter fields.

Member
Member
Barbara   2007-12-09, 00:01
#5

Whoops. Problem solved, thanks a lot.

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