Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: jmd_img_selector: Thickbox-style image selector
Can you see if the linked CSS file is being loaded? If you have Firebug (or the web developer toolbar) installed, click the CSS tab > css.php?n=jmd_img_selector. Is it only in Firefox too?
Offline
#50 2008-07-08 14:57:00
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: jmd_img_selector: Thickbox-style image selector
It shows up as css.php?n=jmd_img_selector
when I select CSS > View CSS, but when I select Edit CSS I get an empty style sheet css.php
in the sidebar.
Well, I did select Edit CSS a third time just now and suddenly it’s there – weird. It seems like it needed a kick.
This only happened in FF, Safari and Opera worked right away.
Let’s hope it stays :-)
Offline
Re: jmd_img_selector: Thickbox-style image selector
0.2.2 is up – this should fix the slow scrolling in Firefox. It also prevents the insert-link from loading on the preview and html views.
Offline
Re: jmd_img_selector: Thickbox-style image selector
Jm,
Seems to be working well. Is it calling thumbnails or full images?
Looks like full images because the thumbs in the picker are being distorted some.
If it’s generating the thumbs on the fly, can it be set to crop?
I never noticed this before because I was using nature photos to test. Now I have mugshots to test with and I can see the sqwarshin’.
—
T
Last edited by renobird (2008-07-12 02:11:38)
Offline
Re: jmd_img_selector: Thickbox-style image selector
It’s set to use thumbs, but it resizes them with the width and height attributes of img (it does this regardless of thumb or full size), which isn’t that smart. It doesn’t generate thumbs, but perhaps if a thumbnail is available, it’ll crop with CSS, otherwise it’ll distort the full image. Does that sound good? Or maybe just crop all images with CSS?
Offline
Re: jmd_img_selector: Thickbox-style image selector
Cropping via CSS is cool with me.
Everything is working great BTW – I sure do love this thing.
- )
—
Tom
Offline
#55 2008-07-12 17:16:13
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: jmd_img_selector: Thickbox-style image selector
Another vote for cropping via CSS :-)
Does that mean if no thumb is available it will scale down and crop the full-size image instead?
Last edited by masa (2008-07-12 17:23:06)
Offline
Re: jmd_img_selector: Thickbox-style image selector
I lied – 0.3 might be the last article-image only release.
Edit: back from dinner – changes:
- Reposition the thickbox on window resize
- Landscape, portrait, and square image format logic.
masa wrote:
Does that mean if no thumb is available it will scale down and crop the full-size image instead?
Basically everything is getting cropped in 0.3 – the image is resized only when the image (thumb or full) dimensions are less than the crop/prefs dimensions (for tiny, square, and awkwardly sized imaged).
Last edited by jm (2008-07-13 00:31:50)
Offline
Re: jmd_img_selector: Thickbox-style image selector
New version kicks out this error. I’m guessing it is something to do with the way my host is set up?
Warning: getimagesize() [function.getimagesize]: URL file-access is disabled in the server configuration in my.web.site.com/textpattern/lib/txplib_misc.php(572) : eval()’d code on line 742
Offline
#58 2008-07-13 03:04:19
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: jmd_img_selector: Thickbox-style image selector
I’m having a more severe problem. I’ve just installed it on the first live site and after activating it, clicking any tab in the admin only produces an empty page with the following error:
Fatal error: [] operator not supported for strings in
/users/home/username/domains/mysite.com/web/public/textpattern/lib/txplib_misc.php(574) : eval()'d code on line 5
On my local install that doesn’t happen. However there I get a different error when clicking Insert Image:
Warning: getimagesize(http://localhost:8888/txp406/images/1t.gif)
[function.getimagesize]: failed to open stream: HTTP request failed!
HTTP/1.0 404 Not Found in /Volumes/Saturn/Sites/txp406/textpattern/lib/txplib_misc.php(574) :
eval()'d code on line 743
Apparently this is caused by 1.gif not having a thumbnail. Once I created that the error disappeared.
Last edited by masa (2008-07-13 03:11:00)
Offline
Re: jmd_img_selector: Thickbox-style image selector
maverick, masa – the getimagesize()
issue is fixed in 0.3.1 (switched from using the URI [lazier] to the path).
masa – getimagesize()
shouldn’t be run if 1.gif doesn’t have a thumbnail, unless the thumbnail file was deleted from the filesystem, not the txp interface. Edit: 0.3.2 checks for the thumbnail file itself.
Last edited by jm (2008-07-13 21:29:15)
Offline
#60 2008-07-13 21:30:22
- masa
- Member
- From: Asturias, Spain
- Registered: 2005-11-25
- Posts: 1,091
Re: jmd_img_selector: Thickbox-style image selector
OK, just installed 0.3.2 and all is fine on the local install.
However I still get that same fatal error on the live site as stated above. Any ideas?
The site is hosted on Textdrive.
Edit: to elaborate on this a little more…
after installing and activating the plugin I’m unable to switch to any other tabs in the admin. As soon as I deactivate the plugin everything’s back to normal agian.
Last edited by masa (2008-07-13 21:42:45)
Offline