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 :
1. Download the zip file and extract to Wordpress plug-in directory.
2. 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);
}
}
3. Go to wordpress admin page, activate the plug-in, then go to Trung_ZenPress Configuration under plug-in tab, fill in the required information .
* Zenpath : Path to zenphoto installation
* Slug : the slug name of the page you want to be gallery (create a page and fill its slug here)
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:)
Comments
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.
in the trung_presszen.php there is a line:
´hasDyanmicAlbumSuffix($rimage)) {´
think this is mispelled...
and in the admin part:
´<h2>Trung_PressZen Configuration</h2>
<form id="conf" method="post" action="/wp/wp-admin/plugins.php?page=trung_presszen">´
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...
i don't see anything wrong with hasDyanmicAlbumSuffix, it was used in zp-functions as well (ZP 1.1.6).
Check my site for slug solution.
Greets and thanks.
Trung
http://trunghuynh.com/2008/07/trung_presszen-094/