ZenPress: Zenphoto plugin for WordPress

http://www.simbul.net/zenpress
ZenPress is a plugin for WordPress. It is designed to provide an easy way to include Zenphoto images into your blog posts.

I developed this plugin since I needed a way to add in WP posts some thumbnails and links to my albums without having to copy&paste URLs...
It is still a beta version and I didn't submit my plugin to the WP codex yet.
Your feedback would be truly appreciated ;)
«134567

Comments

  • You are my hero..

    I will test it out on my lunch break
  • WOAH! Yes! Thank you!
  • Well I gave it a try.. and it doesn't work for me. Here are my possible reasons..
    1. I am using IIS6 on Server 2003
    2. Zenphoto is installed in a seperate database from wordpress..

    It did not correctly find my path.. no big deal.. I updated it and it saved it properly, when I click on the zp button in the editor it says select album, but it is empty, I dont have any selections.

    I am using zenphoto 1.0.2 and Wordpress 2.0.2

    Any ideas?
  • Im using dreamhost and it worked exactly as described. Wow! Thats the coolest use of zenphoto yet!
  • @Chilifrei:
    It seems like the database quey returned no results.
    OR, it could be a problem with the database and maybe php is hiding warnings to you.
    To rule out this possibility, I've added some more checks in version 0.9.1.
    http://www.simbul.net/zenpress/ZenPress-0.9.1.zip

    Should the album list remain empty (with no reported errors), I'd try throwing this query to your ZenPress database:
    `SELECT id,folder,title FROM albums ORDER BY title ASC`

    If you don't like to mess with the DB... we'll find out another way to test things ;)

    Oh, BTW: your php version is >= 4?

    Thanks for helping me making zenpress better ;)
  • Thanks for the quick reply. Here is where I think the error is. It is not picking up my table prefix. From phpmyadmin, if i throw in that query I get zen.albums does not exist.. which is correct.. it should be zen.zenalbums as my database name is zen and my table prefix is zen. If I make the change and have it look for zenalbums instead of albums it spits out my album names
    And yeah.. after installing your new 0.9.1 i get the error
    "ZenPress error. Query to database failed: SELECT id,folder,title FROM albums ORDER BY title ASC. Table 'zen.albums' doesn't exist"

    which is correct because zen.albums does not exist.. this should read zen.zenalbums.

    and yeah, php version is 5.1.2 and MySQL version is 5.0.20

    EDIT:
    UPDATE.. if i manually modify the query in popup_zp.php where it looks for the album names and add my prefix infront of albums i can get the dialog to work.. however then the rest still doesnt work because i would need to add that into all of the spots.. and my break is over now.. I will definately look into it more when I get home...
  • Hmm yes, your reply can explain a lot...
    Actually, i completely forgot about table prefixes :P

    Now it should be fixed. Let me know if it works ;)
    http://www.simbul.net/zenpress/ZenPress-0.9.2.zip
    [corrected the link ;)]
  • I think you meant
    http://www.simbul.net/zenpress/ZenPress-0.9.2.zip

    and yeah.. this works now.. I like.. thank you.. once I get a chance to further mess around with it I will be sure to give you some feedback.. until then.. back to work...
  • Wow amazing plugin, worked straight out the box, thankyou very very much :D

    (No idea how hard this would be, but it would be really nice if the images changed as soon as you selected a different gallery, instead of having to click 'select')
  • Here is a "bug"

    It does not work in IE(6 or 7).. otherwise..

    also.. just an idea.. some of my albums have roughly 100 photos in it and it takes a while to load the ZenPress Dialog page.. maybe paginate it....and maybe the ability to select more than one photo at a time..as everyone else calls it.. kinda a "flikr badge" for the album in your post..

    Otherwise.. very slick, clean and functional... I am liking and will be using...PROPS!!
  • Thanks for the feedback :)
    3stripe: you mean showing the "album selector" dropdown instead of the back to selection link, or just bypassing the select button? (or both? :P)
    Cilifrei64: I tested it in IE6 and it seemed to work. Can you tell me exactly what is the problem?
    As for large albums, I was kinda aware of the problem, but didn't want to put too many things in the first release. I'll work on it for future releases.
    Finally, the Flickr badge: you mean show some random images of an album? Or showing the album cover (or "thumbnail" as it is called in Zenphoto)?
  • The part that didnt work was ass soon as you open the zenpress dialog you select the album, then it goes to the next page.. you have plus signs next to "what we want to do" when i select those plus signs to expand the selection, it doesnt expand. I have tried it on my work computer, my home computer and my wifes laptop, all with no luck...

    As far as the badge goes, what I am talking about is something like a when I select what album I want to choose from that like right now I have the option to make a link to the album using 1 picture or make a link to the album, but what I want is like a 6 picture random photo badge, kinda like what wei chen made. if you look at my site you will see what I am talking about. The thing I dont like about what he made is my friends that i host blogs for give me the blank stare when i tell them how to do it.. if ti was easy like yours where you select album and seect an album badge, they would understand that..

    Not sure if i am making sense here but basically like what you said. "show some random images of an album"
  • Waaaaahhhhoooooo!!!!
    I'm gonna give this one a try.
  • Thanks for this long needed plugin :)

    unfortunately it doesn't work for me. I can get to the album selection to choose one of my albums, but when I hit select I get an error in the "Select Image" box:
    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /var/www/moonlord/webroot/wp-includes/js/tinymce/plugins/zenpress/popup_zp.php on line 176

    any ideas?
  • I will look into it. I'm trying a guess, though: maybe you selected an empty album?

    Anyway, first of all I will try to addres the malfunctioning in IE. I really hate IE and the way it *always* breaks my javascript and css, but unfortunately I can't ignore it :P

    Stay tuned for 0.9.3 ;)
  • well, I tried several of my albums and none of them is emtpy. but I'll try again with a clean install of zenphoto, wordpress and zenpress during the weekend. I'll let you know then.
  • trisweb Administrator
    Holy crap, you got my attention! This is an excellent start to something I've been wanting to do for a loooong time.

    Would you like some help? I have a couple other features I need to add (like inserting custom image sizes and configuring a default "blog-width" image). Seems also there are a couple bugs... but man, this is exactly what I've wanted since I first started developing this program.

    I know it's GPL, but do you mind if we take it in and help? Make it sort of "official" in a sense? Then you'd be sort of an "official" wordpress plugin developer ;-)

    One idea I had for future integration: make a Wordpress Widget that gives you the so-called "flickr-badge" in your sidebar. That's different though... ;-) This is absolutely fantastic, and I'll be using it for sure. Thanks thanks thanks.
  • Ok, I managed to solve the IE issue: it was basically a conflict with the tinyMCE js that was driving me nuts. Tested on IE6, seemed to work this time.

    moonlord, don't bother reinstalling everything. Just try version 0.9.3: hopefully it will give you some more information on what went wrong ;)

    trisweb: thanks for the kind words :)
    As for the plugin itself, I'd be glad to work on it with you, but I was rather willing to produce at least a stable version (i.e. 1.0) before thinking about such things. Hopefully it won't take long. We can start talking about the features you'd like to introduce in the meantime ;)

    Oh, yes, the link: http://www.simbul.net/zenpress
  • IE works for me now.. Thank you. Once again.... great work..
  • Null Member
    -snif- beautiful -snif-
  • It took more work than I planned, but here you are:
    http://www.simbul.net/zenpress/ZenPress-0.9.4.zip

    This is the biggest set of changes I've done so far, even if most of them are just "behind the scenes".
    Error handling is now performed in a way that should (hopefully) ease debugging operations.
    The images in the popup are divided in pages.

    I think that 0.9.4 is going to become the official 1.0 release soon. This means:
    1) Tell me if you notice problems/bugs, so that I can correct them before releasing.
    2) trisweb, we can start working together on it, if you still wish so.

    Thanks again for your support ;)
  • Two small requests:

    Ability to include full-size image in post

    and

    Ability to link directly to the image, not just to its ZenPhoto page

    With this, I could use ZenPress and ZenPhoto to manage alot of different images for different purposes.

    Thanks. I love this plugin, keep up the good work!
  • Newbie question :

    Only yesterday I installed Wordpress and Zenphoto om my site. Finding Zenpress today confirms me I choose the right tools :)
    I uploaded the Zenpress-files to my Wordpress-include folders. Activating the plug-in and setting the options worked fine, but the ZP-button appeared only after I chmodded all files to 755 (were 644). However after clicking the button, only a blank screen pops up. When opening the source-page in Firefox equally shows an empty page. Anyone any suggestions ?

    Thanks,
    Bart
  • Could you make this script work with zp-config.php also? The SVN has renamed config.php to zp-config.php.
  • I just setup Wordpress & ZenPhoto without a hitch. I followed your instructions and installed ZenPress. Sadly I must report it does not show up in the Wordpress Plugin Management :(.

    Here is my setup:
    Host: Site5.com
    Wordpress 2.0.2
    ZenPhoto 1.0.2b
    ZenPress 0.9.4

    I am using a different database for Wordpress and ZenPhoto. My website is located here: www.storylinker.com. Any ideas?
  • Simbul Member
    @3dkiller: I browsed to some of the inner folders of your website, and it seems that for some reason the zenpress.php file is saved as a directory.
    Try modifying wp-content/plugins/zenpress/zenpress.php/ removing the trailing slash from "zenpress.php/"

    @aitf311: will work on it

    @bagger99: make sure wp-includes/js/tinymce/plugins/zenpress/popup_zp.php is chmodded 755 too.
  • Simbul, thanks for the response. alas, it was already chmodded 755.
    Zenphoto is installed in mydomain.com/foto , Wordpress is installed in blog.mydomain.com , could that cause problems ?
  • Simbul Member
    It could. I guess that the automatic configuration of the zenphoto admin path wasn't able to get it, am I right?
    Did you configure it manually?
  • Sinbul,

    Ok, I'm confused. I have two things in the wp-content/plugins/zenpress/ directory.

    1. zp_config.php (a file)
    2. zenpress.php (an empty directory)

    I double checked my zenpress 0.9.4 unzipped download, and it too has same.

    So what do you want me to do? Turn an empty directory into a file? Or rename zp_config.php > zenpress.php and delete the empty directory?
  • Swivel Member
    I too am having difficulties :( But quite possibly of my own making???

    When ZP is clicked within wordpress write:

    Zenpress Messages
    Fatal Error
    Cannot find Zenphoto configuration file.

    wordpress 2.02
    zenphoto 1.02b
    zenpress 0.9.4

    paths for wordpress "subdomain.mysite.com"
    zenphoto "subdomain.mysite.com/photos" this I used in zenphoto base path
This discussion has been closed.