PhotoQ Wordpress Photoblog Plugin Update 1.1.5b
Update: PhotoQ v1.2 is a newer version of the same plugin but offering more features. Please check out and download the new version instead of this one, you won’t regret it.
This latest version of PhotoQ WordPress Photoblog Plugin brings two new features: the possibility to include the description of a photo directly in the content of the post and the option to have PhotoQ truly resize an uploaded picture instead of delegating this to the web browser.
This post only covers changes in version 1.1.5b. For a full picture and more details on PhotoQ please check out the post “PhotoQ WordPress Photoblog Plugin v1.1b - Now Including Batch Uploads”.
Upgrading to PhotoQ WordPress Photoblog Plugin v1.1.5b
- Have a look at your PhotoQ options, maybe write them down in the case some of them get overridden.
- Simply copy the new “whoismanu-photoq” folder over the old one.
- Replace your old wimpq-cronpost.php file.
- Go to Options->PhotoQ
- You will find a new option “Resize only in web browser” at the end of the “Image sizes” section. If this option is checked, PhotoQ will behave like it did in the past i.e., it will only set the “width” and “height” attributes of the <img> tag without resizing the original photo. It is assumed that the uploaded image already has the correct size. If this is not the case, resizing is left to the web browser which can lead to bad results. If this option is not checked, PhotoQ will resize any uploaded photo according to the parameters given under “image size”.
- A small side note: to resize a photo, PhotoQ relies on functions provided by WordPress. Now, WordPress uses the GD library to manipulate images which is known to have its limits. If you are not satisfied with the quality of the resized photos, do the resizing before uploading (using Photoshop or similar) and check the option “Resize only in web browser”.
- Another small side note: the size of images that can be uploaded is constrained by the php settings of your web hosting provider. If you plan to upload large photos without resizing them before upload you might get an error message because of this. In this case you can try whether putting something like
php_value upload_max_filesize 8Minto your .htaccess file helps. - You will find another new option “Include photo description in post content” in the “Further Options” section. If you check this option, the description of a photo is included directly in the content part of a post just after the photo. The description is placed inside a <p> tag with class name “photo_description”, so you can easily style it with CSS. This should allow you to use PhotoQ with a lot of existing themes without having to tweak them at all. If you don’t check this option, PhotoQ behaves as it did before and the description is stored in a custom field called ‘descr’ along with the post. In this case you need a method in your theme to access the custom field.
- Make sure the upgrade process didn’t override any of your old options. If it did, change them back to what you want them to be.
Update: Including the description in the post can introduce a <p> tag that is not closed which is invalid XHTML. Note that I cannot do much about this as it is not a bug of PhotoQ but of Wordpress. A bug report has been filed and the problem should be fixed soon. Anyway, most if not all web browsers seem to render it correctly despite the unclosed tag.
Before reporting a problem, please read at least the "Requirements" as well as the "Troubleshooting" sections of the plugin description. The latest PhotoQ versions do not work with Wordpress versions lower than 2.5, so please do not report any errors if you use a Wordpress version lower than 2.5. Thanks a lot for your help and for sticking to these guidelines.

