I know that this has been covered elsewhere before, but I just wanted to make my mark on this part of the forum
Wish granted: Implement LightBox
#1
Posted 21 August 2006 - 08:45 AM
I know that this has been covered elsewhere before, but I just wanted to make my mark on this part of the forum
#2
Posted 21 August 2006 - 09:04 AM
Dean, on Aug 21 2006, 09:45 AM, said:
I know that this has been covered elsewhere before, but I just wanted to make my mark on this part of the forum
added: I may look at doing this with Thickbox instead, sometime in the future. It is also more obvious for the site visitor how to use it. There is still a potential issue with WAI compliance (and the UK's Disability Discrimination Act), and how it operates if javascript is not enabled.
Edited by mikef, 21 August 2006 - 10:10 AM.
#3
Posted 21 August 2006 - 10:30 AM
If you do, please post the style definitions used!
#4
Posted 21 August 2006 - 11:46 AM
I've used Lightbox on a few sites now. It works great.
I have but two issues with it though.
First is a usability issue. Some users never catch on that you can get 'previous' and 'next' to come up and scroll through the images. So they only see the first one.
Second. It doesn't validate. If that is a concern to you then know it before you begin.
Best Regards, Lloyd Borrett.
#7
Posted 21 August 2006 - 04:59 PM
[any files below that have file extension .js.php need to be renamed to .js]
(1) Upload all the four files below into the root of your etomite website
(2) Add the following into your <head></head> bit in your template
<script type="text/javascript" src="/jquery.js"></script> <script type="text/javascript" src="/thickbox.js"></script> <link rel="stylesheet" href="/thickbox.css" type="text/css" media="screen" />(3) Wherever you have an <img> tag, make it into the following format:
<img src="filename.jpg" title="Whatever you want the description to be" class="thickbox" rel="gallery-name" />
Attached Files
#8
Posted 21 August 2006 - 05:46 PM
#9
Posted 21 August 2006 - 06:01 PM
#10
Posted 21 August 2006 - 08:34 PM
If you get stuck putting it in EtoGal, have a look at EtoGalThumb, as the programming approach is very different.
(In Etogal, the HTML and PHP code is all intermingled; in EtoGalThumb you should need very little PHP code, you mainly just need to write a kind of HTML template (in three fragments) with lots of replaceable parameters)
#11
Posted 27 August 2006 - 09:48 PM
Quote
$styleStrings[slideshow]['header']=0;
$styleStrings[slideshow]['tail']=0;
$styleStrings[slideshow]['image']=<<<IMG
<a href="%%file%%" class="thickbox" rel="gallery-test" ><img style='padding: 1em 0 1em 1em ; text-align:center;' src='%%file%%' title='%%title%%' alt='%%sdesc%%' align="middle" %%size%% /></a>
IMG;
Sadly, its not yet entirely practical. A limitation of EGThumb (so far) is that it only allows you to reference either the full size or the thumbnail image, but not both, since i hadn't thought of using it this way. So this demo uses the fullsize images rather than thumbnails to display the thumbnails, leaving the browser to shrink them to a 'thumbnail' size. Thats why there's only four images, so tht it doesn't take too long to load the first page.
Quote
the released EGThumb will add the capabilty to reference both the real thumbnail and the full size image!
Quote
Edited by mikef, 26 January 2007 - 10:45 AM.
#12
Posted 28 August 2006 - 11:49 AM
It doesn't show the loading animation (which didn't show up as an error in the first version, as the file was already loaded), but thats part of th Thickbox code, not mine, and their website is down today so I can't check the Tickbox installation instructions to see what I haven't done.
Edited by mikef, 26 January 2007 - 11:10 AM.
#13
Posted 28 August 2006 - 11:51 AM
then modify the thinkbox.js file (a few lines down), it has the path to the animation
#15
Posted 28 August 2006 - 08:38 PM
#16
Posted 28 August 2006 - 08:54 PM
I don't actually want thickbox, but making it work proved how flexible EtoGalThumb is - proof of concept with just a pretty simple EtoGalThumb style, and ten minutes putting extra code into EtoGalThumb to do the job properly. And EtoGalThumb gives more flexibility in selecting which images you want to include.
#18
Posted 26 January 2007 - 10:25 AM
There is now a demo at http://www.art4cheshire.org.uk/slideshow2.html
#19
Posted 25 April 2007 - 09:06 PM
Dean, on Aug 21 2006, 05:59 PM, said:
[any files below that have file extension .js.php need to be renamed to .js]
(1) Upload all the four files below into the root of your etomite website
(2) Add the following into your <head></head> bit in your template
<script type="text/javascript" src="/jquery.js"></script> <script type="text/javascript" src="/thickbox.js"></script> <link rel="stylesheet" href="/thickbox.css" type="text/css" media="screen" />(3) Wherever you have an <img> tag, make it into the following format:
<img src="filename.jpg" title="Whatever you want the description to be" class="thickbox" rel="gallery-name" />
Edited by kissman, 25 April 2007 - 09:07 PM.
#20
Posted 25 April 2007 - 11:20 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users














