zenphoto forums » General Zenphoto Discussion

ZenphotoPress: Zenphoto plugin for WordPress

(267 posts)
  1. Kolenka

    Apprentice
    Joined: Oct '08
    Posts: 4

    I have fallen for this slick plugin, but wound up butchering it pretty heavily for my not-so-average needs. It was easier than writing it from scratch. Simbul, if you are interested in any of the changes I have made, I'll be happy to share them. :)

    - Refactored the widget code so you can actually run any number of copies of the widget. I haven't cleaned it up quite enough so that you can add multiple copies without editing the script, but at least now it is scalable.
    - Changed the MCE so you can get the caption border around images you embed into wordpress, and uses the caption shortcode to align the image, giving an extra alignment option.
    - Changed the widget code to allow you to select any arbitrary list of albums from the gallery to use in the widget. A bit more flexible for galleries like mine where I split up the albums between the two widgets I use, and have an album or two that I don't want in the widgets at all. Currently only acts like an 'include this list' operation, rather than an 'exclude this list' operation which I could see as being useful.

    Still, very useful plugin, and I wouldn't have been able to layout my blog the way I wanted without it.

    Posted 4 years ago #
  2. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    I'm not currently in a development phase, but I'd be happy to have a look at your modifications. And it's good to know that ZenphotoPress is evolving thanks to the effort of the people using it :)

    Posted 4 years ago #
  3. Michael

    Junior
    Joined: Nov '08
    Posts: 8

    Hi, here's my problem:

    Whenever I try to add a photo, it's able to bring up the pop-up menu and I can pick an album but when I select the individual images no thumbnails show.

    And when I click on the text where the thumbnail should be there's a problem with the link. It directly links to this URL site.com/zenphoto/1.jpg and I get a 404 error message on my website.

    So my question is if I have uploaded photos and created an album on my ZenPhoto site should the dialog box in wordpress be adding thumbnails and images from that part of my site server? Incidentally, I created the zenphoto db on the same db as my blog uses.

    I'm sure this can be resolved with minimal fuss (at least I hope) so if anyone out there would care to enlighten me I'd be truly grateful. Specifics are encouraged since I am not the most high-tech web user.

    Posted 4 years ago #
  4. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    The db should not be a problem.
    All images used by ZenphotoPress are taken straight from Zenphoto, so you should see the URL of your Zenphoto gallery in the first part of the URLs generated by ZenphotoPress.

    Usually issues like this one are related to mod_rewrite: have a check in the past discussions here on the forum and see if you can find some hints.

    Failing that, try adding some details and I'll se if I can understand what the problem is.

    Posted 4 years ago #
  5. mbrindle

    Junior
    Joined: Nov '08
    Posts: 9

    Hi there. I don't seem to be able to get this to work.

    After I install the plugin in wordpress and go to options. I click the ZenPressed option and it tries to go to a page that doesn't exist in a directory that doesn't exist.

    wp-admin/zenphotopress/zp_config.php

    I've check the ftp and neither the folder or zp_config.php file is in the admin. The zp_config.php file is only where the readme said to put it in the wp-plugins folder.

    Any ideas? :)

    Posted 4 years ago #
  6. Michael

    Junior
    Joined: Nov '08
    Posts: 8

    Thanks Simbul. I did read through those earlier posts about the mod_rewrite when I encountered that problem and I tried it both ways, checking the mod_rewrite box and unchecking it. Both ways didn't matter. I still can't see thumbnails in my blog posts and the text link that shows in the blog post, when I click on it, takes me to a 404 Error on my own site.

    Any other idea of the problem? I'm trying to think of any more details to give a better understanding of the problem. Currently my zenfolder sits on my server at http://www.slapclap.com/zenphoto/ - that's in the root directory. How do I get Zenphotopress to pull from that url and also create thumbnails? When I choose a gallery in a blog post and then click on the image all I get is the text image link.

    Posted 4 years ago #
  7. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    @Michael: this is strange. Did you check the url of the (supposed) images in the ZenphotoPress popup? This could be useful in understanding what's going on. Another source of info is debug mode: to turn it on have a look at the first lines of code in classes.php, there's a pretty obvious place where you should write ZP_E_ALL.

    @mrbrindle: this is strange too. The url you're reporting should actually be created by Wordpress, so it's likely that the problem is on its part. Actually, the url is right, the only problem is you should have "wp-content/plugins" instead of "wp-admin".
    Btw, I assume you meant wp-content, since the wp-plugins doesn't exist in Wordpress ;)

    Posted 4 years ago #
  8. Michael

    Junior
    Joined: Nov '08
    Posts: 8

    Hi Simbul,

    That's a good question regarding the url of the images and I noticed the problem, although not exactly sure how to fix it. The bad URL begins with http://slapclap.com/www.slapclap.com/zenphoto but when I do a custom link (which links correctly) it is http://slapclap.com/zenphoto.

    Could this be due to my gallery configuration? The website URL field is filled out on that page in admin config menu. If not how can I correct this and would it also address my thumbnails problem?

    I will have to look further into the debug mode for the classes.php doc. I opened it but I guess it wasn't obvious enough for me to tell where to include the ZP_E_ALL code.

    Hey thanks again for the tips, suggestions. I feel closer to a resolution.

    Posted 4 years ago #
  9. dustybin

    Apprentice
    Joined: Nov '08
    Posts: 4

    I'm running Wordpress 2.6.3 Zenphoto 1.2.1 and Zenphotopress 1.5.1
    My zenphoto installation works perfectly, with mod-rewrite turned on or off.

    I am unable to get the albums to show on Zenphotopress editor.

    Here is a snapshot with debug turned on:
    http://empire.ispeeds.net/~subx/Picture%201.png

    The proxy link works ok, and there doesnt seem to be any errors reported?

    Here is my php configuration, i have exported it as .html
    because my server isnt open to the public yet:
    http://empire.ispeeds.net/~subx/info.php.html

    Hope you can help :)

    Posted 4 years ago #
  10. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    @Michael: well, the URL is definitely wrong and this is most likely what's been causing your thumbnails not to show up. As to why it is so... I have no clue, at the moment.
    By the way, what do you mean with "custom link"?
    As for the debug code, I should have been more specific: open the classes.php file and change the following line
    $zp_eh = new ZenphotoPressErrorHandler(ZP_E_FATAL); // To debug use ZP_E_ALL
    to
    $zp_eh = new ZenphotoPressErrorHandler(ZP_E_ALL); // To debug use ZP_E_ALL

    @dustybin: what do you see when you enter the proxy link in the browser? Since no album is shown, the problem is most likely to be in the code returned by the proxy call.

    Posted 4 years ago #
  11. dustybin

    Apprentice
    Joined: Nov '08
    Posts: 4

    Simbul,

    This is what shows when i enter the proxy link:

    a:5:{i:0;a:3:{s:5:"value";s:1:"4";s:4:"name";s:21:"BBQ Birthday May 2008";s:8:"parentid";N;}i:1;a:3:{s:5:"value";s:1:"2";s:4:"name";s:14:"Christmas 2006";s:8:"parentid";N;}i:2;a:3:{s:5:"value";s:1:"5";s:4:"name";s:14:"Halloween 2006";s:8:"parentid";N;}i:3;a:3:{s:5:"value";s:1:"1";s:4:"name";s:6:"Random";s:8:"parentid";N;}i:4;a:3:{s:5:"value";s:1:"3";s:4:"name";s:13:"Thailand 2007";s:8:"parentid";N;}}

    Posted 4 years ago #
  12. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    Uhm. The output looks good to me.
    Ok, next suspect on the list: the fact that the call is working when done in the browser does not actually ensure it is done correctly by PHP.

    Actually, it just dawned on me that your problem could be related to the fact that your Zenphoto directory is password-protected: when you simulate the proxy call through the browser you're actually supplying the credentials yourself, but poor PHP does not know them.
    Let me know (if you find a way to test this theory without compromising the security of your server).

    Posted 4 years ago #
  13. dustybin

    Apprentice
    Joined: Nov '08
    Posts: 4

    Simbul,

    That was it!!!!! I turned off the password protected directory, and it works perfectly! :-)

    Many thanks for great plugin :-)

    Posted 4 years ago #
  14. Michael

    Junior
    Joined: Nov '08
    Posts: 8

    Hi Simbul, again thanks for the help. I figured out the problem and it was an easy one that was easy to correct.

    I went into Settings in my Wordpress Dashboard and changed the Zenphotogallery URL to /zenphoto. Before it also included my site url which screwed up the thumbnails and links in the posts.

    Incidentally, the example URl in that field in the Settings menu suggests using your full URL but /zenphoto does the trick.

    Posted 4 years ago #
  15. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    Strange. The setting is actually meant to work with the full URL.
    Would you mind providing me with some more info on your configuration? I'd like to understand this strange behavior.
    You can reach me at webmaster -AT- simbul -POINT- net, if you want ;)

    Posted 4 years ago #
  16. kevystylez

    Apprentice
    Joined: Dec '08
    Posts: 2

    Hi,

    first off great plugin! However I have a slight issue with the shortcodes, I'm using the following line:

    [zenphotopress] sort=latest number=5 album=0 [/zenphotopress]

    And in my post it seems to ignore the sort and the number of photos to show. It could be just something simple, but I cannot figure it out for the life of me.

    Forgot to mention I'm running Wordpress 2.6.3 and latest zenphoto. Both on seperate databases. Running PHP 5+.

    The plugin can grab photos, not a problem, just the way and amount I would like to show isn't working.

    Posted 4 years ago #
  17. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    It is just a simple oversight. You should write parameters inside the shortcode tag, like this:
    [zenphotopress sort=latest number=5 album=0]

    (You don't need a closing tag, by the way)

    Posted 4 years ago #
  18. fdnews

    Apprentice
    Joined: Dec '08
    Posts: 2

    Simbul:

    First, thanks for a great plugin. I used it in an early version of my family's personal blog and am trying to use the new version in an updated version of the blog.

    Here's the problem:

    When I click the ZP menu button, the menu shows my galleries as it should. But none of the thumbnails show -- just links in boxes. If I click one of those links, it puts the link text into the body of my post. Clicking the link takes me to the proper photo and gallery.

    So I tried using the shortcode for a full gallery to see if there's a difference. The shortcode creates a matrix of links -- no thumbnails again -- to each photo in the gallery. Clicking any link takes me to the proper gallery.

    The URL of the thumbnail that's not showing up is this, according to Firefox's Element Properties:

    http://www.(mysite).org/zenphoto/albums/zp-core/i.php?a=test&i=DSCF0118.JPG&s=thumb

    The filename of the photo, DSCF0118.jpg, is the right name for the full sized photo.

    I'm using PHP 5 and the most recent versions of WP, ZenPhoto and ZenPhotoPress.

    Poking around in FTP reveals this:

    The Album/(album name) structure is working as it should. All folders have proper permissions. Inside my test album are the 7 photos I uploaded. There are no thumbnails in the test folder. There are thumbnails in the cache/test folder.

    ZP's admin for the "test" gallery shows thumbnails for each image. I edited one thumbnail's size to make sure.

    Where should the thumbnails be, and what am I doing wrong?

    Many thanks,
    Dave
    PS: Simbul -- I found this forum after sending you an e-mail about this topic. Ignore the e-mail, and my apologies.

    Posted 4 years ago #
  19. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    http://www.(mysite).org/zenphoto/albums/zp-core/i.php?a=test&i=DSCF0118.JPG&s=thumb

    This URL is a little weird: the "albums" part shouldn't be there.
    What did you put in the configuration for the Zenphoto path?

    Also, try inserting in the browser both the URL you provided above and the same URL without "albums/" and let me know what you see.

    Posted 4 years ago #
  20. fdnews

    Apprentice
    Joined: Dec '08
    Posts: 2

    That's the fix! Removing /albums from the config screen fixed it.

    Many thanks for the quick help, and the great plugin!

    Posted 4 years ago #
  21. ahakka

    Apprentice
    Joined: Jan '09
    Posts: 2

    hi Simbul, thank you!

    i running:

    wordpress 2.7
    mysql 5.1
    zenphoto 1.2.2

    i installed zenphotopress 1.5.2, but can't display chinese. i get many ???? in the albums select drop-down.

    how to ?

    Posted 4 years ago #
  22. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    Seems like an encoding problem. You don't have the same problem when looking at the names of the albums in Zenpress?

    Posted 4 years ago #
  23. ahakka

    Apprentice
    Joined: Jan '09
    Posts: 2

    yes, same problem.

    mysql charaterset is utf-8.

    zenphoto 1.2 display chinese is ok.

    any idea?

    Posted 4 years ago #
  24. bilbo

    Apprentice
    Joined: Jan '09
    Posts: 1

    Hi, I'm having a problem with no galleries showing up in my dialog. I am aware this has been previously posted here but the solutions (upgrading to php5) that worked for others don't seem to be working for me (already have php5).

    Below is info after enabling debugging:

    INFO
    PHP Version: 5.2.8
    INFO
    Current working directory: C:\wamp\www\wordpress2-7\wp-content\plugins\zenphotopress\tinymce
    INFO
    POST:
    INFO
    GET: Array ( [tinyMCE] => 1 [ver] => 20081129 )
    INFO
    ZenphotoProxy method: file_get_contents
    INFO
    ZenphotoProxy call: http://192.168.1.10/wp-content/plugins/zenphotopress/zenphoto_bridge.php?function=get_albums&admin_path=C:\\wamp\\www\\wordpress2-7/zenphoto/zp-core

    Here is info when pasting the proxycall address in the browser:

    Notice: Use of undefined constant REQUEST_METHOD - assumed 'REQUEST_METHOD' in C:\wamp\www\wordpress2-7\wp-content\plugins\zenphotopress\zenphoto_bridge.php on line 20
    a:2:{i:0;a:3:{s:5:"value";s:1:"1";s:4:"name";s:11:"1st Gallery";s:8:"parentid";N;}i:1;a:3:{s:5:"value";s:1:"2";s:4:"name";s:12:"Various pics";s:8:"parentid";N;}}

    Any ideas??

    thanks

    Posted 4 years ago #
  25. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    I reckon from your path that you're on a Windows webserver. I'm not sure anyone ever tried installing ZPP on Windows, so your issue may be related to this.

    Anyway, the response to the proxy call is correct. The problem is, the notice above it makes it impossible for ZPP to parse it correctly. You can try disabling the notice in your webserver - which I guess you can do, being on a local IP.

    Posted 4 years ago #
  26. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    @ahakka: what do you mean "same problem"? What I meant was, do you see the album names correctly in Zenphoto even though you don't see them correctly in ZenphotoPress?

    Anyway, from your statement on Zenphoto 1.2 I assume names are ok on that side. Is also Wordpress is having some problems with chinese characters, or is it only ZPP?

    Posted 4 years ago #
  27. jayray999

    Contributor
    Joined: Aug '06
    Posts: 165

    Hi Simbul. I am running Zenphoto 1.1 and Wordpress 2.3 linked together by your excellent plugin. Will ZenphotoPress 1.5 work with Wordpress 2.7 and Zenphoto 1.2.2 ? Basically can I upgrade everything with no known issues?

    Posted 4 years ago #
  28. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    There are no compatibility issues i know of :)

    Posted 4 years ago #
  29. definedbyeye

    Apprentice
    Joined: Mar '09
    Posts: 1

    Hello! I am another member with a blank album list issue... I have two albums up at: http://definedbyeye.com/wedding/zenphoto/. My blog is up at: http://definedbyeye.com/wedding/. URLrewrite is currently disabled.

    I set the error reporting to all and clicked the ZP icon when editing a page. I get:

    INFO
    PHP Version: 5.1.6

    INFO
    Current working directory: /home/definedbyeye/public_html/wedding/wp-content/plugins/zenphotopress/tinymce

    INFO
    POST:

    INFO
    GET: Array ( [tinyMCE] => 1 [ver] => 20081129 )

    INFO
    ZenphotoProxy method: cURL

    INFO
    ZenphotoProxy call: http://definedbyeye.com/wedding/wp-content/plugins/zenphotopress/zenphoto_bridge.php?function=get_albums&admin_path=/home/definedbyeye/public_html/wedding/zenphoto/zp-core

    I upgraded WordPress to 2.7.1 before installing ZenPhotoPress, so I don't know if it worked before. I tried setting my path to http://definedbyeye.com/wedding/zenphoto and /wedding/zenphoto. Both WordPress and Zenphoto are in the directory /wedding (bad of me, I know...) so I'm assuming that has something to do with it.

    Which admin file are you trying to include in zp_config? And is ABSPATH supposed to be defined somewhere? I tried including both the WordPress and the Zenphoto admin.php's and either I did it wrong or neither worked.

    Thanks for any help you have in pointing me in the right direction.

    Posted 4 years ago #
  30. Simbul

    Contributor
    Joined: Apr '06
    Posts: 163

    Your issue may be solved in the latest nightly build: try downloading it from http://downloads.wordpress.org/plugin/zenphotopress.zip and installing it.
    Let me know if it works: I had no chance to test it since I can't easily reproduce the environment you're in.

    Posted 4 years ago #

RSS feed for this topic

Reply »

You must log in to post.