Page 1 of 1

Album - Thickbox not working

Posted: Wed Oct 04, 2006 8:40 pm
by ITistic
Can somebody please take a peek at this page and give me some pointers as to why the Thickbox is not working?

http://motographx.itistic.com/index.php ... to-gallery

Browsing the album works fine. When you click on an image to view it, however, you are shown a broken image icon in the middle of the screen.

Anyone?

Re: Album - Thickbox not working

Posted: Wed Oct 04, 2006 10:37 pm
by Dr.CSS
Works in Firefox... but I think that it's looking for the loading gif so it gives you a real quick broken image link icon...

Re: Album - Thickbox not working

Posted: Wed Oct 04, 2006 11:42 pm
by ITistic
Hmm.. I am using Firefox 1.5.0.7 and it doesn't work for me.. Nor does it work in IE. It is also looking for that spinning image which I know does not exist.

When I installed the Album extension it never installed the Album stylesheet either which I had to manually grab out of the directory and install myself..

Re: Album - Thickbox not working

Posted: Thu Oct 05, 2006 8:54 am
by Dr.CSS
You may try uninstall/reinstall some times fixes things...

Re: Album - Thickbox not working

Posted: Thu Oct 05, 2006 3:44 pm
by 3dcandy
currently works for me...

Firefox 1.5.0.7

Tis a little slow though!

???

Re: Album - Thickbox not working

Posted: Fri Oct 20, 2006 9:43 pm
by jimmyb
This one has been driving me crazy for hours but finally worked it out.

Thought I'd post my solution here as others may come accross it!!

Was getting the same results as the poster above, album list was displaying fine but when I clicked, it just displayed a red cross in the middle of the screen.

My problem was a result of the actual picture file names themselves!! My digital camera automatically names all the image files to an UPPERCASE name eg PIC1056.JPG. Turns out that the thickbox.js file only recognises file extentions in lowercase!!

Code: Select all

var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.html|\.htm|\.php|\.cfm|\.asp|\.aspx|\.jsp|\.jst|\.rb|\.txt/g;
		var urlType = url.match(urlString);
		
		if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif'){//code to show images
Just change the above code in thickbox.js (modules/Album/templates/db/js/) to read

Code: Select all

var urlString = /\.jpg|\.jpeg|\.png|\.gif|\.JPG|\.JPEG|\.PNG|\.GIF|\.html|\.htm|\.php|\.cfm|\.asp|\.aspx|\.jsp|\.jst|\.rb|\.txt/g;
		var urlType = url.match(urlString);
		
		if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.JPG' || urlType == '.JPEG' || urlType == '.PNG' || urlType == '.GIF'){//code to show images
;D Problem solved.

Could just rename all my image files but why bother!!

Re: Album - Thickbox not working

Posted: Sat Oct 21, 2006 6:19 am
by Russ
Ahaa, this caught me out many year ago. Everything has been lower case since...

Russ

Re: Album - Thickbox not working

Posted: Sun Oct 22, 2006 5:30 pm
by ITistic
Does anyone know if the developer has been alerted so this can be updated and a new version released?

Re: Album - Thickbox not working

Posted: Sun Oct 22, 2006 8:49 pm
by Dee
ITistic wrote: Does anyone know if the developer has been alerted so this can be updated and a new version released?
Actually Elijah Lofgren has been maintaining this module lately, but he's very busy in college at the moment.
He posted a request for new developers and asked me to release a new Album version.

I just released 0.7.4 which addresses this issue (among others).

Re: Album - Thickbox not working

Posted: Mon Oct 23, 2006 4:13 pm
by Russ
Dee there are some other issues with Album, or, depending on how you look at it, CMS core. I'm not allowed access to any SVN here at work so if you PM me I will eloborate so you can submit a bug request.

Russ