Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#136 2009-10-13 08:32:13
Re: jmd_img_selector: Thickbox-style image selector
@redbot: Yes and no. The modal problem was caused by wrong dir of js and css files, my fault. Still, if glz_custom is active, the insert image link is not showing (and bot_show_image is broken). I think I’ll make some other check and then report this on glz_custom_field thread.
Offline
#137 2009-10-13 10:09:35
Re: jmd_img_selector: Thickbox-style image selector
Zanza wrote:
Oh… ehm, thanks (so, why the error message in extension?), but is not working anyway.
You’re getting an error with v1.0b2? You shouldn’t be with this version because there’s no check for thickbox.js|css and hasn’t been for awhile.
The page load in a new window instead a modal. Sure I’m doing wrong somewhere. (Add: plus, with an installation running in a subdir, the insert image link is not showing).
The link created with JS is <a href="#jmdImgSel"> without a target – older versions might have had a target attribute.
Still, if glz_custom is active, the insert image link is not showing (and bot_show_image is broken).
There was a problem awhile ago with hak_tinymce and jmd_img_selector – solution described here. I don’t rewrite the left column’s HTML because I’m just prepending the link.
I just tested bot_show_image (nice plugin, redbot!) with v1.0b2 of jmd_img_selector, and they both work fine together. I don’t have glz_custom_fields installed, so I have no way to test it. Try disabling my plugin and seeing if redbot’s works with glz_custom_fields and vice versa. EDIT: Just saw your post in redbot’s thread. Just to double check, disable glz_custom_fields and enable bot_show_img and jmd_img_sel to ensure they work together on your install (they should).
Last edited by jm (2009-10-13 10:17:06)
Offline
#138 2009-10-13 10:40:31
Re: jmd_img_selector: Thickbox-style image selector
@jm: Ok, I made it. I was using an older version (taken from google or plugin archive -don’t remember – instead of this thread). Now it works, there is no error message, and everything is compatible with glz_custom_field, too. Thanks for pointing out the most recent version!
Offline
#139 2009-11-10 23:37:32
Re: jmd_img_selector: Thickbox-style image selector
woof wrote:
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.
Echoing that sentiment, is there a way to make this sort the images in the opposite order, so the newest is always at the top?
Running excellent otherwise alongside glz_custom_fields and bot_hide_in_admin on 4.2
Last edited by aswihart (2009-11-10 23:57:33)
Offline
#140 2009-11-11 10:08:50
Re: jmd_img_selector: Thickbox-style image selector
aswihart wrote:
Echoing that sentiment, is there a way to make this sort the images in the opposite order, so the newest is always at the top?
At the moment, you need to make a change in the plugin. Find these lines in JMD_ImgSelector::getImages()
$this->images = getRows("select id, name, category, ext, w, h, thumbnail
from " . safe_pfx('txp_image'));
and change them to
$this->images = getRows("select id, name, category, ext, w, h, thumbnail
from " . safe_pfx('txp_image') . " order by date desc");
That should do it, but I haven’t tested it.
Offline
#141 2009-11-11 11:20:18
Re: jmd_img_selector: Thickbox-style image selector
Awesome, that worked perfectly. This is really needed for my site as I am going to be dealing with many different users uploading thousands of images.
Given that, it would also be nice to remove the “Browse Category” and “Insert As” fields. I know you don’t often get asked how to remove features, but in this case, the simpler the better. Any code I can remove to affect these changes? Thanks much!
Last edited by aswihart (2009-11-11 11:22:59)
Offline
#142 2009-11-11 13:04:42
Re: jmd_img_selector: Thickbox-style image selector
Presentation > Style > jmd_img_selector
#jmdImgSel_options { display: none }
Offline
#143 2009-11-11 14:29:08
Re: jmd_img_selector: Thickbox-style image selector
You’re the man Jon-Michael, thanks for making this awesome Txp plugin, it is extremely useful, and in fact is pretty much a necessity to bring end-user image uploading into the realm of practicality.
Offline
#144 2009-11-11 17:06:11
Re: jmd_img_selector: Thickbox-style image selector
jmd, perhaps this has already been suggestified, but I have an idea…
bend this plugin to be a visual associator for files and other articles as well through a designated custom field.
That would be super powerful.
Offline
#145 2009-11-11 17:18:14
Re: jmd_img_selector: Thickbox-style image selector
^^ That would be super-power-cool.
The same could be suggested for wet’s wet_quicklink/wet_peex mechanism.
Although most of us love upm_ creatures, it’s time to put old-school pop-ups to rest… don’t you agree?
Offline
#146 2009-11-11 18:16:02
Re: jmd_img_selector: Thickbox-style image selector
maniqui wrote> Although most of us love upm_ creatures, it’s time to put old-school pop-ups to rest… don’t you agree?
“…you might very well think that, I couldn’t possibly comment.”
Offline
#147 2009-11-12 17:07:11
Re: jmd_img_selector: Thickbox-style image selector
$this->images = getRows("select id, name, category, ext, w, h, thumbnail
from " . safe_pfx('txp_image') . " order by date desc");
Excellent! Makes perfect sense, and makes this plugin even easier to use.
Offline
#148 2009-11-14 21:43:59
Re: jmd_img_selector: Thickbox-style image selector
mrdale wrote:
jmd, perhaps this has already been suggestified, but I have an idea…
bend this plugin to be a visual associator for files and other articles as well through a designated custom field.
Renobird asked me about doing this for files awhile ago, but I haven’t heard back from him. What do you guys want for the visual part of it? Like a zip icon for zips? I think wet_quicklink has the article part covered though, right?
Offline
#149 2009-11-15 23:10:31
- Gerich
- Member
- Registered: 2009-08-30
- Posts: 35
Re: jmd_img_selector: Thickbox-style image selector
I want to change the default “root” category to some specified category, because I have hundreds of images and don’t want they all loading every time.
Also I have certain category “users_images”, and I want the other publishers choose images only from it.
Can you added this option to the options tab?
Thanks.
Offline
#150 2009-12-28 06:23:41
- jmart
- Member
- Registered: 2008-08-25
- Posts: 68
Re: jmd_img_selector: Thickbox-style image selector
The ‘insert image’ won’t toggle when i click on it. And I don’t have the tiny mce plugin installed and I’m using php 5. I created the stylesheet upon installation as well. I’m using Firefox 3.5
Offline