News

Zenphoto Wordpress Tools

At the moment a very basic WordPress plugin allowing you to insert a user defined number of latest thumbnails from your Zenphoto gallery into a Wordpress template. To show your latest thumbnails just include <?php zenphotos($max, $zen_extra_before, $zen_extra_after); ?> into your wordpress template where you want them to be seen.

$max is the max number of thumbs you want to be shown, by default this is set to 4 and in DESC order (from new to old)
$zen_extra_before and $zen_extra_after are by default empty, however when filled zen_extra_before will be outputted in front of each image and zen_extra_after, after each image incase you need some form of extra formatting.

Zenphoto Recent Comments

This simple WP plugin will show Zenphoto's Most Recent Comments to your WordPress. Most of the codes here are from Zenphoto. To show Zenphoto's Recent Comments just put <?php zenphoto_recent_comments(); ?> in your WP template. The plugin is easy to use. Readme.txt is included.

Zenshow

Zenshow is a plugin for WordPress. It is designed to provide an easy way to include Zenphoto images into your blog index page. Zenshow works with pretty much all versions of Zenphoto.

NOTE: although the current version 1.4 works with previous Zenphoto versions, 1.4 has been modified by Thinkdreams to support the new 1.1.2 version of Zenphoto and is located below in the attachment list for easy download.

Version 1.4.1 has fixes by Samuel Goldstein (libelle) for (a) Proper UI refreshing when updating plugin choices. (b) Replacing the db password in plain text with asterisks. (c) Thumbnail size values adhering to what the user enters. You'll need to rename the attachment at the bottom of this page from zenshow.2.php to zenshow.php.

ZENpressed

ZENpressed is a ZENphoto-integration-plugin for WordPress based on ZenShow by Rui Cruz and the old ZENphoto-insert-plugin and inspired by the simple mp3 player plugin on how to do the Quicktag.

ZenphotoPress

Zenphotopress is a plugin for WordPress. It is designed to provide an easy way to include Zenphoto images into your blog posts.

There is a forum post regarding ZenphotoPress here. This is where you can go for more information and support. "Simbul" keeps an eye on this topic.

ZenLatest

A Wordpress 2.2.3 widget that shows the latest additions to Zenphoto in the sidebar.

Trung_PressZen

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

Zenphoto external thumb

Features:

  • Retrieves images from the gallery based on the image filename. So you can move the image around between albums, move the parent album around, or whatever and not have to change the old thumbnail link.
  • Returns thumbnails in a default size or any requested size.
  • Will return a JSON object for integration into whatever web application you decide to write. It uses a server-side proxy to retrieve the data; so it should be safe against XSS injection.

Limitations:

  • Requires a *NIX host. The script relies on the find utility.
  • Has some hard coded paths at the moment.

You can see an example of the script in action at http://james.roomfullofmirrors.com/extthumb_example.html.

Zenphoto Single-Login

I have created this hack to cater to people who wish to provide a custom login for users which will take them directly to the albums they are allowed to view and/or administrate. This need was suggested on the forums in the thread Linking my login form to ZenPhoto.

The hack assumes that you have created admin users with the appropriate rights and albums to manage. Admin users with User Administration rights are directed to the gallery after they log in. All others are directed to the first album in their managed album list.

Place this script in the root folder of your zenphoto installation. If you installed in 'zenphoto' this file becomes zenphoto/single_login.php. For the page that you tell your users to access create a script that contains only the following:

<?php header("Location: zenphoto/single_login.php" ); ?>
The Script is bare-bones. You will (...)

Random Image for external site

Put the file in your zenphoto/zp-core/random.php

To call from another PHP
@readfile('http://yourgallery.com/zenphoto/zp-core/random.php?
num=9&height=50&width=50&class=one-image')

The above mean return 9 random images which height and width is 50px and the style class is "one-image".

@readfile('http://yourgallery.com/zenphoto/zp-core/random.php?
num=9&height=50&width=50&class=one-image&album=city')

this will only get the random images from album "city"(the parameter is the folder of album).