forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Joachim Müller on June 17, 2009, 06:28:50 pm

Title: External edit (Fotoflexer) for cpg1.5.x
Post by: Joachim Müller on June 17, 2009, 06:28:50 pm
This plugin allows you to edit the images in your gallery using the Flash-driven external online image editor from Fotoflexer.com

After installing the plugin (using the plugin manager as suggested in the documentation that comes with coppermine), you will notice an extra button on the intermediate image display screen, right next to the buttons that enable you to crop & and rotate, edit file information and delete the file. The button is labelled "Edit file in Fotoflexer" and will show up for the admin and for the registered user if the user has got permissions to edit the file, i.e. if he's browsing an image that he/she uploaded. The button will only be displayed beneath files that the online image editor Fotoflexer is capable of editing.
After clicking on the button your image will be sent to the advanced web 2.0 image editor on the site of Fotoflexer.com, where you can perform all kinds of edits. When clicking the save-button there, the edited image will be sent back to your site, where some authentification checks are being performed and the file is being saved, overwriting the one on your server (without further prompts, so make sure you know what you're doing).
Right now, this plugin is experimental - there have been no tests performed how it performs and there are certainly bugs in it - use at your own risk.

Originally, I was trying to use the new API provided by http://aviary.com, but that turned out not to work yet, so I went for the API from fotoflexer.com. Please understand that I'm not affiliated with Fotoflexer and that I have no control over their services. Things may or may not work as expected. This plugin comes with absolutely no warranties.
Fotoflexer currently display a banner on the editor screen, so if that bothers you, you should not use the plugin. If you have privacy concerns, read the legal stuff on fotoflexer's home page (http://fotoflexer.com/).

There is still much room for improvements in this plugin, and I would love to hear your feedback, but please understand that there is no guarantee that I will be able to implement a particular feature. What I'm interessted in most is the security-related stuff (thhe token creation and token checking using a sort-of database driven session) - I'd love to hear feedback and code review from coders. Thanks in advance.

Download: http://sourceforge.net/projects/coppermine/files/Plugins/1.5.x/cpg1.5.x_plugin_external-edit_v2.5.zip/download
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: phill104 on June 17, 2009, 10:10:22 pm
Fantastic idea. I will carry on using Photoshop at home but when away on my company laptop or for users that have no image editing software this could be really good. I'm going to give it a good go tonight.
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: Joachim Müller on June 18, 2009, 08:24:08 am
Phill, thanks for your readiness to review.
The version I had released initially (v2.2) contained a bug that sent improper data to fotoflexer, leading to an error message there. This bug is fixed in v2.3. I have updated the attachment in my initial posting.
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: Joachim Müller on June 18, 2009, 09:47:25 am
Added the plugin to the SVN repository - see http://coppermine.svn.sourceforge.net/viewvc/coppermine/branches/cpg1.5.x/plugins/external_edit/
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: Αndré on June 18, 2009, 11:33:55 am
I fixed a little icon display bug in r6184.
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: autephex on September 18, 2010, 08:00:09 pm
This appears to be hardcoded to only work with a specific URL/image..

codebase.php has the following line in it:
urlencode('http://osterburken.net/galerie/albums/konzert/05/just_rock/gg02.jpg');

and this is the only image that displays when using the external editor.. any chance of getting this fixed? or any suggestions on what to change in the code?
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: Αndré on September 22, 2010, 02:02:22 pm
Autephex, please have a look at the code:
Code: [Select]
        //$data['menu'] .= '?ff_image_url=' . urlencode($CONFIG['site_url'].$CONFIG['fullpath'].$data['filepath'].$data['filename']);
        $data['menu'] .= '?ff_image_url=' . urlencode('http://osterburken.net/galerie/albums/konzert/05/just_rock/gg02.jpg'); // Comment out the line above and uncomment this line for testing purposes

Seems that somebody accidentally commented out the wrong line. Just replace those two lines with
Code: [Select]
        $data['menu'] .= '?ff_image_url=' . urlencode($CONFIG['site_url'].$CONFIG['fullpath'].$data['filepath'].$data['filename']);
        //$data['menu'] .= '?ff_image_url=' . urlencode('http://osterburken.net/galerie/albums/konzert/05/just_rock/gg02.jpg'); // Comment out the line above and uncomment this line for testing purposes
and everything should work fine.
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: Davide Renda on September 23, 2010, 03:49:22 pm
As said earlier one, absolutely necessary when not at my own home pc (often...)
Attached my italian translation, as usual unzip and copy in /LANG directory.
Thanks!
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: Joachim Müller on October 15, 2010, 05:18:37 pm
Thank you for your contribution. Both the fix for the issue with the hard-coded test string as well as your language file has gone into the subversion repository and into v2.5 of the plugin (download link in initial posting). Thanks to all.
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: François Keller on February 26, 2011, 10:03:58 am
French translation (by FBleu) added in the v2.5 in the intitial post
Title: Re: External edit (Fotoflexer) for cpg1.5.x
Post by: ninoo on January 31, 2012, 11:58:01 pm
Hello
fantastic this implementation.
Just one question: I would like to expand the window that opens with "External edit"
with certain resolutions not all icons can be seen completely.

Can you help? thanks