Register   Login
     
  Latest Posts  
RE: Comments not posting
by smcculloch on 1/08/2009 2:55 AM
Does anyone have XHTML Compliant PA Template
by tmahmud on 1/08/2009 1:04 AM
RE: Comments not posting
by WillJean on 1/08/2009 12:53 AM
RE: Comments not posting
by smcculloch on 1/08/2009 12:24 AM
RE: 4.9.0 and 5.0.0 with Simple gallery
by smcculloch on 1/08/2009 12:23 AM
Enable to comment in Simple Gallery
by nmduc073 on 1/07/2009 11:33 PM
Comments not posting
by WillJean on 1/07/2009 11:32 PM
4.9.0 and 5.0.0 with Simple gallery
by insomnia on 1/07/2009 11:31 PM
RE: Unable install News Articles in DNN 5
by nmduc073 on 1/07/2009 11:27 PM
Layout Settings: Listing View
by shawno on 1/07/2009 10:58 PM
  Forums  
Subject: Lightbox script rewrite
Prev Next
You are not authorized to post a reply.

Author Messages
Robert AxfordUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:765


5/19/2007 6:58 AM  

Hi Scott,

I was out digging around for a solution to the Prev/Next buttons in the Lightbox script and instead found a rewrite of the tool that may be of interest here.

http://www.digitalia.be/software/slimbox

I can see from the feature list that it already fixes one issue that affects my users all the time.. the way that the script breaks if one doesn't wait until all thumbnails have loaded - People are always doing that and getting stuck.

I'll let you know how far I get with alternate buttons next.

Here's some of the guff pasted in:
------------------------------------------------------------------------------------

From a functional point of view, Slimbox has the following added features compared to the original Lightbox:

  • Slimbox is ready to launch as soon as the document is ready. This means that you don’t have to wait for all images of the page to be loaded before clicking on a link launching the Lightbox effect.
  • The left and right arrow keys can be used to navigate through images, and the ESC key can be used to close Slimbox (Warning: in Mozilla browsers, the ESC key is also used to stop GIF images from animating).
  • The dark background overlay can be clicked anywhere to close Slimbox, even on the parts located on the left and right of the image.
  • The script is more robust; for example you can try to start-stop Slimbox very quickly to interrupt the animation then resume it and you won’t notice any bug like in the original Lightbox where sometimes the animation stops or the captions are wrongly sized.
  • Slimbox temporary hides flash animations and other embedded videos while it is open to avoid display bugs in some browsers.
  • Slimbox can be launched from the traditional image links inside the page like the original Lightbox, but also directly from a Javascript call using a special method.

From a design point of view, Slimbox is very different from Lightbox:

  • The code has been entirely rewritten with efficiency in mind for the mootools framework instead of the huge Prototype/Scriptaculous. The script itself is as tiny as 7kb (uncompressed).
  • The Slimbox CSS are simpler and 100% valid (no more CSS hacks). Also, all images used by Slimbox are specified in the CSS instead of the Javascript so it is easier to style.
  • Slimbox does not use the 1 pixel transparent gif image needed by Lightbox.

And of course, it has been tested in all modern browsers: Firefox, Internet Explorer 6+, Opera 8+, Safari 1.3+ and Camino. It is not compatible with the old Internet Explorer 5.5 and will never be. If you still notice any bug, please post a comment below.

The total download size for the compressed version of the required modules of mootools + Slimbox is currently as small as 21kb.

 

 

GlenWinUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:715


5/19/2007 3:41 PM  
Thanks Robax,
Yes I agree the curent Lightbox is not very user friendly... and Slimbox look like a very interesting alternative candidate for Lightbox !
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12797


5/20/2007 6:51 AM  
Not having to wait for the images to load is very handy.

I didn't see a fix for the next/previous though?

Scott McCulloch
Site Administrator
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12797


5/20/2007 6:58 AM  
How about this one guys?

http://www.phatfusion.net/lightbox/index.htm

Scott McCulloch
Site Administrator
Bertrand DulucUser is Offline
Silver Membership
Nuke Addict
Nuke Addict
Posts:98


5/20/2007 8:51 AM  

Hi Scott,

Next and previous buttons under the picture looks very usefull for visitors. Just need to modifiy GIF images for localization. Ability to include an external link and choose the background opacity are also a good things.


Bertrand
Luxembourg
Ahsan ShamsUser is Offline
Registered Users
Nuke Super Newbie
Nuke Super Newbie
Posts:11

5/20/2007 2:33 PM  
Posted By smcculloch on 5/20/2007 6:58 AM
How about this one guys?

http://www.phatfusion.net/lightbox/index.htm



That would be exelent.

 

Also I got this forum: www.rcuniverse.com they have some buttons that appear on the bottom of the image but nothing like what you just showed me.

Heck you can always but in an option: Use Original Light box or use the Updated light box.

GlenWinUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:715


5/20/2007 3:45 PM  
Yes I would love to have this http://www.phatfusion.net/lightbox/index.htm features for displaying photos in Simple Gallery and Property Agent !

Scott, it would be great to implement in your modules
Robert AxfordUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:765


5/20/2007 4:48 PM  

Yes, that Phatfusion version looks great. It has all the benefits from Slimbox already mentioned, plus deals with the buttons by simply dropping them down into the text area.

I guess there is more that would need to be considered so I'll list what I can think of:

If a feature is configurable, then should there be a method for allowing different configuration per module instance or at least per portal? For example, I often want to alter the tint of the lightbox page colour to suit a particular skin. Some things like that can be achieved through css, but other options such as timing, caption animation, transition and initial size are held in the script, meaning one either needs multiple copies of the script or one has to expose those settings in the interface.

