Pages (14):    1 5 6 7 8 9 14   
Junior Member
Junior Member
wanderingfairy   14-04-2009, 22:06

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?

Member
Member
Simbul   15-04-2009, 19:14

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

Member
Member
sirAndrew   05-05-2009, 07:13

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.

Member
Member
Simbul   08-05-2009, 17:54

I tried the link you posted and I received an error. I think this is not your problem, anyway.
Your proxy call result looks ok, by the way.

What do you mean by "blank popup"? The whole popup is empty or just the dropdown field?

Member
Member
sirAndrew   09-05-2009, 02:08

You received and error because i changed the path to zenphoto.

Just the dropdown field where the albums are supposed to be.

Member
Member
Simbul   10-05-2009, 13:58

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?

Member
Member
sirAndrew   20-05-2009, 02:11

i changed my hosting and it works.

Now my problem is actually inserting a thumbnail in a post and not a link to the picture. But i'll prolly find out how on my own.

Member
Member
Simbul   21-05-2009, 10:23

Inserting a thumbnail should be the default behavior. It is configurable using the ZPP panel options, anyway.

Member
Member
Ipstenu   22-05-2009, 01:57

Okay, I love this plugin Works great. I can't figure out how to get dynamic albums to show up in the sidebar widget, though!

The album shows up on the dropdown, but nothing shows up on the page Am I missing the obvious?

Member
Member
Simbul   22-05-2009, 07:11

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.

Administrator
Administrator
acrylian   22-05-2009, 07:51

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.

Member
Member
Ipstenu   22-05-2009, 14:07

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.

Member
Member
Simbul   22-05-2009, 16:18

I didn't say it's brand new: I just said it's faster than I can manage (which is not fast, admittedly)

At least the Wordpress guys seem to have stopped developing, after 2.7.1...

Administrator
Administrator
acrylian   23-05-2009, 13:33

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

Member
Member
Simbul   23-05-2009, 18:34

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?

Administrator
Administrator
acrylian   23-05-2009, 18:41

Why don't you use the class methods directly like tinyZenpage does? These serve basically as our API. Take a look at tinyZenpage and feel free to take from there what you need as it is inspired by ZenphotoPress anyway (although our own code..:-)).

Member
Member
Simbul   23-05-2009, 19:10

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?

Member
Member
sbillard   23-05-2009, 19:29

If you just want the basic capability, you can load functions.php. This leaves out all the template functions. Short of this, you will have to stick with MySQL.

Administrator
Administrator
acrylian   24-05-2009, 08:10

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.

Member
Member
samantha0401   18-07-2009, 01:38

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?

Pages (14):    1 5 6 7 8 9 14   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.