Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Zanza wrote:
Two things:
- Noticed a conflict between your plugin (v 0.5) and msd_admin_datepicker. When the latter is active, “choose image” is showing twice, and 3 thumbs appear when there is 1 article image. More, delete and edit icons are not working. Disabling datepicker solves (I will post that in the datepicker thread, too, but you may want to know this).
It’s because we both add jquery-ui to the page I believe. I’ll look at fixing it.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#77 2011-02-10 19:52:20
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Zanza wrote:
Two things:
- Noticed a conflict between your plugin (v 0.5) and msd_admin_datepicker. When the latter is active, “choose image” is showing twice, and 3 thumbs appear when there is 1 article image. More, delete and edit icons are not working. Disabling datepicker solves (I will post that in the datepicker thread, too, but you may want to know this).
- Your plugin is not playing nice with ebl-image-edit 2.0. When I choose to edit an image and try to use ebl’s tools, the plugin loops in the modal layer and nothing happens.
Thanks Zanza,
For a short while I dreamed there were no issues but it was too good to be true…
Anyway I’ll install msd_admin_datepicker ASAP and see if I can do something.
I’ll do the same with ebl-image-edit 2.0. I thought I already tested the two together but clearly I was wrong.
Great job anyway.
Thank you
edit
Oops, sorry Matt I didn’t see your post and I answered here
Last edited by redbot (2011-02-10 20:04:22)
Offline
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
As an iterim solution I’ve updated msd_admin_datepicker (v0.6) so that if you clear out the “jQuery UI URL” value from the plugin preferences it will not load jQuery-UI and all seems to work.
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Thanks Matt (and Redbot), but it’s not working for me, as I’ve written in your thread. Maybe there is something in my install. May knowing that I’m running txp in a subdirectory help any of you?
Offline
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Ok, this is working, but I can’t use the sorting option for the thumbs, of course. Also, the same can be obtained if I rename your custom script in a way that your plugin can’t load it. Maybe Matt’s and you customization should be merged or separated from jquery ui, I don’t know.
Last edited by Zanza (2011-02-10 21:27:12)
Offline
#81 2011-02-10 23:14:18
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Zanza wrote:
Ok, this is working, but I can’t use the sorting option for the thumbs, of course.
Er, sorry maybe I was not clear enough. This was intended to make the sortable work.
Just to be sure, I meant to delete only the line with:
if (jQuery.ui) {
and the corresponding brace at line 323, not the code inside them.
Another solution could be to go here and build your ui script including sortable and datepicker. Then you can make both plugins point to the same ui script.
(Consider I have still not installed Matt’s plugin – to few free time today)
Last edited by redbot (2011-02-10 23:26:24)
Offline
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
My plugin does not use a custom jQuery UI script. But by default gets jQuery UI from Google’.
Maybe the solution is not uploading the jquery-ui script included with bot_image_upload?
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Matt
I tried, but the sorting doesn’t work, then.
Redbot
Actually I didn’t understand what you meant. Even now it isn’t working, though. Same effect than removing the entire block. :(
About bulding a custom script, never tried, maybe tomorrow I’ll give it a spin.
All
I’ve just noticed that your plugins are pointing to two different version of legacy jquery script. Matt’s pointing to 1.7.2, Redbot to newer 1.8.9 version. Could that be an issue?
Offline
#84 2011-02-10 23:59:59
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
MattD wrote:
My plugin does not use a custom jQuery UI script. But by default gets jQuery UI from Google’.
Maybe the solution is not uploading the jquery-ui script included with bot_image_upload?
Ok Matt, this is the solution. I came to the same conclusion in a more convoluted way.
So the only thing to do is to delete this line in my plugin (around line 292):
<script type="text/javascript" src="$bot_iu_ui_path"></script>
And everithing should work because msd_datepicker loads the entire ui script
edit I tried, it works :)
Last edited by redbot (2011-02-11 00:08:05)
Offline
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
That worked for me also. If it doesn’t work for Zanza then maybe there is a third plugin loading jQuery UI?
You can make my plugin use a later version of jQuery UI by updateing the url in the plugin preferences.
Last edited by MattD (2011-02-11 00:15:01)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#86 2011-02-11 00:53:04
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
MattD wrote:
That worked for me also. If it doesn’t work for Zanza then maybe there is a third plugin loading jQuery UI?
You can make my plugin use a later version of jQuery UI by updateing the url in the plugin preferences.
Matt,
I’m sure this will work for Zanza too. My previous suggestions were just attempts to localize the problem and should be ignored.
These plugins can peacefully live together. I’ll repeat how for clarity:
The only thing to do is delete this single row form bot_image_upload, nothing more:
<script type="text/javascript" src="$bot_iu_ui_path"></script>
P.S.
I’ll add this workaround in the plugins help
Last edited by redbot (2011-02-11 02:03:37)
Offline
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
It does work indeed! Thanks to you all! Great job! :)
Update There still is the problem with ebl plugin not working inside of modal layer, of course.
Last edited by Zanza (2011-02-11 09:57:50)
Offline
#88 2011-02-11 09:59:40
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Zanza wrote:
It does work indeed! Thanks to you all! Great job! :)
Great! Thank you for the help.
Now I just need some time to see what’s wrong with bot_iu + ebl_img
Offline
#89 2011-02-12 13:22:19
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Version 0.6 is out
Changes:
- Now works with ebl-image-edit
- Help edited. Now includes instructions to deal with other plugins using jQuery ui.
For the record the solution to the last issue was simpler than the one I suggested here.
You just have to configure the plugin setting the ui path to ‘’.
As usual download from first post.
P.S.
If you are upgrading from v 0.5 you don’t need to re-upload the ui script.
Last edited by redbot (2011-02-12 13:27:39)
Offline
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Thanks for a great plugin.
Could anyone please tell me how to define a custom field? I’ve tried various options such as:
‘bot_iu_fields’ => ‘#custom_field_1’ and ‘bot_iu_fields’ => ‘#custom_1_set’ – but no success as yet.
I’m using glz_custom_fields BTW.
Thank you.
Offline