PhotoQ Wordpress Photoblog Plugin Update 1.2.1
March 15th, 2008
This is a small bugfix for PhotoQ 1.2 fixing a bug that could under some conditions provoke empty width and height attributes. Thanks Monika for bringing this to my attention.

Georg thinks:
Cool, now posting the top image from the queue manually works with WP2.3.3. Thx.
Another question: how did you do your “archive”-page at your blog? Where all your photos are shown in a mosaic. Tried to achive something similar but couldnt make it.
thx!
Georg writes:
Sorry for doubleposting and all the questions. But I got another one:
The jpg-compression is quite low (bad image quality). I changed the jpg compression according to http://wordpress.org/support/topic/132822 but it didnt change the recompression made with photoq. Where can I change it?
And an addition to the mosaic thing I found a brief tutorial how to achieve this: http://geek.marinegirl.co.uk/2007/04/22/photoblogging-with-k2-part-2-thumbnail-archives/
PhotoQ adds the thumbnail-info to the Optional Excerpt. So it could work. Except: the image-size for the thumbnail is in my case 800px. So I cant use the normal thumbnail – they are too big. Any ideas?
whoismanu says:
georg,
yes for the archive page you need to do something like this. in my case it is actually the categories template (category.php) that i changed to show all posts in the photo category. but you can of course do the same with the archive template. you have to have something like this in your template:
<?php /*hack to show all posts*/
if (is_category() || is_archive()) {
$posts = query_posts($query_string.'&nopaging=1'); } ?>
<?php while (have_posts()) : the_post(); ?>
<div class="thumbnail left"><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php echo get_the_excerpt(); ?></a></div>
<?php endwhile; ?>
The rest is then html and css.
whoismanu says:
georg,
concerning jpg compression, photoq uses wordpress’ functions to create the thumb. so if you change this, it should also change the compression used by photoq.
concerning thumbs. as you have noticed there are right now only two image sizes in photoq. i guess your thumbs are so big because you wanted the other image size to be the original image. well, right now two sizes is all you can get. but i promise the next major version of photoq will have multiple image sizes. this feature is right now at the top of my priority list, so it will come.
until then i only have the following lame advice to you (sorry): do it as i do, upload a scaled version of your images (less upload time and you get the high quality jpeg compression for free if you use good software to scale it). use the thumb feature to actually create thumbs. of course, you won’t have your full size images on your webpage anymore…
Georg thinks:
Cool thx! Actually, it just displays nothing when I paste your code (but no error-message either). But I tried to understand a bit and copied here and there and now got this code:
<?php
/*
Template Name: PHArchives
*/
?>
<?php get_header(); ?>
<?php query_posts( ‘posts_per_page=-1′ ); ?>
<div id=”archives”>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class=”photo”>
<a href=”<?php the_permalink(); ?>”><?php the_excerpt(); ?><?
php echo c2c_get_custom(’Location’); ?></a>
</div>
<?php endwhile; ?>
<?php endif; ?>
</div>
<?php get_footer(); ?>
And this works. Except of course, the images are 800px wide. But thats the thing with the image sizes. Thx for planing to change this. Also because at the Manage-posts-site inside WP, the fullsize-thumbs are being displayed. Mine are, as mentioned, 800px, so the layout is pretty screwd. But it works and it is just inside the admin-panel, so no harm done.
I tried to scale the images down by just changing the optional excerpt to the size I want (by size tags, not changing the actual size of the image, I know, bad, but could have been a way) but this also scales down the thumbnail at the normal page, becuase PhotoQ uses the excerpt to display the actual post.
Well well. I think I will go with a custom field, where I fill in the code for a small thumbnail and then use this for the “mosaic page”. I think this will work.
Thx for your tips and time.
Ed writes:
The plug-in sounds great. I can’t wait to try it on 2.5 when I get home. Just one question. Is there a thumbnail option that allows cropping of the image to create square thumbnails? Thank you!
whoismanu says:
ed,
no, for the moment there is no cropping of thumbnails implemented. you can, however, produce an effect like this by using css “overflow: hidden” in your template.
Georg writes:
the reordering of the queue doesnt really work, does it? I can change the order, but it is not saved in any way.
Georg writes:
And I get a problem with the cronjob-posting when activating the wordpressbackup plugin. I think because it is triggered by site visitors. But thats more of a general problem, not a bug.
(please merge)
Klaus writes:
Hi Manu,
I finally got everything running – from batch upload to cron job and it is beautiful.
I get a error message, though everything is working.
Maybe you have an idea:
Fatal error: Call to undefined function: date_timezone_get() in /home/virtua/public_html/wp/wp-content/plugins/whoismanu-photoq/classes/PhotoQ.php on line 1592
Latest version of PhotoQ, WP 2.5, Php 4.44
And a suggestion. It would be cool, to be able to sort the images after upload – maybe some ajax functionality? Similar to how it’s being done in the latest Version of Nextgen Gallery. It would be a great help.
Cheers and thanks again! Klaus
Dade Williams thinks:
i have a problem with the new photoq i can batch upload 100 bucks but only 20 of them will even be displayed in queue
dade Williams thinks:
lol not bucks pics lol
Niels thinks:
@Georg post nr 10
You don’t have the right php version.date_timezone_get() needs php 5.1.0
http://nl3.php.net/date_timezone_set
And sorting the photos after upload with AJAX, that is already possible or do you mean something else?
whoismanu says:
klaus,
as niels wrote, sorting with ajax should be there!?
klaus, niels,
thanks for notifying me about the date_timezone_set thing. photoq should work with php 4 and 5, so i’ll check whether i can replace this function with another one that works flawlessly on both versions.
whoismanu says:
dade,
normally there should be no limit. is it always exactly 20 or does it vary? anyway, i’ll try to look into that issue.
whoismanu says:
georg,
according to me (and niels in post 13, i guess as well) ajax sorting of uploaded photos works.
not sure whether i understood your problem with cronjobs, though. do you use a plugin to trigger the cronjobs or do you setup a cron tab on your webserver?
Dade Williams says:
it varries
Georg says:
@niels 13
yeah, I get this error but it works just fine so i didnt look into that.
Sorting exists, i know, but it doesnt work. I can rearrange the photos in the queue but when i reload the page the queue is in the old order.
@16 manu
I post a photo with a cronjob setup on my webserver (using cpanel). The backupwordpressplugin is triggered by sitevisitors (I think) to be not dependend on cronjobs. So when the cronjob for posting a photo is triggered in the middle of the night the backup-process is triggered and protects the files from changing to make a consistant backup. PhotoQ then gives an error that it cant write or change the files to post the photo. At least thats the way I think it works or doesnt :P
whoismanu says:
georg,
thanks a lot for your comments. apparently there are other users that have the same issues with queue reordering. i am looking into this, trying to reproduce the error (for me it works, even with different setups).
for the cronjob/backup compatibility problem thanks for pointing this out. i’ll try to look into this as well. is there no way to trigger the backup process at a different time? i guess it isn’t trigger on every visit to your site anyway?
Dade Williams says:
the queue hasnt worked for me i uploaded images 1 2 3 the order came out as 3 1 2 i re-ordered and still got the 3 posted