I've modified Zenshow 1.4 to work with the new changes in 1.1.2. If anyone is interested, I'll be putting it up on Trac in the plugins section. This is the plugin that displays random images from Zenphoto in Wordpress.
I've set the thumbnail size to 100x100 pixels at both my ZenPhoto site and in the ZenShow plugin at my WP site, but for some odd reason they're appearing as 372x149 on the WP site.
WP running 2.3.1 at http://sairuh.org using Thinkdreams modified ZenShow plugin
ZP running 1.1.2 at http://zenphoto.iwaruna.com
Any tips on how to resolve this?
So libelle has fixed several bugs in ZenShow, namely:
Questions: Is there a way to attach the revised plugin here for others to test and use? How would one submit this plugin to be included on the ZP plugin wiki page?
Hi,
I just installed ZenShow (well, tried to). However, I am not seeing anything, options or sidebar block, after activating the plugin. Is there supposed to be some options page? Or am I supposed to add something to the template code?
I downloaded the zenshow.php from the ZP wiki plugin page. Is that the latest one with the changes sairuh mentioned?
~Alltruist
alltruist, no, the updated version that libelle worked on has not yet been uploaded. Maybe in the next week or so (busy holidays here!).
To use it, you need to modify template code as noted above. The options for the plugin are under Options > RMS:Zen Show in the WordPress web admin UI.
Okay, after skimming through the plugin code, it looks like there are three functions that ZenShow provide, which you can add to your WordPress template file, such as sidebar.php.
`` inserts N random thumbnail(s). By default N is 4.
`` inserts a thumbnail of the last photo added to ZenPhoto.
`` inserts N random thumbnails from the ZenPhoto album whose ID is specified by num_album. Again, N is 4 by default.
Please let me know if I've misinterpreted this usage.
Uh..sorry...I did not scroll down far enough on my page.
The thumbnails from ZP are displaying. However, the database configuration for ZenShow is somehow messing up the queries for the sidebar widget for Wordpress. I have my ZP and my WP in two different databases. So for my other widgets, I am getting database errors like this:
WordPress database error: [Table 'powervo_gallery.wp_posts' doesn't exist]
SELECT DISTINCT MONTH(post_date) AS month, YEAR(post_date) AS year FROM wp_posts WHERE post_date < '2007-11-01' AND post_type = 'post' AND post_status = 'publish' ORDER BY post_date DESC LIMIT 1
Somehow, with in my sidebar messes up the mySQL queries for the rest of the widgets.
Please help.
Sorry about the triple-post but I think I may see why the database connection to the ZP database is conflicting with the subsequent WP connections.
in RMCZS::connect(), the connection is made with
`
$ZenDB = new wpdb($this->zen_user, $this->zen_pw, $this->zen_db, $this->zen_host);
`
and RMCZS::disconnect() tries to close the connection with
`
$ZenDB = NULL;
`
May it be possible that even though $ZenDB is now NULL, the connection made with wpdb() is actually still open?
If this is the case, how can it be fixed? I am not too familiar with the Wordpress methods.
hey I'm just wondering.....
If this can put photos into a wordpress sidebar, could it put the Album Titles there also?
Its just that I'm looking for a way of getting a menu of the ZenPhoto Album Titles into a wordpress sidebar.... can it be done? if so some pointers might keep me busy for a while
cheers
[i]or have i misread something?[/i]
I have been wondering...Will it be possible to utilize the RSS feed to display the sidebar thumbs rather than take them out using MySQL? I know that this is less flexible but at least we'll be able to retrieve a certain number of the latest additions to the gallery.
Probably, you can use something like this script: http://www.feedforall.com/free-php-script.htm
But the newsfeed fetches the info from MySQL, too (from where else?)