Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#16 2009-05-15 18:45:57

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

Re: bot_show_image

kostas45 wrote:

Very useful plugin!
Thanks redbot :-)

Glad you found it useful ;)

Offline

#17 2009-10-01 09:55:58

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: bot_show_image

I discovered only today the existance of this plugin thanks to masa’s comment about the brand new bot_admin_tooltips.
I’ve installed it but it doesn’t work. Probably the problem is that I’ve changed the default txp “images” directory with “immagini”. I’ve tried to replace all the images strings in the code with immagini but however the images&thumbnails don’t appear. What else should I change? Thanks in advance.

BTW: it would be useful a plugin preferences interface where to specify – maybe with a radio button – the choice of full image or thumbnail, the preferred images width and, why not, the name of the directory used to pick up the articles images (useful for localized installations like mine).

Last edited by candyman (2009-10-01 09:58:43)

Offline

#18 2009-10-01 10:03:51

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

Re: bot_show_image

Hi candyman,
Yes you hit the problem and here is the solution:
first restart with the predefined code and then you only need to modify two lines.
Around line 62 and 65 replace this:
img src="'.hu.'images
with this:
img src=”’.hu.‘immagini
and should work.

Regarding the interface I’m sorry but I don’t think I’ll add it, I have absolutely no free time now.

Last edited by redbot (2009-10-01 10:04:12)

Offline

#19 2009-10-01 10:17:40

candyman
Member
From: Italy
Registered: 2006-08-08
Posts: 684

Re: bot_show_image

Thanks redbot! It works great! I think I’ve changed too much doing a simple search&replace… :\

Offline

#20 2009-10-12 21:00:56

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bot_show_image

Redbot, this is a simple but great plugin, but on my 4.2.0 install it is not compatible with latest version of glz_custom_field. When both plugins are activated, the image is showing out of context, in the bottom of the page. Don’t know if the issue is related to your or glz javascript handling, just wanted to report back if you wanna check. Bye!

Offline

#21 2009-10-12 23:42:48

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

Re: bot_show_image

Thanks Zanza,
That’s strange. For me the two work together without problems.
As you already know, the behaviour you are experiencing means that only the jquery part of the plugin is not working.
Onestly I have no idea what can be causing this in your case.
Just two questions:
1) can you see the jquery code in your page source?
2) does only glz_custom work or both plugins aren’t working?

Last edited by redbot (2009-10-12 23:44:12)

Offline

#22 2009-10-13 08:45:11

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bot_show_image

Uhm… strange. I can confirm the behavior. I have glz_c_f 1.2.2 (latest) and bot_show_image 0.4.

The jquery in the code is:

	$(document).ready(function() {
		$("#bot_article_image").insertBefore($("#article-image"));
	});

but the image is showing at the end of the page. Mumble…

Offline

#23 2009-10-14 13:31:50

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

Re: bot_show_image

Hi Zanza,
I suppose you haven’t solved your problem yet and I can’t be of much help here.
My only suggestion is to do what I usually do in this cases: install a simple jquery plugin written by someone who knows what is doing, for example Gocom’s rah_write_each_section.
If it works then the problem has to do with bot_show_image. If it doesn’t then the problem has presumably to do with glz_custom.

Offline

#24 2009-10-14 14:03:34

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: bot_show_image

Smart idea, Redbot. I did it, and even rah_write_each_section is not working properly. But, anyway, Gerhard has already been told about the problem, and yesterday announced a bugfix version of glz_custom. Wait and see. Thanks!

Offline

#25 2010-01-17 15:34:35

aswihart
Member
From: Pittsburgh, PA
Registered: 2006-07-22
Posts: 345
Website

Re: bot_show_image

Hey redbot, would it be too hard to make it so you can display all article images (with alternating “even” and “odd” classes if it isn’t asking too much) instead of just the one?

Offline

#26 2010-01-17 19:50:16

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

Re: bot_show_image

aswihart wrote:

Hey redbot, would it be too hard to make it so you can display all article images (with alternating “even” and “odd” classes if it isn’t asking too much) instead of just the one?

Hi aswihart,
you are not the first to ask for this feature but – I’m sorry – I don’t think I’ll add it for the following reasons:

  1. It’s not so easy because I should think of a way to show them all, especially if there are a lot of images.
  2. I have no free time at all lately
  3. If I had some free time I’d prefer to write some new plugin

That said, maybe someday I’ll need this functionality and I’ll be forced to add it but I don’t think this will happen soon… sorry

Offline

#27 2010-04-23 15:45:18

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,215
Website

Re: bot_show_image

Hey bot > I use this and am starting to use bot_wtc a lot. Thanks.

Maybe you should merge them both, or allow wtc to know about bot_si so that you can position it.

Offline

#28 2010-04-23 16:21:03

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

Re: bot_show_image

mrdale wrote:

…Maybe you should merge them both, or allow wtc to know about bot_si so that you can position it.

Hi mrdale,
unfortunately you seem to be the only one to have a lot of problems with my plugins :(
Actually they should be already working well together, I’ve used them a lot of times with no problems at all.
As with other issues you had this is a mistery to me, given that bot_si inserts on purpose the image in the p surrounding the article image field, so that it can be moved with bot_wtc.
Can you tell me what happens when you try to reposition the article image field?

Offline

#29 2010-06-02 12:23:00

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,565
Website GitHub Mastodon

Re: bot_show_image

This plugin would be very useful for my client – but I’m seeing broken links instead of the images. I’ve checked the html source of the page and it seems to be looking in the /images/ directory for image, but I actually store images in /images/cms/. I guess I can edit the plugin source to rectify but shouldn’t it take the directory cues from the main admin preferences anyway (where I have defined the /images/cms/ directory already)?

Anyway, thanks for the plugin.

Offline

#30 2010-06-02 14:21:05

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

Re: bot_show_image

philwareham wrote:

…but shouldn’t it take the directory cues from the main admin preferences anyway (where I have defined the /images/cms/ directory already)?

Yes you are perfectly right, this plugin is not so elaborated… originally I wrote it for myself so I got accustomed to edit it directly

… I guess I can edit the plugin source to rectify

Sure. Just change line 62 and 65 replacing:

img src="'.hu.'images/ with img src="'.hu.'your_dir/

…Anyway, thanks for the plugin.

Glad you found it useful.
FYI I’ll release soon a similar plugin that will let you also upload and edit images directly within the “write” tab.

Offline

Board footer

Powered by FluxBB