Dade thinks:
hey there do not want to be a pest just wondering when the next version will be coming out to fix the issue i have
thanks
Ramón Cutanda writes:
Well… I have just installed it but I have just started to love it. I still need some more integration work, but I think I’m on the right way!
:)
PhotoQ Wordpress Photoblog Plugin v1.1b - Now Including Batch Uploads thinks:
[...] 25.11.2007 - 1.1.5b: PhotoQ is now able to truly resize photos. It now also integrates with existing themes more easily because of the new option to directly include the description in the post content. Category display bug when updating queue has been corrected. [...]
Niels thinks:
To add exif data
in the table ‘wp_photoq’ add in the end a field called ‘q_exif’.
in photoq.php in the upload_photo function:
below ‘$file = wp_handle_upload($_FILES[’Filedata’], $overrides);’
add:
$exif = exif_read_data($file[’url’], 0, true);
$ser_exif = serialize($exif);
add the fields and the value to the inser query
$wpdb->query(”INSERT INTO $this->QUEUE_TABLE (q_title, q_imgname, q_position, q_slug, q_descr, q_tags, q_exif) VALUES (’$title’, ‘$filename’, ‘”.($q_length+1).”‘, ‘$slug’, ‘$descr’, ‘$tags’,’$ser_exif’)”);
in the post_next() function below the ‘insert meta (custom fields)’ part:
//insert exif data
$result = $wpdb->query(”
INSERT INTO $wpdb->postmeta
(post_id,meta_key,meta_value)
VALUES (’$post_ID’,’exif’,’”.$wpdb->escape($photo_post->q_exif).”‘)
“);
And at last in the template where you want to see the exif data
$exif is now a array, you can do with it what you want.
$exif = unserialize(c2c_get_custom(’exif’));
for the c2c_get_custom call you need the ‘get custom field values’ plugin
http://www.coffee2code.com/archives/2004/06/30/plugin-get-custom/
just like to get the description.
Kingsoul says:
i installed your plugin (wp 2.2) but i couldn’t get it to work, so I installed it and now the default wordpress image uploader is not putting the images in the right year directories. all of the images are going to “wp-content/uplaods” as oppose to “wp-content/uploads/2008″. What do i need to do fully remove the plugin and get my uploader working correctly again. thanks.
whoismanu says:
kingsoul,
please check out comments 17-19 on the following post. I guess this will solve your problem.
Kingsoul thinks:
i think that is a little different then what i’m trying to do. I’m trying to completely remove the plug-in as if it was never installed.
before i installed the plugin my path was:
http://www.konsolekingz.com/wp/wp-content/uploads/2008/01/dsc_50591.jpg
now after installed the plugin and tried to remove it i get this as my path:
http://www.konsolekingz.com/wp//dsc_50591.jpg
i removed the tables form the database. I have tried to re-upload the source files but i’m not having any luck. I’m not changing the correct files. I need to know what to remove and change. Thanks.
whoismanu says:
kingsoul,
so what is your upload folder option under options->misc->”Store uploads in this folder”?
bachtiar.net thinks:
photoblog akhirnya pake whoismanuphotoq…
setelah pke YAPB kmarin malah kocar kacir templateku…akhirnya nemu whoismanu photoq plugin wordpress buat photoblogging…instalnya ga ribet…ringan…ga ngrusak layout…fungsi thumbnail nya juga ada dan gak neko2…bisa lan…
Jesper thinks:
Hi,
Seems like this plug-in is an exact match for what I’ve been looking for. Thanks for taking the time to make it for us.
I have however once major problem. I too, cannot seem to enter any info for the images. The upload completes and I hit the “enter info” button. The next page to load is called “manage photoq - enter info” but no images are present and I cannot enter anything as there are no fields to fill.
I’ve set rw access for owner/group/other for both dirs, I’ve checked that the dirs are correct. I did the htaccess mod too. The files end up in my qdir, but stays there.
I use Wordpress 2.3.3
Hope you have a suggestion :)
Thanks,
Jesper
Georg says:
The cronjob-feature is awesome! Thx.
A feature request: Option to link the photo to the original file (with original size) in case someone wants to see it in full resolution (or wants to use it as a desktop background e.g.). This is kind of a must have for me.
And the combination with http://blog.vimagic.de/exif-zoom-wordpress-plugin/ this plugin would be great, but not so important.
whoismanu? photoblog - PhotoQ Wordpress Photoblog Plugin v1.2 - Ready for Wordpress 2.5 says:
[...] 25.11.2007 - 1.1.5b: PhotoQ is now able to truly resize photos. It now also integrates with existing themes more easily because of the new option to directly include the description in the post content. Category display bug when updating queue has been corrected. [...]
whoismanu? photoblog - PhotoQ Wordpress Photoblog Plugin v1.2 - Ready for Wordpress 2.5 says:
[...] 25.11.2007 - 1.1.5b: PhotoQ is now able to truly resize photos. It now also integrates with existing themes more easily because of the new option to directly include the description in the post content. Category display bug when updating queue has been corrected. [...]