Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#145 2012-10-14 16:29:41

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

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

Maybe it is interfering with some plugin?
Could you please install wet_plugout and check if bot_image_upload works with all other plugins disabled?

Last edited by redbot (2012-10-14 16:30:46)

Offline

#146 2012-10-14 16:58:36

gpskip
New Member
Registered: 2012-10-05
Posts: 8

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

redbot wrote:

Maybe it is interfering with some plugin?
Could you please install wet_plugout and check if bot_image_upload works with all other plugins disabled?

You are correct. lam_article_info and lam_browse_by are creating a conflict with bot_image_upload. Have users encountered this before?

Offline

#147 2012-10-14 17:15:05

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

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

gpskip wrote:

You are correct. lam_article_info and lam_browse_by are creating a conflict with bot_image_upload. Have users encountered this before?

Phew, at least we found the culprit.
I haven’t examinet the code but I wonder how could the latter interfere with the ‘write’ tab.
Anyway you could replace it with the newer plugin smd_browse_by“http://forum.textpattern.com/viewtopic.php?id=36784” by Bloke which offers similar and more advanced functionalities.

Regarding lam_article_info I never used it nor I had any compatibility report before. Maybe there is a newer plugin for this also?

Edit Ah ok there is another plugin by Bloke as usual. Check this out: smd_article_stats

Last edited by redbot (2012-10-14 17:17:44)

Offline

#148 2012-10-14 17:28:24

gpskip
New Member
Registered: 2012-10-05
Posts: 8

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

Great. Both of the ‘smd’ plugins replaced the “lam’ versions.

Now that I have bot_image_upload going, it is supposed to provide image resize functionality, correct?

Thanks a mil.

Offline

#149 2012-10-14 17:37:48

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

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

gpskip wrote:

Great. Both of the ‘smd’ plugins replaced the “lam’ versions.

cool

Now that I have bot_image_upload going, it is supposed to provide image resize functionality, correct?

No, sorry, for this you’ll need ebl_image_edit wich however should work fine togheter with bot_image

edit: or maybe smd_thumbnail? it is a bit different but maybe can be useful in your case

Last edited by redbot (2012-10-14 17:40:52)

Offline

#150 2012-10-15 07:18:20

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

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

Good Morning

No matter what I do, I can only view 1 photo


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#151 2012-10-15 08:10:02

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

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

SuMu wrote:

…No matter what I do, I can only view 1 photo

Hi,
I need more infos, can you post here:

  1. the exact code you are using now to show the image(s)?
  2. the contents of the two configuration lines starting with ‘bot_iu_fields’ and ‘bot_iu_mono_list’?
  3. the html output in your public site for the second image

Offline

#152 2012-10-15 12:04:25

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

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

Hi redbot

'bot_iu_fields' => '#article-image',// fields to be used (comma separated | use #custom-n for custom fields)
				'bot_iu_mono_list' => '#second-image', // fields with single image (comma separated | use #custom-n for cfs)

custom field: second-image

Code to show the images

<txp:if_article_image><div class="thumb">
  <txp:permlink class="thumbs" title='<txp:title />'>
    <txp:article_image thumbnail="1" escape="html" />
  </txp:permlink>
<txp:image_info type="caption" wraptag="p" class="img_cap" id='<txp:custom_field name="article_image" />' />
</div>
</txp:if_article_image>
</txp:if_individual_article>
<txp:if_article_list>
<txp:if_excerpt>
<txp:excerpt />
<p class="morelink"><txp:permlink>&rarr; Den ganzen  Artikel lesen</txp:permlink></p>
<txp:else/>
<txp:body />
</txp:if_excerpt>
<txp:else/>
<txp:excerpt />
<txp:if_article_image><div class="mitte"><txp:article_image class="" /><txp:image_info type="caption" wraptag="p" class="img_cap" id='<txp:custom_field name="article_image" />' /></div></txp:if_article_image>
<txp:body />
<txp:if_custom_field name="second-image">
  <txp:if_article_image><div class="mitte"><txp:article_image class="" /><txp:image_info type="caption" wraptag="p" class="img_cap" id='<txp:custom_field name="second-image" />' /></div></txp:if_article_image>
</txp:if_custom_field>
</txp:if_article_list>

Here is the html live


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#153 2012-10-15 19:54:28

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

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

Hi again,
I see I wasn’t clear enough.
Anyway, based on the code you posted, this should work:

1) Replace the snippet you pasted with this:

	<txp:if_article_image>
		<div class="thumb">
			<txp:permlink class="thumbs" title='<txp:title />'>
				<txp:article_image thumbnail="1" escape="html" />
			</txp:permlink>
			<txp:image_info type="caption" wraptag="p" class="img_cap" id='<txp:custom_field name="article_image" />' />
		</div>
	</txp:if_article_image>
</txp:if_individual_article>
<txp:if_article_list>
	<txp:if_excerpt>
		<txp:excerpt />
		<p class="morelink"><txp:permlink>&rarr; Den ganzen  Artikel lesen</txp:permlink></p>
	<txp:else/>
		<txp:body />
	</txp:if_excerpt>
<txp:else/>
	<txp:excerpt />
	<txp:if_article_image>
		<div class="mitte">
			<txp:article_image class="" />
			<txp:image_info type="caption" wraptag="p" class="img_cap" id='<txp:custom_field name="article_image" />' />
		</div>
	</txp:if_article_image>
	<txp:body />
	<txp:if_custom_field name="second-image">
		<div class="mitte">
			<txp:image class="" id='<txp:cusdtom_field name="second-image" />' />
			<txp:image_info type="caption" wraptag="p" class="img_cap" id='<txp:custom_field name="second-image" />' />
		</div>
	</txp:if_custom_field>
</txp:if_article_list>

Then, in your preferences, replace as well the two lines you posted with these:

'bot_iu_fields' => '#article-image, #second-image',// fields to be used (comma separated | use #custom-n for custom fields)
'bot_iu_mono_list' => '#article-image, #second-image', // fields with single image (comma separated | use #custom-n for cfs)

Offline

#154 2012-10-16 04:47:13

SuMu
Member
From: Germany - Wuppertal
Registered: 2008-03-06
Posts: 242
Website

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

Thank You very much :-)

@ Redbot :-)

Now I can only select one image …
*I will select two, but I can choose only one – *

Now is not that bad, but it would have been nice

Last edited by SuMu (2012-10-16 05:06:11)


viele Grüße
SuMu

Psychomuell + blogZicke

Offline

#155 2012-10-16 13:38:28

GugUser
Member
From: Quito (Ecuador)
Registered: 2007-12-16
Posts: 1,473

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

If you would like to show more than one article image, then you have to replace in your code the <txp:article_image /> tag by the <txp:images /> tag. Then you can put in each article in the article image field a comma-separated list of image ids.

Offline

#156 2012-10-16 20:27:51

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

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

GugUser wrote:

If you would like to show more than one article image, then you have to replace in your code the <txp:article_image /> tag by the <txp:images /> tag. Then you can put in each article in the article image field a comma-separated list of image ids.

GugUser is right. Just remember to change the plugin configuration before, so to be able to insert multiple images in a single field:

'bot_iu_mono_list' => '', // fields with single image (comma separated | use #custom-n for cfs)

Offline

Board footer

Powered by FluxBB