Hi guys, I have just release the first version a Wordpress extension to plug ZenPhoto into. It's easy to install with 0% code modification on Wordpress side and 0,1% code modification on ZenPhoto side (and it does not change ZenPhoto at all).
[code]
This is an extension for Wordpress to integrate ZenPhoto into your Wordpress installation. It required ZenPhoto installed on the same server and very easy to install (thanks to Wordpress easy plug-in system).
There is one minor conflict in 2 systems in gettext functions, you will have to modify 2 lines of code in Zenphoto to make this work. No danger at all.
Installation :
Download the zip file and extract to Wordpress plug-in directory.
Edit {ZENPHOTO}/zp-core/lib-gettext/gettext.inc
About line 33, replace
require('streams.php');
require('gettext.php');
with
if (!class_exists('StreamReader'))
{
require('streams.php');
}
if (!class_exists("gettext_reader"))
{
require('gettext.php');
}
and about line 190:
replace
function __($msgid) {
return _gettext($msgid);
}
with
if (!function_exists(''))
{
function ($msgid) {
return _gettext($msgid);
}
}
Go to wordpress admin page, activate the plug-in, then go to Trung_ZenPress Configuration under plug-in tab, fill in the required information .
There you go, ZenPhoto is resided in your wordpress page.
[/code]
Download : http://trunghuynh.com/2008/06/trung_presszen-ver08/
Demo? Yes, I do have a demo but It's for my photography site,and it will be launch soon. Stay tune
Great, that will help many people using Wordpress. I will add it to our extensions page.
Just for your info, Zenphoto 1.1.6 requires native gettext extension, the gettext lib you mentioned above does not work at all and originally should only help on servers were the gettext extension is not installed.
Maybe you could test it with the nightly build, too, we have changed a few things.
hi...posted on your site but also here..
in the trung_presszen.php there is a line:
´hasDyanmicAlbumSuffix($rimage)) {´
think this is mispelled...
and in the admin part:
´Trung_PressZen Configuration
´
not everybody probably installed wordpress in a ¨wp¨ directory but maybe as I did in ¨wordpress¨
maybe you can integrate the $site there.
and wordpress 2.5 abandoned the slug appaerently...
still trying to get it to work...
updated to 1.1.7
http://trunghuynh.com/2008/07/trung_presszen-094/