Page 1 of 1

Re: quickblog.tpl question

Posted: Wed Mar 19, 2008 1:57 pm
by garvinhicking
Hi!

Yes, copying it to your template directory is preferable.

jhead is a command line tool like imagemagick; if it exists (and is in your $PATH) it will be used automatically, if you enabled the config option of the plugin.

Regards,
Garvin

Posted: Wed Mar 19, 2008 4:35 pm
by garvinhicking
Hi!

Exactly that option, yes. Is jhead executable for your PHP? Is your PHP allowed to call external commands? (SafeMode blocks this...)

You might want to patch the PHP file to see where jhead is called and see if that produces valid output?
Also I discovered a "bug". If you use the quickblog action, it created a filename.quickblog.jpg intermediate sized file. When you use the media manager after to delete the filename.jpg, it erases the file, the thumbnail, but leaves the filename.quickblog.jpg file sitting in the directory
Ah, yes. The plugin should check for those files upon removal, this needs fixing.

Regards,
Garvin

Posted: Thu Mar 20, 2008 9:54 am
by garvinhicking
Hi!

The preference of the PHP function is actually somewhat different; It's easier to detect if PHP is available than checking $PATH if you have jhead, and even then your provider might block external PHP commands.

So if jhead were preferred, the majority of servers (which do not have jhead) will first run a non existing programm, maybe spew out an error, and only then would use the existing PHP option.

I think the better way for this would be to set the preference of this through a seperate configuration option for the plugin. I'm currently lacking time to implement that, but I'll see if I find time for this the next week. Of course, patches are also appreciated ;)

Regards,
Garvin

Posted: Mon Mar 24, 2008 9:32 pm
by garvinhicking
Hi!

Yea, just Easter got inbetween. I'll commit your patch the next days!

Regards,
Garvin

Posted: Tue Mar 25, 2008 2:02 am
by Don Chambers
Rob - your posts did not come off as pushy, and - while not wanting to put words into Garvin's mouth - I seriously doubt if he took it that way!!!

Keep up the great job of making contributions where you can!!!! This is a community afterall, and we all benefit from improvements such as you have suggested!!! :wink:

Posted: Tue Mar 25, 2008 3:01 am
by Don Chambers
Rob - your contributions are well known by those that pay attention to such things, myself included!!!!!!!!! In fact, you keep up this great work, and I might well be asking YOU for help since php isn't my expertise!!! :lol:

Posted: Tue Mar 25, 2008 9:51 am
by garvinhicking
Hi!

No pushing felt here across the ocean :)

All is well, and many thanks for your contribution, just like Don already gave you in advance *g*

Read: Just committed :)

Best regards,
Garvin