Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2009-04-26 10:17:50

ig0r
Member
Registered: 2009-01-26
Posts: 13

Re: jmd_img_selector: Thickbox-style image selector

Hi, jm!
I can’t get this plugin work with hak_tinymce installed. The lightbox just doesn’t appear. It seems like there are a conflict between both javascripts.
What do you think is it possible to get it working?

Offline

#122 2009-06-04 21:22:07

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: jmd_img_selector: Thickbox-style image selector

Is it just me or why the does the ‘insert image’ tab in the sidebar of the Write tab doesn’t work? It’s only when I hit the Publish button to publish the article and then hit the ‘insert image’ tab again that it works. Has that been the case for anyone else? I’ve tried this on other browsers (chrome, windows safari, and IE7) and same issue.

Offline

#123 2009-06-05 21:56:58

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: jmd_img_selector: Thickbox-style image selector

Anybody? Just to add on to the above, when i click on the insert image tab, nothing happens and the following is added on to the end of the url in the web address bar ‘#jmdImgSel’ . So it would look like, http://www.domain.com/textpattern/#jmdImgSel

I also tried on another computer and same issues.

Offline

#124 2009-06-06 14:53:31

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_img_selector: Thickbox-style image selector

ig0r wrote:

I can’t get this plugin work with hak_tinymce installed. The lightbox just doesn’t appear. It seems like there are a conflict between both javascripts.

mrdale says the hak_tinymce “should be no, no, yes on the first three options.”

dreamer wrote:

Is it just me or why the does the ‘insert image’ tab in the sidebar of the Write tab doesn’t work?

Does http://example.com/textpattern/?event=jmd_img_selector_thickbox load images? If it does, do you have hak_tinymce and/or the CSS file for jmd_img_selector installed?

Offline

#125 2009-06-06 17:37:10

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

Re: jmd_img_selector: Thickbox-style image selector

To be perfectly clear:

  1. Show editor toggle: No
  2. Hide editor toggle when editing articles created with textile or convert linebreaks: No
  3. Hide “Use textile” Dropdowns: Yes

Offline

#126 2009-06-10 16:31:00

dreamer
Member
Registered: 2007-06-08
Posts: 242

Re: jmd_img_selector: Thickbox-style image selector

sorry, for the delay. yes, i have the css file for jmd selector installed. i followed mrdale’s directions for the hak tiny mce and it works now. thx so much.

Offline

#127 2009-06-22 16:02:52

uli
Moderator
From: Cologne
Registered: 2006-08-15
Posts: 4,304

Re: jmd_img_selector: Thickbox-style image selector

I just remarked that v1.0b2 inserts poplink tags like this <txp:thumbnail id="85"poplink="1"/>,
which outputs nothing because of the missing blank between id and poplink.

Are there situations where absolutely correct txp tags are required? Then there needs to be a blank before the closing slashes in all of the tags jmd_img_selector inserts.

On this occasion — once again: Thanks for this plugin! :)


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

Offline

#128 2009-06-22 16:52:52

jm
Plugin Author
From: Missoula, MT
Registered: 2005-11-27
Posts: 1,746
Website

Re: jmd_img_selector: Thickbox-style image selector

uli wrote:

I just remarked that v1.0b2 inserts poplink tags like this <txp:thumbnail id="85"poplink="1"/>,
which outputs nothing because of the missing blank between id and poplink.

Oops. Change the following (~L783):

jmdImgSel.insert(jmdImgSel.bodyImg('thumbnail', 'poplink="1"'));

to

jmdImgSel.insert(jmdImgSel.bodyImg('thumbnail', ' poplink="1"'));

Are there situations where absolutely correct txp tags are required? Then there needs to be a blank before the closing slashes in all of the tags jmd_img_selector inserts.

<txp:thumbnail id="3" poplink="1"/> == <txp:thumbnail id="3" poplink="1" /> – it doesn’t make any difference to the TXP parser if there’s a space or not between the closing slash. (The same applies to XSLT, which is why I’ve been writing tags like this for awhile.)

Offline

#129 2009-07-27 13:57:40

woof
Member
Registered: 2004-08-01
Posts: 128

Re: jmd_img_selector: Thickbox-style image selector

Hi Jon-Michael – this is an excellent plugin, thank you. Could I suggest that a feature for a future version might be the ability to reverse the display order of thumbnails? It might be useful for users of sites with large collections of images to see their most recently uploaded images first.

Offline

#130 2009-08-21 21:13:49

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

Re: jmd_img_selector: Thickbox-style image selector

This is a really handy plugin!

I have modified it to insert <txp:upm_image /> tags instead of txp’s default image tags. I’d also like to use image_name instead of id, because I think it’s a little more user-friendly for authors. I can see that the plugin knows the image names, as they show up when you hover over the thumbnails. Can anyone give me a hint where I might modify the plugin code to use image names instead of ids?

Many thanks.

Offline

#131 2009-08-31 10:38:38

Gerich
Member
Registered: 2009-08-30
Posts: 35

Re: jmd_img_selector: Thickbox-style image selector

I have an error message when I click to “Install css file” link:
Parse error: syntax error, unexpected ‘(‘, expecting ‘}’ in /home/jenya/public_html/textpattern/lib/txplib_misc.php(574) : eval()’d code on line 285
On the localhost, after installing plugin, and after running script, images are not visible in square boxes, and the adress of each image is not valid, it’s look’s like this:
http://127.0.0.1/images/%5C2t.jpg
The script always add this slash code “%5C” to each adress.
If you ask, my php version – 5.2.6, textpattern version 4.2.0 on localhost and 4.0.6 on the main site.

Last edited by Gerich (2009-09-01 17:06:41)

Offline

#132 2009-10-12 17:31:57

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

Re: jmd_img_selector: Thickbox-style image selector

Is this working with 4.2.0? I get the same message (can’t find thickbox.js and .css) in the extension tab. Tried various folder/subfolder…

Offline

Board footer

Powered by FluxBB