Intregration ZenPhoto in typolight

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 D:\xampplite\htdocs\zenphoto\zp-core\functions-basic.php on line 766
Runtime notice: Non-static method utf8::convert() should not be called statically in D:\xampplite\htdocs\zenphoto\zp-core\functions-basic.php on line 766
Runtime notice: Non-static method utf8::convert() should not be called statically in D:\xampplite\htdocs\zenphoto\zp-core\functions-basic.php on line 7661

Thanks for help
Michael

Comments

  • acrylian Administrator, Developer
    I fear I can't help. I don't know anything in detail about Typolight. I just looked briefly at it (and I myself use just Zenphoto with Zenpage...:-)).

    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.
  • Thx for reply. I tried the same code as a standalone php-page. Here is everything working.

    Hope to integrate my favorite gallery in my favorite CMS.
  • acrylian Administrator, Developer
    That indicates some conflict with Typolight. Sadly I can't help but if you manage that, please let us know. We would love to add more integration solutions for other CMS besides Wordpress to our extensions page.
  • Right. I give feedback if possible. The next project is to integrate ZenPhoto in typo3.
  • As for your runtime notices: you are running with the PHP error reporting set to include E_STRICT errors. Zenphoto 1.2.2 does not comply wiht E_STRICT (although we are working on that for release 1.2.3, so you can try the nightly builds.)
Sign In or Register to comment.