Album - Thickbox not working

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
ITistic
Forum Members
Forum Members
Posts: 25
Joined: Tue Jun 27, 2006 9:28 pm

Album - Thickbox not working

Post 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?
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album - Thickbox not working

Post 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...
ITistic
Forum Members
Forum Members
Posts: 25
Joined: Tue Jun 27, 2006 9:28 pm

Re: Album - Thickbox not working

Post 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..
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Album - Thickbox not working

Post by Dr.CSS »

You may try uninstall/reinstall some times fixes things...
3dcandy

Re: Album - Thickbox not working

Post by 3dcandy »

currently works for me...

Firefox 1.5.0.7

Tis a little slow though!

???
jimmyb
Forum Members
Forum Members
Posts: 35
Joined: Wed Sep 20, 2006 12:40 pm

Re: Album - Thickbox not working

Post 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!!
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Album - Thickbox not working

Post by Russ »

Ahaa, this caught me out many year ago. Everything has been lower case since...

Russ
ITistic
Forum Members
Forum Members
Posts: 25
Joined: Tue Jun 27, 2006 9:28 pm

Re: Album - Thickbox not working

Post by ITistic »

Does anyone know if the developer has been alerted so this can be updated and a new version released?
Dee
Power Poster
Power Poster
Posts: 1197
Joined: Sun Mar 19, 2006 8:46 pm

Re: Album - Thickbox not working

Post 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).
Russ
Power Poster
Power Poster
Posts: 813
Joined: Fri Nov 25, 2005 5:02 pm

Re: Album - Thickbox not working

Post 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
Post Reply

Return to “CMSMS Core”