Hi folks,
so here is my problem. I'am using typolight as my favorite CMS. So I want to integrate ZenPhoto in typolight.
I read
http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin .
My first try: I create a modul in typolight for the integration. In this modul I code this :
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require($_SERVER['DOCUMENT_ROOT'].'/' . WEBPATH . '/' . ZENFOLDER .'/template-functions.php');
The result is, that ZenPhoto can't connect to the database. The reason is, that all $_zp_conf_vars == ''.
The next try. I include the template-functions.php in the index.php file from typolight with the same code above. This works, but when I call the getNumAlbums() function in my module I get following error:
Runtime notice: Non-static method utf8::convert() should not be called statically in

\xampplite\htdocs\zenphoto\zp-core\functions-basic.php on line 766
Runtime notice: Non-static method utf8::convert() should not be called statically in

\xampplite\htdocs\zenphoto\zp-core\functions-basic.php on line 766
Runtime notice: Non-static method utf8::convert() should not be called statically in

\xampplite\htdocs\zenphoto\zp-core\functions-basic.php on line 7661
Thanks for help
Michael
Comments
It might be a conflict between Zenphoto and Typolight or somehow the paths get messed up when called from a module.
If you don't manage this there is always the alternative to just make a Zenphoto theme that looks like your site.
Hope to integrate my favorite gallery in my favorite CMS.