Photopress 0.8.1
I almost just appended a note about this version to the last post, but some of the new stuff is pretty spectacular. As usual, please let me know if you find anything broken.
New features and fixes:
- Automatic permalink setup. Turn on the option and update your permalink structure at Options:Permalinks. Thanks to this page in the codex.
- Paging and sorting in mass edit and browse were a bit broken but should be fixed now. I also added sorting by category.
- The mass editor now has a delete field, and also popup links to images.
- I added a category manager where you can change category names.
- album.php has been renamed to pp_album.php. Now you don’t have to rename it if you copy it to your theme folder.
- Choice of CSS classes when inserting images into posts. Enter a space-separated list of classes to use in options, with your favorite first.
- Inserting code from the uploader or browser doesn’t close the window anymore.
Download Photopress 0.8.1: photopress.zip OR photopress.tar.gz
November 29th, 2005 at 6:14 pm
I’m new to Wordpress and your plug-in perfectly fits to my need and it’s very cute, thanks!
from 0.8.1
Some small Bugs:
If you click on your root Photo Album path you get following errors and I also noticed you got the same errors at your own page.
Photo Album
Warning: getimagesize(/home/family/www/www/wp-content/photos/thumb_): failed to open stream: No such file or directory in /home/family/www/www/wp-content/plugins/photopress/photopress.php on line 89
1.in your function pp_random_image from photopress.php
line 89 …
if (file_exists($random_image_thumb)){
$random_image_thumb_size = getimagesize( $pp_options['photospath'] . ‘/’ . $random_image_thumb);
}
Same issue with Mass Edit Delete option
line 839…
$image_size = getimagesize($pp_options['photospath'] . ‘/’ . $image_data['imgfile']);
to
$image=($pp_options['photospath'] . ‘/’ . $image_data['imgfile']);
if (file_exists($image)){
$image_size = @getimagesize($image);
}
…
$thumb=($pp_options['photospath'] . ‘/’ . $pp_options['thumbprefix'] . $image_data['imgfile']);
if (file_exists($thumb)){
$thumb_size = @getimagesize($thumb);
}
2.origprefix variable seems not pass => the popup function is useless
3.xhtml strict validation problem
Ampersand
-& to &
to
I have a wish list for the future versions:
1. Categories Description:
2. Subfolder for images
Best Regards
November 30th, 2005 at 1:39 am
Greetings,
Thank you for the plugin.
As I am just starting with Word Press (semiologic theme), the Plogger open source software, and your plugin, I am totally bewildered and confused.
I am getting the same sort of error as the previous commentator, and do not know what to do about it. Could you please help?
I would also like to kindly ask you to make your pop-up windows resizable, since I am using a little larger fonts and have to use the scroll bars all the time.
Best wishes
November 30th, 2005 at 1:41 am
One question: Have you tested Photopress with Wordpress 2.0 RC1?
November 30th, 2005 at 5:03 am
@Eyejar Isaac Wedin!
I noticed at CVS that he is working hard on the plug-in. Stay tune! The Problem is only if you have only one category, the random issue did not check the images.
@Jr.
No, I’ve just tested with Wordpress 1.5.2!
@Isaac
Wordpress filerts some input!
XHTML Validation
Javascript issues
November 30th, 2005 at 12:44 pm
It works perfectly: http://www.catonett.com/blog/?pp_album=main&pp_image=Liten_Geilo_h__st_2005_071.jpg
November 30th, 2005 at 1:42 pm
Hi,
I’ve tried to install this plug-in for the 1st time in /wp-content/plugins/photopress/ but the link Option/Photopress created in the admin interface point to /wp-admin/photopress.php
Where am i wrong ?
Thanks
December 1st, 2005 at 6:41 pm
Hey Isaac I have been using your plugin for months and wordpress 2.0 is out soon will photopress be compatible with it? because right now it isn’t.
- Tom | http://www.tomwrote.info
December 2nd, 2005 at 3:25 pm
I’ve been messing around with Wordpress blogging software on my local machine (an iBook G4, running 10.4.3). I have thus far managed to get MySQL up and running, along with enabling PHP on Apache and I have been able to install Wordpress and I can access it at 127.0.0.1/~Donovan/WP/.
I’m trying to get Photopress to work. I have CHMOD’d the relevant directories to 777, and everything seems fine. Until I try and upload a photo, and I am greeted with:
Warning: getimagesize(/Users/Donovan/Sites/WP/wp-content/photos/thumb_UJ001_1.jpg): failed to open stream: No such file or directory in /Users/Donovan/Sites/WP/wp-content/plugins/photopress/popup.php on line 240
When I look in the photos directory, there is no thumbnail there.
I have tried re-CHMODding, re-installing, deleting and letting Photopress recreate the tables it needs, I am pretty much lost now. How do I get this thing to work?
I’m using Wordpress 1.5.2, and Photopress 0.8.2. Please help!
December 2nd, 2005 at 3:50 pm
A quick question - Does PhotoPress allow batch uploads or would I have to upload individually?
Cheers!
December 2nd, 2005 at 6:13 pm
Really great plugin. Thanks.
I’m using it with a modified version of WordPress 1.5.2 that supports Hebrew and right-to-left. I modified some of the files to display things the other way around, but there’s an issue with category name in unicode Hebrew characters. The unicode link doesn’t match the category name coming out of the database.
If I may auggest, consider separating the category key and the category description. The key can be numerical and the description can be any text. That way links won’t be broken when “special” characters appear in the category.
Thanks again for the work.
Tsvika.
December 5th, 2005 at 8:29 am
Hi!
Firstly, thanks for a great plugin. I’ve just started out using it (and WordPress) and it’s filled the gap I needed very nicely.
I do have one (minor) problem that is annoying in that I can’t seem to solve it.
I’m trying to modify pp_album.php to match my theme. I’ve edited the original file (from the plugin folder) and then saved it as “pp_album.php” in my theme’s folder. Problem is that PhotoPress seems to ignore the copy in the themes folder, and just uses the one in the plugin folder.
As a test, I delete the copy in the plugin folder, and I get errors about not finding the file.
Taking a look at the source code of photopress.php, it seems that it should look in the theme folder first, before trying the plugin folder, but it doesn’t seem to be working
Any thoughts on this?
Thanks in advance
– Jondar
December 5th, 2005 at 9:52 am
I have the same problem with thumbnails as the above users. It doesn’t create them and then throws errors when it tries to find their size. This is really too bad because it seems like you’ve created a pretty nice script.
December 5th, 2005 at 10:14 am
I found the problem. Looks like this script doesn’t handle errors well. It should be showing “Filetype not supported. Image not resized.” when images are uploaded. The reason being is that the GD library is missing.
If you are getting the getimagesize warnings then you need to contact your host and have the GD library setup with PHP.
December 5th, 2005 at 6:00 pm
Hello,
I really enjoy the script but I have one little problem. When I upload photos and insert them into a post, they are fine unless they have an “_” in the file name. Then, when I try to insert them into a post, they will not show up when the post is previewed and/or published.
Is there a fix that can be incorporated or am I am going to have to rename a whole lot of photos that I just uploaded?
Cheers! Otherwise, it is great plug-in!
December 6th, 2005 at 1:47 pm
Isaac:
Your plug-in is starting to look Great! I have a featue request.
Please add an option to the Catagory Edit menu to exclude the specified catagory from being displayed on the Album page.
Thanks, keep up the excellent work!
December 7th, 2005 at 11:29 am
Once more, thanks alot for the plugin.. i just updated to 0.8.1.
Im running into trouble tho and on the wordpress forum im not finding the right answer. You added support for the permalinks so i assume you know a big deal about it. The permalinks are not working properly for me. Im running apache 2.0.53 on linux and have mod_rewrite on, FollowSymLinks is set to All. Yet the permalinks require /index.php/ and for photopress they dont work AT ALL
i get a 404 error whenever using it.
If i remove the /index.php/ from settings only the pages links work, not the posts/archived links. Very strange…
Maybe you have an idea about the cause??
Thanks alot
December 7th, 2005 at 5:51 pm
Thanks a lot. Everything seems to work in Firefox, but it doesn’t with IE.
Does anyone share the same problem?
With IE, I got “Images Uploaded
Your images were uploaded, and renamed if necessary. You can enter some information about these images now or just save the defaults and move on to the next screen, where you can insert the images into your post. ”
then click Next, I got “Insert Images”, but no insert button like in Firefox.
Then, I check my server, no image file was actually uploaded.
I tried IE on different computer, but got the same problem. My friend use PhotoPress 0.5x, and it works fine with IE for me.
Some of my screenshots
Thanks, Isaac Wedin
Kaibo
December 8th, 2005 at 7:50 am
I’m also trying to deal with the problem Thad mentions. I suppose an automatated renaming function of pictures (i.e. replacing ‘_’ with ‘-’ for example) would solve it all. If this could be incorporated in the next release of this plugin, that would be great. For the rest, I really love PhotoPress!
December 10th, 2005 at 11:44 am
4 Features which are very important:
- Update sizes! If options changed, mass resize of images from priginals.
- Do not resize if already equal to maximum size. Very important.
- Sharpen settings (for thumbs and resized images)
- It should be possible to define MAX sizes for width and Height but not only for largest side
December 11th, 2005 at 8:23 am
Is it possible to choose how to sort the images in each category, and also how to sort the categories on the album page? Would like to show tha newest pictures first, and to have the categories which was latest updated first.
December 11th, 2005 at 5:53 pm
SHRIKEE, I was having similar problems on one of my blogs. The permalinks were working for everything except Photopress. I compared the .htaccess files (located in the root directory of the blog) and found that the album rewrite rules were missing in one of them for some reason (actually, I had messed up with the .htaccess file but will not go into details).
The album rewrite rules for the blog where Photopress permalinks were working were nestled in the .htaccess file between the last line of search rewrite rules: RewriteRule ^search/(.+)/?$ /index.php?s=$1 [QSA,L]
and the first line of the category rewrite rules:
RewriteRule ^archives/category/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$
Here they are:
RewriteRule ^album/images/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pp_album=main&pp_image=$1&feed=$2 [QSA,L]
RewriteRule ^album/images/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pp_album=main&pp_image=$1&feed=$2 [QSA,L]
RewriteRule ^album/images/(.+)/page/?([0-9]{1,})/?$ /index.php?pp_album=main&pp_image=$1&paged=$2 [QSA,L]
RewriteRule ^album/images/(.+)/?$ /index.php?pp_album=main&pp_image=$1 [QSA,L]
RewriteRule ^album/cat/(.+)/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pp_album=main&pp_cat=$1&pp_page=$2&feed=$3 [QSA,L]
RewriteRule ^album/cat/(.+)/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pp_album=main&pp_cat=$1&pp_page=$2&feed=$3 [QSA,L]
RewriteRule ^album/cat/(.+)/(.+)/page/?([0-9]{1,})/?$ /index.php?pp_album=main&pp_cat=$1&pp_page=$2&paged=$3 [QSA,L]
RewriteRule ^album/cat/(.+)/(.+)/?$ /index.php?pp_album=main&pp_cat=$1&pp_page=$2 [QSA,L]
RewriteRule ^album/cat/(.+)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pp_album=main&pp_cat=$1&feed=$2 [QSA,L]
RewriteRule ^album/cat/(.+)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pp_album=main&pp_cat=$1&feed=$2 [QSA,L]
RewriteRule ^album/cat/(.+)/page/?([0-9]{1,})/?$ /index.php?pp_album=main&pp_cat=$1&paged=$2 [QSA,L]
RewriteRule ^album/cat/(.+)/?$ /index.php?pp_album=main&pp_cat=$1 [QSA,L]
RewriteRule ^(album)/feed/(feed|rdf|rss|rss2|atom)/?$ /index.php?pp_album=main$1&feed=$2 [QSA,L]
RewriteRule ^(album)/(feed|rdf|rss|rss2|atom)/?$ /index.php?pp_album=main$1&feed=$2 [QSA,L]
RewriteRule ^(album)/page/?([0-9]{1,})/?$ /index.php?pp_album=main$1&paged=$2 [QSA,L]
RewriteRule ^(album)/?$ /index.php?pp_album=main$1 [QSA,L]
I copied and pasted this code in the appropriate place (as described above) in the .htaccess file where they were missing, and surprisingly permalinks started working for Photopress!
Taimur
http://www.sarangi.info
December 12th, 2005 at 10:30 am
Have switched to 8.1 PERFECT! Many changes but I will fix that.
Have implement mass resize. Tip: set_time_limit(xxx) will be necessery. My mass resize function is:
set_time_limit(300);
function pp_mass_resize() {
global $table_prefix, $wpdb, $user_level, $pp_options;
$cat_images = pp_images_with_data();
foreach((array)$cat_images as $key=>$array_img) {
$source = $pp_options['photospath'] . ‘/’ . $pp_options['origprefix'] . $array_img['imgfile'];
$destination = $pp_options['photospath'] . ‘/’ . $array_img['imgfile'];
if (!copy($source, $destination)) {
echo “failed to copy $file…\n”;
}
$resized = pp_resize($destination, $pp_options['maxsize'], 0, ”);
$resized = pp_resize($destination, $pp_options['thumbsize'], $pp_options['thumbsize'], $pp_options['thumbprefix']);
}
}
December 12th, 2005 at 10:41 am
One more addon which is also important:
Watch \n (new string break) in descriptions. Now I use .
December 12th, 2005 at 11:02 am
$imgdesc = str_replace(”\n”, “”, $imgdesc);
December 12th, 2005 at 11:03 am
br was skipped by wordpress in comment
December 12th, 2005 at 11:09 am
The /album link does not work. It is still a blank directory even after uploading new pictures. I’m also getting the thumbnail error mentioned in earlier comments.
December 12th, 2005 at 8:36 pm
Nice plugin! I just have one question though; is it possible to make a modification to to code so that images can be placed side-by-side in a post? When i try, it only shows the first image.
cheers,
Damien
March 14th, 2006 at 10:38 am
i have 450px max size of big pictures and if i upload a 200px picture it don’t let it pass!
“Image not resized, is smaller than 450×450
Error uploading earth wind and fire.jpg. Try resizing the image and try again.”
how can i change this?
an btw its the best plugin for uploading images… but this one point makes me mad”
June 7th, 2006 at 1:01 pm
Is it possible to display a random picture rather than a random thumbnail when calling pp_random_image_bare() ?