Member
Member
hqtrung   2008-06-15, 21:55
#1

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);
}
}

  1. 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

Administrator
Administrator
acrylian   2008-06-16, 08:30
#2

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.

Member
Member
hqtrung   2008-06-16, 23:12
#3

Wordpress also include gettext function in their system, same name, so i just add a chek to ignore its definition.

Member
Member
BertSimons   2008-06-17, 12:14
#4

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...

Member
Member
hqtrung   2008-06-17, 13:26
#5

hi, i have fixed it and commited to Wordpress Repo.
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

Administrator
Administrator
acrylian   2008-06-17, 13:29
#6

Bert, he is right about hasDyanmicAlbumSuffix, actually we have mispelled it...

Member
Member
hqtrung   2008-07-14, 11:09
#7

updated to 1.1.7
http://trunghuynh.com/2008/07/trung_presszen-094/

Administrator
Administrator
acrylian   2008-07-14, 12:15
#8

Thanks, I will change the extension page link to point to the wordpress repository.

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