Photopress 1.0.2
First of all, I made a lot of changes, in a lot of places, so there’s probably something broken. So, if it doesn’t work, revert to your old version. But what if you didn’t back up your old version?? In that case, head over to the familypress repository for the version you want. Complete with tarballs for your downloading pleasure! If you need an even earlier version that won’t work with WP 2.1+, those are still at wp-plugins.org.
I added support for Lightbox. I wasn’t able to get it working manually, but this plugin did the trick. Install the plugin, set the Use Album option to Lightbox, and it should work. If you’ve been using tags, all your previous images will automagically use Lightbox too. No Lightbox groups yet because I’m not sure how to make that work.
Based on some comments (yeah, I do read those now and then), I did some testing of non-English characters and found some serious brokenness. The suggestion to remove htmlentities2 was on the right track, but some escaping was still necessary to keep Javascript/TinyMCE happy. The combo of js_escape and attribute_escape seems to work right but those of you who regularly use funky characters should test it out and see if it’s really fixed.
Apparently edit_posts is a bad default capability to use because it’s normally for Editors, not Authors. I’ve set the default to publish_posts instead. If you’re seeing the “Ask the administrator to promote you.” message then you need to go admin and edit the options at Options:Photopress so the uploading capability is something your blogging user can do, such as publish_posts. Sorry for the confusion!
Download it: photopress.tar.gz or photopress.zip
March 17th, 2007 at 6:58 pm
Hi, It seems to me that I can’t upload any picture…
I get all the time “There was an error uploading DSC01992.JPG, most likely because it is larger than 1024 kilobytes.”
(I tried different upload limits). I have the right folder (…/photos) and it is chmodded correctly. Any idea where this comes from?
Thanks
March 17th, 2007 at 7:38 pm
Well i can only upload small images (smaller than 512 kb), but it seems like the “Maximum resized image dimensions (width or height):” is not working properly, is I get huge images (event when I define 300).
Thanks again
March 20th, 2007 at 9:35 am
When the Lightbox plugin is installed and activated with PP 1.0.2 and used, the Lightbox effect continues even if that option to use Lightbox has been unchecked in PP options menu and updated. Even updating permalinks after the change did not disable Lightbox. One has to deactivate the Lightbox plugin in order to stop the Lightbox effect. When the Lightbox plugin is re-activated and the PP option is set to display to albums, the Lightbox effect overrides the PP options setting. Also, there doesn’t seem to be any option to control the size of a photo in a popup or in a Lightbox.
March 20th, 2007 at 3:13 pm
Hi,
I just downloaded and activated your photopress plugin, but can’t figure out how to get it to recognise the path to my photos folder. I set the permissions to 777 using SmartFTP 2.0 and got the path (/public_html/wp-content/photos) from SmartFTP as well. When I go to upload photos, photopress says that it’s not writable.
I’m very new to all of this and like the simplicity and cleanness of your setup, but am unsure what I have done wrong here and how to fix it.
Thanks very much,
Desmond
March 21st, 2007 at 10:24 am
Hi Isaac,
Thanks for the updates!
I have just installed the latest on WP2.0.6 and it works fine i think.
One bug however. When i add an image it creates a category named ‘default’ even when i place the image in another category. The database table then is not updated correctly and the catname field for the image shows NULL while the slug is the category. Thus creating an empty category but showing the image in the right one. It’s a bit annoying.
Other than that i have had no troubles using your great plugin!
March 23rd, 2007 at 8:33 am
Hy!
Can you please tell me how to fix this: I wan’t the photopress to show me the image with lightbox when I click on it, rather then going into photo’s info and stuff..
thanks, Luco
March 27th, 2007 at 9:44 am
Anytime I try to add a photo it gives me the popup with:
‘Ask the administrator to promote you.’
I am the administrator… any ideas?
April 4th, 2007 at 1:57 pm
Nicely done.
Is there a way to have the image’s description appear as the caption? I know lightbox supports a caption, just not sure if there was a setting for it.
Thanks!
May 22nd, 2007 at 2:09 am
This is a fantastic photo and album management plugin. Perhaps it will eventually develop into the default tool for wordpress.
FYI: Two issues I have encountered is that my images seem to be duplicated and another is photopress seems to list all my posts in the “Posts with this image”, rather than the specific post the photos have been attached to.
June 12th, 2007 at 5:30 pm
I’ve downgraded to version 0.9.2 again since that still is the superior version. Added to the lack of updates and all the bugs in the later versions…
Bleh… Someone should take over this thing and continue maintaining it
August 17th, 2007 at 8:06 pm
I ran into a bug and found a workaround. No idea what the root cause is. The bug showed up with Wordpress 2.2.2 and Photopress 1.0.2. Isaac, if the code below gets mangled, please feel free to send e-mail.
The bug was that my blog started spitting out this sort of thing:
Warning: preg_match() [function.preg-match]: No ending delimiter ‘!’ found at /wordpress/wp-includes/classes.php line 95
The line in classes.php is this:
if (preg_match(”!^$match!”, $request_match, $matches) || …
I think that these failures corresponded to contents of the $rules array in photopress_album_rewrite(). Somehow, a null string (ASCII 0) was getting prepended to the elements of $rules[], and that was causing the ‘no ending delimiter’ error.
I got rid of the error by inserting this into classes.php immediately above the preg_match call:
for ($i=0;$i 126) {
continue 2;
}
}
The continue 2 call skips over the current loop over the $match string (which means that Photopress’s album rewrite rules never get processed).
August 17th, 2007 at 8:08 pm
Yup, the code got mangled. The idea is that I use the ord() function to check every character of $match. If the ord() value is less than 32 or more than 126, I execute the continue 2 call to skip over this $match string.
August 21st, 2007 at 9:08 pm
An even better solution to this bug is to 1) disable photopress; 2) blow away the pp_options table in MySQL; 3) enable photopress; 4) set the options you need from scratch.
November 6th, 2007 at 12:31 pm
Have everything working apart from Permalinks. When i enable that in photopress options i get error 404 whenever i click on an image.
November 10th, 2007 at 11:49 am
Hi,
The plugin works wonderfully well - except for the image watermarking. When I use a transparent-background PNG, it does not come through as transparent. Transparent-background GIF does not seem to be supported.
Do you have some additional documentation on the image watermarking portion of the Photopress Watermark plugin? The text watermark works great.
Also, will re-importing my images in Manage > Photopress > Maintain scrub the existing watermark off of them, if I disable it first? Or will I need to re-upload all the images again? I do have the “save originals” option enabled in Options > Photopress.
Thanks!
November 15th, 2007 at 5:50 pm
Hi, i want show just the last image.. just the recent, and just one. how can do it? I don’t know the code, if you can help me please…
November 20th, 2007 at 5:16 am
How do I email you regarding photopress. I have a site and I am hoping to get my clickable images to display in a template, I have no luck doing that.. pls help.
Henrietta
November 26th, 2007 at 1:53 pm
Issac,
A nice option would be to have the CSS for photopress have an option for an inlined image. That’s where text wraps around the image. See: http://codex.wordpress.org/Wrapping_Text_Around_Images
I can edit this myself, but am creating a video about wordpress. Editing CSS is a bit complicated for the video, so I’m going to leave that feature out. Anyway, nice work!
Burton
December 8th, 2007 at 8:54 am
Hi Isaac,
Is this still maintained? if so, I have a few fixes which would be happy to send you.
These fix the following issues:
a) Lightbox Option - set it on the options page, it shows ok, reload options page and it reverts to “album = 1″, i.e not lightbox.
Bug in include.php approx line 92:
if ($pp_options['album'] != ‘0′ && $pp_options['album'] != ‘1′) {
change to: if ($pp_options['album'] != ‘0′ && $pp_options['album'] != ‘1′ && $pp_options['album'] != ‘lightbox’) {
b)Rotate/replace (in the admin picture editing page) does not refresh the image.
Fix involves adding a dummy time to the image. (Too long to show code changes here)
Best Regards
Chris
January 4th, 2008 at 8:11 pm
I love this tool!
I do have one question…I accidentally created a category that is invalid and cannot find a way to delete a category. How would I do that?
Thanks!
January 6th, 2008 at 4:02 pm
So I have no idea if anyone will see this, since this blog is way old, but just in case… I haven’t uploaded anything with photopress for almost a year. Last summer I changed hosts… so today I try to use it and it acts like it is working ok, but when I clicked the buttons to add the full image or the thumbnail to the post, it doesn’t do anything. No errors or anything, it clicks over the post screen, but nothing shows up. Any idea how to start fixing this?