Textpattern Forum

You are not logged in. Register | Login | Help

#121 2012-01-07 19:13:23

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,396

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

Version 0.6.2 released.

This is mainly a mainteinance release which should fix all bugs found till now.

P.S. Though theme compatibility should be widened I didn’t implement the otherwise-brilliant solution jukka proposed because it introduces more issues than it solves. More specifically it doesn’t consider that many theme authors add additional html containers and correspondong css rules to the images tab, in such a way that removing them (and corresponding css rules) causes all sorts of visual issues (white text on white background etc.).

Download from first post.

Changelog

v. 0.6.2

  • Bug fixed – image thumbnails wheren’t deleted when unchecked in iframe (cf values where correctly deleted though – was only a visual issue)
  • Bug fixed – When hitting the cancel button the sortable ability from the UL list was gone (thanks superfly )
  • Iimprovement – replaced jquery “children()” with “find()” for theme compatibility (“vitraux” theme)
  • Iimprovement – better theme compatibility (“Hive”, “Din” and probably others)
  • Iimprovement – addressed issue with different number of columns depending on the number of authors and privileges (thanks Jukka ) .
  • Updated jquery ui to 1.8.16
  • Help edited

Last edited by redbot (2012-01-07 19:14:00)

Offline

#122 2012-01-09 23:39:31

blur
Member
Registered: 2008-09-08
Posts: 18

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

Hi redbot, can you take a look of this issue?

If bot_image_upload and glz_custom_fields are installed, the bot_image_upload plugin converts some of the select input fields on links to upload images. I was expecting to see a select box with the options of my custom field but i’m getting a “Choose image” link. The html output is:

<select id="custom-2" name="custom_2" class="list" style="display: none; ">
<option value="">....</option>
</select>
<ul class="bot_iu_ul_container"></ul>
<a class="bot_add_image" href="#" title="Choose image">Choose image</a>

EDIT: Forget it. I read on the documentation that the plugin has an option to define witch fields will be used. My bad.

'bot_iu_fields' => '#article-image, #custom-3, #custom-2',

Last edited by blur (2012-01-09 23:46:13)

Offline

#123 2012-01-10 10:03:52

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,396

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

blur wrote:

Hi redbot, can you take a look of this issue?…

Doh! Yes blur you are absolutely right: I’m a moron ;)
The fact is I forgot to reset the preferences I set for testing before packing the plugin.
I’ll amend the file asap (without changing the version number).
For all the others who have already downloaded the plugin, this is not a bug, you simply have to configure it.

Edit: Done, thank you blur!

Last edited by redbot (2012-01-10 10:19:23)

Offline

#124 2012-03-11 22:48:39

THE BLUE DRAGON
Member
From: Israel
Registered: 2007-11-16
Posts: 542
Website

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

Hi, Is there a pretty easy way to limit the number of images base on each field please?
I already added individual class name to each bot_iu_ul_container by doing this:

$("$bot_iu_fields").each(function(){
	var ul_name = $(this).attr('id');
	$(this).parents("p").append('....<ul class="bot_iu_ul_container biu-'+ul_name+'"></ul>');

So now for example I got: ul.bot_iu_ul_container.biu-custom-11
(In which this is also allow me to style each as I want)

And I’m looking to limit the specific fields I want, to a specific number of images please.
I do use the mono/single feature for some, but for others I need to limit to 5,10,3 and so.
I do use limit="integer" attribute in <txp:images> tag, but also will like to limit in the front-side just the same as with the mono/single feature.

Offline

#125 2012-03-13 14:34:28

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,396

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

THE BLUE DRAGON wrote:

Hi, Is there a pretty easy way to limit the number of images base on each field please?

Hi Gil,
unfortunately there isn’t an easy way – at least nothing I can think of right now.
Furthermore these days I’m very busy so I fear I won’t be able to focus on this.
Should I come out with a solution I’ll let you know though.

Offline

#126 2012-03-13 14:42:03

jens31
Plugin Author
From: munich / dtschermani
Registered: 2008-08-25
Posts: 183
Website

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

i dunno if i get, what you acutally want to accomplish..
but i use upm_image to pull out my article images and you can defenetly control the output via the limit attribute..

Offline

#127 2012-03-13 15:44:47

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,396

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

jens31 wrote:

i dunno if i get, what you acutally want to accomplish..
but i use upm_image to pull out my article images and you can defenetly control the output via the limit attribute..

THE BLUE DRAGON wrote

…. I do use limit=“integer” attribute in <txp:images> tag, but also will like to limit in the front-side just the same as with the mono/single feature.d

Hi jens,
i think he has already solved this issue (btw I don’t think you need upm_image anymore). He was asking how to limit the number of allowed images in the write tab not in the bublic site.

Offline

#128 2012-05-22 15:40:41

uli
Moderator
From: Cologne/Köln
Registered: 2006-08-15
Posts: 3,009

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

I wanted to have the image IDs alongside each thumbnail:

Look for

' <a class="bot_image_edit" href="#" title="'.$bot_image_edit_text.'">'.$bot_image_edit_text.'</a>'.

Replace with

' <a class="bot_image_edit" href="#" title="'.$bot_image_edit_text.'">'.$bot_image_edit_text.'</a>'.
								' <span class="bot_image_ident">'.$id.'</span>'.

CSS:

.bot_image_ident {
	float: right;
	padding-top: 0 !important;
	color: #aaa;
	}

——————————————
The above works for saved articles you re-open.
The below code covers those cases when you insert new images:

Look for

' <a class="bot_image_edit" href="#" title="$bot_image_edit_text">$bot_image_edit_text</a>' +

Replace with:

' <a class="bot_image_edit" href="#" title="$bot_image_edit_text">$bot_image_edit_text</a>' +
											' <span class="bot_image_ident">' + imageId + '</span>' +

Last edited by uli (2012-05-24 17:56:29)


In bad weather I never leave home without wet_plugout, smd_where_used and adi_form_links

Online

#129 2012-06-14 13:06:20

Kossatsch
Member
From: St. Wolfgang
Registered: 2004-04-01
Posts: 187
Website

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

Hi,

is there any way to get this work with a ‘sites’ installation? I have no bot_image_upload below the extensions tab to install this, and any change of ‘bot_iu_fields’ seems to blow off this plug-in.

Best regards

Torsten


txp at irox.de since spring 2004 (g1.17) & at roxomatic since 2006.

Offline

#130 2012-08-30 15:43:45

photonomad
Member
Registered: 2005-09-10
Posts: 257
Website

Re: bot_image_upload: upload, sort, edit, show images in ‘write' tab

bot_image_upload does not currently work in Textpattern 4.5:

- entire admin interface (including the image tab and all tabs at top of page) show up in the pop-up window (div#bot_iu_iframe_container)

- bot_image_upload “Add” column is missing from view in the images tab, so there is no way to select/add images

Offline

Board footer

Powered by FluxBB