Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#109 2011-06-16 22:53:03
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
First of all, I want to thank Redbot for this wonderful and effective plugin.
So here is my contribution to help people to use it :p
hudsong a écrit:
The theme I was using (Vitraux) was causing it to break
I just ran into the same problem.
The solution is :- edit
textpattern/theme/vitraux/vitraux.php
- find the line
'$("#page-article input.edit").wrap(\'<div class="input_wrapper" />\');'.n.
(should be line 30) - after this line add
'$("#page-article input#article-image").unwrap();'.n.
Enjoy !
Offline
#110 2011-08-07 13:37:39
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Hi redbot
compliments on your plugin which I’m using for the first time.
I do have a problem though when trying it with the Din admin theme installed: the modal image picker window isn’t as nicely rendered as it is under classic or remora. Seems that not all themes are using the same IDs on the page-top and footer as your plugin is expecting. Gocom has a solution for this, here, in case you are interested.
Best regards!
— Steve
Offline
#111 2011-08-07 18:43:05
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
net-carver wrote:
…I do have a problem though when trying it with the Din admin theme installed: the modal image picker window isn’t as nicely rendered as it is under classic or remora.
Hi Steve!
First of all thank you, I’m glad you find it useful.
Regarding the issue you mention I was aware of the problem, that’s why I chose to support only the default themes (classic and remora). I thought the ones using a non-default theme could just modify two lines in the plugin code but yes, definitely it is not an elegant solution.
As I wrote in the other post the workaround proposed by Jukka should work perfectly. I’ll incorporate it in the next version.
As a temporary alternative you could change two or three lines in the code or use other themes, which retain the default admin html (both vaguely derived from DIN).
Offline
#112 2011-08-07 20:34:50
- net-carver
- Archived Plugin Author
- Registered: 2006-03-08
- Posts: 1,648
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Hi redbot
was unaware of your themes — I’ll check them out. Done. Very nice too!
Thank you.
Last edited by net-carver (2011-08-07 20:53:45)
— Steve
Offline
#113 2011-08-08 11:44:36
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
net-carver wrote:
…was unaware of your themes —
I’ll check them out.Done. Very nice too!
Thanks :)
Offline
#114 2011-08-13 07:05:12
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Unfortunately, I have a client who wants to use Internet Explorer and even in IE8 the checkboxes in the image model window do not appear.
Any ideas why?
Turns out IE only supports nth-child
in IE9.
Alternatives?
Last edited by MattD (2011-08-13 07:08:07)
Piwik Dashboard, Google Analytics Dashboard, Minibar, Article Image Colorpicker, Admin Datepicker, Admin Google Map, Admin Colorpicker
Offline
#115 2011-08-13 09:45:45
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
MattD wrote:
Alternatives?
Yes there are. The nth-child pseudo selectors aren’t needed, especially now when the rows are easier to target due to added tbody
and thead
elements (were added some TXP releases ago). I.e. something like:
iframe.find('#list thead tr').append('<th>$bot_add_image_text</th>');
iframe.find('#list tbody tr').append(
'<td class="add">'+
'<input type="checkbox" name="bot_image_checkbox[]" class="bot_image_checkbox" />'+
'</td>'
);
Offline
#116 2011-08-13 09:53:44
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
MattD wrote:
Unfortunately, I have a client who wants to use Internet Explorer and even in IE8 the checkboxes in the image model window do not appear.
Any ideas why?……
Hi Matt,
Sorry I can’t reproduce the issue, checkboxes are showing for me in ie8, ie7 and even in ie6.
BTW those ie shortcomings you are mentioning are css problems which shouldn’t have anything to do with the plugin since it uses Jquery.
Maybe its simply a jquery version problem?
Is someone else experiencing the same issues?
Offline
#117 2011-08-13 10:10:27
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
redbot wrote:
Is someone else experiencing the same issues?
I posted the above for a reason. Counting number of columns doesn’t always work. There can be different number of columns, ranging from 7 to 9 depending on the number of image authors and the user’s privileges.
Offline
#118 2011-08-13 10:33:16
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Gocom wrote:
…I posted the above for a reason. Counting number of columns doesn’t always work. There can be different number of columns, ranging from 7 to 9 depending on the number of image authors and the user’s privileges…
Hi jukka,
sorry I didn’t read your post.
Anyway you are right, the plugin was written for earlier versions of txp so it has still some legacy jquery targeting: I’ll do an update in the next version.
Regarding the issue you mention with the number of columns depending on the number of image authors and the user’s privileges, it was already addressed, even if in a more convoluted way.
Thank you again for the tip!
Last edited by redbot (2011-08-13 10:36:49)
Offline
#119 2011-08-13 12:21:16
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
redbot wrote:
Regarding the issue you mention with the number of columns depending on the number of image authors and the user’s privileges, it was already addressed, even if in a more convoluted way.
If that’s the case, then wonderful :)
Thank you again for the tip!
Hopefully I don’t come out as too much of whiny little pain-in-the-butt.
Offline
#120 2011-08-13 12:48:24
- redbot
- Plugin Author
- Registered: 2006-02-14
- Posts: 1,410
Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab
Gocom wrote:
….Hopefully I don’t come out as too much of whiny little pain-in-the-butt.
LOL,
anyway its not the case, your suggestions are always brilliant and helped me a lot so please don’t stop “whining”, I really appreciate it.
Offline