I note that the script is only 8kb and the remaining bits add very little more. If it were possible to have these items held within a gallery template folder, within the portal folder, then it could be configurable per-template or per-portal. These variables then wouldn't need to be exposed in the module settings interface.

The idea would be to treat scripts like this as template add-ons rather than fixed module components so that they can be configured differently as desired. Does that make sense?

As well, there is the future of the module to think about. Others will vary, but in my view the basics would be IPTC tag support, comments and ratings, cropped thumbnails and ultimately a view to integrating the galleries and albums with future social networking components provided either by DNN and other modules.

With all that in mind, where exactly does a script like this fit in...

Basically it's just an image-display option. Perhaps it should be a portal-wide option that is configurable on its own and is called up whenever an image is viewed? by that I mean make image-display a seperate thing from any particular module. Is there a way that one could create a DNN image display provider and put scripts like Lightbox in there? Such an image display provider could possibly also deal with the issue of displaying dynamically-resized images in any module and provide a consistent site-wide pop-up when clicked.

Just throwing some ideas out there for discussion... and of course, in the short run, just replacing the lightbox script with this one would be a nice fix-up.

Rob

Dax DavisUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:339


5/21/2007 12:55 PM  
Posted By smcculloch on 5/20/2007 6:58 AM
How about this one guys?

http://www.phatfusion.net/lightbox/index.htm


This looks nice.  Don't see where to download it.  If this is Lightbox, but smaller like slimbox, and better, I would advise moving to this.

Dax
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12797


5/22/2007 2:37 AM  
I've updated the lightbox to have next/previous after running into some issues with the slimbox.

I'm still investigating the integration of slimbox, as it does do some things nicer, e.g. you can click an image before the page has loaded.

Scott McCulloch
Site Administrator
GlenWinUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:715


5/22/2007 3:23 AM  
Just uploaded the latest Simple Gallery module ,Yes it is nice to see the Next and Prev and Close buttons at the bottom display properly in IE... However did anyone notice that the CLOSE button is pushed under and out the square in Firefox browser ?
BarrySUser is Offline
Gold Membership
Nuke Wiz
Nuke Wiz
Posts:138


5/22/2007 4:02 AM  
Posted By glenwin on 5/22/2007 3:23 AM
Just uploaded the latest Simple Gallery module ,Yes it is nice to see the Next and Prev and Close buttons at the bottom display properly in IE... However did anyone notice that the CLOSE button is pushed under and out the square in Firefox browser ?

Indeed, I noticed that with firefox.  The image details (ie image 20 of 50) are also pushed below, meaning that they are unreadable against the dark lightbox background

Edit: hmm... quote routine doesn't give me anywhere to type my reply except in the quote!
Jerry JansenUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:73


5/22/2007 4:05 AM  
Also if the description is longer than what fits on one line then the description after the first line is cut off.

Jerry J. Jansen
Blog: jerryjansen.name
John TravoltaUser is Offline
Gold Membership
Nuke Addict
Nuke Addict
Posts:72

5/22/2007 4:13 AM  
Yes it's true for Firefox (checked 1.5.0 - 2.0.3)!
And in Opera there are some floating of Close button and caption text depending on the width of the picture and depending if it's first or last in the stock !
Jeremy OldhamUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:18

5/22/2007 5:12 AM  
Posted By smcculloch on 5/22/2007 2:37 AM
I've updated the lightbox to have next/previous after running into some issues with the slimbox.

I'm still investigating the integration of slimbox, as it does do some things nicer, e.g. you can click an image before the page has loaded.


Scott,

I tried to implement Slimbox into one of my DNN pages and ran into issues as well.  If I remember correctly, I saw a post on the DNN Forums where this was narrowed down to the javascript for Slimbox conflicted with the Client API.  I think they both contain a $ function, therefore when running the code, it does not know which $ function to use.  You should be able to talk to Jon Henning who works on the DNN Client API and he can probably explain the problem more.

I hope this gets you further along with Slimbox.  It really does run much quicker that Lightbox.

Update: Scott, I went ahead and looked up the thread.  Here is a link: http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/76/threadid/108457/scope/posts/Default.aspx


Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12797


5/22/2007 7:53 AM  
Thanks for pointing out the issues, I'll get them fixed up.

As for slimbox, I did get it to work as a viewer, but the positioning wasn't working correctly.

Scott McCulloch
Site Administrator
brian cumberledgeUser is Offline
Registered Users
Nuke Active Member
Nuke Active Member
Posts:38

5/22/2007 10:10 AM  
I like it, thanks Scott!
Robert AxfordUser is Offline
Gold Membership
Nuke Master
Nuke Master
Posts:765


5/24/2007 5:05 AM  
Here's something just for interest:
http://fortysomething.ca/mt/etc/archives/005400.php
Updated way back in September last year.

Still looks like slimbox is probably the better one, but I havent' read all the way thru this yet.
Rob
Jeremy OldhamUser is Offline
Gold Membership
Nuke Super Newbie
Nuke Super Newbie
Posts:18

5/24/2007 8:44 AM  

This guy has modified Slimbox to not only allow the Prev-Next button in the footer, but also to add HTML to the image description.  Additionally, the footer part not only scrolls down, but also scrolls back up when switching images.

http://www.phatfusion.net/lightbox/

You are not authorized to post a reply.
Forums > Modules > Simple Gallery > Lightbox script rewrite



ActiveForums 3.7