Hi everyone. First I want to say thank you to Simbul for making such an easy to understand/use plug-in. Now for the issue I'm having. I've searched the forums but did not find anything so forgive me if I've missed it. The installation of the plug-in went perfectly and it's everything is working fine. My issue is with display aesthetics. Using the widget/badge, I would like to be able to display the four latest images in my sidebar as a 2x2 block instead of the 1x4 it is now. How would I go about making that change?
It can be done with a little bit of css.
The widget is a list of elements inside a element. The element has classes .ZenphotoPress_badge and .ZenphotoPress_widget.
Supposing your thumbnails are 85x85 pixels, you could use something like this:
`
dl.ZenphotoPress_widget {
width: 200px;
}
dl.ZenphotoPress_widget dt {
float: left;
margin: 5px;
}
`
I can't guarantee the code will work for you. If you need to dig deeper, the key is the "float" CSS property
Ok i'm yet another user which when pressing ZP inn tinyMCE gets a blank popup, which means ZenphotoPress can't fetch the albums. I'm running WordPress 2.7.1, Zenphoto version 1.2.4 [3716] (Official Build) and ZenphotoPress 1.5.3.
My error is:
ZenphotoPress Messages
INFO
PHP Version: 5.2.8
INFO
Current working directory: /home/content/m/e/n/mentalleak/html/blog/wp-content/plugins/zenphotopress/tinymce
INFO
POST:
INFO
GET: Array ( [tinyMCE] => 0 )
INFO
ZenphotoProxy method: cURL
INFO
ZenphotoProxy call: http://blog.leakycrayon.com/wp-content/plugins/zenphotopress/zenphoto_bridge.php?function=get_albums&admin_path=/home/content/m/e/n/mentalleak/html/photo/zp-core
and my proxy call result is:
a:2:{i:0;a:3:{s:5:"value";s:1:"1";s:4:"name";s:7:"Aleator";s:8:"parentid";N;}i:1;a:3:{s:5:"value";s:1:"2";s:4:"name";s:5:"Music";s:8:"parentid";N;}}
I'd really love if you could help me.
As i've read around the topic, there were 2 solutions. One was upgrading the zenphotopress plugin, but as you see i got all the latest version for WP, Zenphoto and zenphotopress, so that's out of the question.
The other solution was that the user had the zenphoto folder password-protected. What does that mean? Hosting Folder permissions? Some setting/feature in zenphoto? Could you please explain?
Thank you.
Looks like a problem with cURL calls: this would explain why the proxy call returns the right data when you put the URL in the browser but ZPP is still not working.
Do you have any kind of restriction - on your server - on the calls you can make? Are Zenphoto and Wordpress on different servers?
Dynamic albums are not officially supported - which is to say: the Zenphoto team throws in new features faster than I can manage them, these days
I never tested ZPP with dynamic albums, some weird behavior is to be expected. I'll try to put this in the next release cycle, but I have no estimates on when it'll be ready, at the moment.
Well, dynamic albums were introduced with 1.1.5 over a year ago. Not really a brand new feature, isn't it?..:-) I just noticed that tinyZenpage, the TInyMCE plugin for Zenpage, also only roughly supports dynamic albums (at least showing the album thumb for inclusion). I will see to get that in there then you may be can take a look there.
No worries! I thought I was missing a step in there I'm helping my friend set up a blog and while I like random pics from anywhere, she wanted the 'Finale Product' image of every folder set, and it made the most sense to try dynamics
Thank you for looking in on this.
@Simbul: tinyZenpage now has full support for dynamic albums in the svn. Take a look at the function printImagesList() within /zp-core/plugins/tiny_mce/plugins/tinyzenpage/tinyzenpage-functions.php, especially around line 121. Should not be hard to adapt.
Thanks. ZenphotoPress actually digs into the database, so it'll be a little harder than just using the Album and Image classes, but it doesn't look so difficult after all
On this topic, I've always felt a little uneasy working directly with the database: it is bad for encapsulation, it breaks across Zenphoto releases...
Is some sort of Zenphoto API being developed (or has it been developed without my knowledge), by any chance?
The difference is in the environment: tinyZenpage runs as a Zenphoto plugin and thus has access to a lot of functions and facilities external apps like ZPP cannot access.
Last time I checked there wasn't any easy way of making the core classes available to ZPP without instancing more or less the entire Zenphoto... did something change in this respect?
Actually tinyZenpage runs as a TinyMCE plugin that loads the zenphoto functions. I am not familiar with the ZenphotoPress setup in detail but I would think it should be possible to load the classes similar to the main tinyzenpage.php file does. Of coures that might match the term "instancing more or less the entire Zenphoto", but also might save some trouble with updates.
I installed this plugin but when I go to the ZP button in a new post, I get a dialog box to select an album but there are no albums listed...
Any ideas?