Dec 04, 2008, 11:50 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Search via SMF or Google: modx forums all of modxcms.com web
  MODxCMS.com   Forums   Help Login Register  
Pages: [1] 2 3   Go Down
  Print  
Author Topic: Highslide Image Gallery  (Read 8036 times)
0 Members and 1 Guest are viewing this topic.
bunk58
Committed to MODx
*****
Posts: 996


David Bunker


WWW
« on: Mar 24, 2007, 03:11 PM »

This is a port of Torstein Honsi's Highslide.js image effect.

Highslide JS is licensed under a Creative Commons Attribution-NonCommercial 2.5 License (http://creativecommons.org/licenses/by-nc/2.5/).

This is my first attempt at a snippet so feel free to improve the coding as I know very little PHP and even less Javascript.

View a demo of the snippet at 3913.co.uk.

There are a limited number of parameters available, because I ignored a lot of possible options in order to get it up and running quickly and simply.
I love MaxiGallery but sometimes want to upload several large galleries quickly, without captions, comments etc.
The idea was to get a good looking ajaxified style gallery that you FTP the images up to and that noobs like me can install easily.

The zip file contains all the files and a set of instructions.
Feedback any thoughts and or improvements.

Tested on MODx 0.9.5 RC2 & 0.9.6 RC1 using IE6 & 7, Ffox 1.5.0.11, Netscape 8.1.2 & Opera 9.10
Can someone have a look using Safari?

Also "Valid XHTML 1.0 Transitional"

Regards,
David



* highslide.zip (117.02 KB - downloaded 509 times.)
« Last Edit: Mar 17, 2008, 02:53 PM by bunk58 » Logged

xyzvisual
Javier Arraiza Cenoz
Moderators
*
Posts: 628


Javier Arraiza Cenoz


WWW
« Reply #1 on: Mar 24, 2007, 03:26 PM »

very cool snipet
hi
Logged

Web design from Pamplona-Iruña
marker | programación y diseño


zi
MODx Special Forces /
Administrator
*
Posts: 3,016


May Peace Be On You


WWW
« Reply #2 on: Mar 24, 2007, 03:36 PM »

Nice work David! Smiley

Thanks for sharing.
Logged

“Internet Explorer’s CSS rendering: WYSIWTF”. — someone genius
--------------------------------------------------
Xsss4hell
Full Member
***
Posts: 140


Believe or not I'm member #6666 =(


« Reply #3 on: Mar 24, 2007, 04:17 PM »

* Two Thumbs UP *
Logged
ChuckTrukk
Committed to MODx
*****
Posts: 638



WWW
« Reply #4 on: Mar 24, 2007, 10:38 PM »

David,

This snippet is a real winner! Perfect for quick galleries.

Chuck
Logged

Chuck the Trukk
ProWebscape.com :: Nashville-WebDesign.com
- - - - - - - -
What are TV's? Here's some info below.
http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
Ross1234
Member
**
Posts: 59


« Reply #5 on: Apr 03, 2008, 09:01 AM »

Maybe add this in the next version but with width and height as parameters instead of in the php?

change the paths to thumbnails to use this resizer script

http://tech.mikelopez.info/2006/03/02/php-image-resize-script/

Creates thumbnails with smaller file sizes "on the fly"

Then call the same way as before

so the file path is $file_dir = 'assets/galleries/'.$Gname.'/';

and the thumbnail path is $thumbs_dir = '/imgsize-1.php?w=120&h=90&img='.$file_dir.;

(remove fullsize from file path.)

if you could incorporate the width and hight as parameters that would be great.

(thats my input to modx LOL)

ps. is it allowed to remove the highslide text at the top left and replace with a copyright notice? I don't think it is and you have done that.

« Last Edit: Apr 03, 2008, 10:31 AM by Ross1234 » Logged
bunk58
Committed to MODx
*****
Posts: 996


David Bunker


WWW
« Reply #6 on: Apr 03, 2008, 11:49 AM »

Thanks for the pointer.
I've bookmarked it for a look.

David
Logged

Vait
Full Member
***
Posts: 179


WWW
« Reply #7 on: Apr 10, 2008, 07:13 AM »

Ive liked the fx but the downside is whenever I click on next and the next image comes up, I have to move the mouse to click on the next button (using safari) - is it supposed to be this way? I clicked on 5 images and it already got irritating.. is it possible to set a static position for the buttons?
Logged

Pure MODx sites
Viriko.ru & Viriko.com - Multilingual and running on 1 MODx
bunk58
Committed to MODx
*****
Posts: 996


David Bunker


WWW
« Reply #8 on: Apr 10, 2008, 07:41 AM »

The control bar is set relative to the image, ie top right, bottom left etc.
If you have images of different sizes then the control bar would "move"
Logged

Ross1234
Member
**
Posts: 59


« Reply #9 on: Apr 10, 2008, 09:52 AM »

Ive liked the fx but the downside is whenever I click on next and the next image comes up, I have to move the mouse to click on the next button (using safari) - is it supposed to be this way? I clicked on 5 images and it already got irritating.. is it possible to set a static position for the buttons?

You can use your keyboard
Logged
yoomai
Full Member
***
Posts: 247



WWW
« Reply #10 on: Jun 09, 2008, 03:49 AM »

Thank you, nice snippet. I really like HighSlide, I even paid for this nifty little software.
Logged

bunk58
Committed to MODx
*****
Posts: 996


David Bunker


WWW
« Reply #11 on: Jun 09, 2008, 04:26 AM »

Thanks for the feedback Yoomai
Logged

fruitwerks
Sr. Member
****
Posts: 333


I have 70 birds, I deal with enough sh.. :)


« Reply #12 on: Jun 21, 2008, 08:06 AM »

This is really nice, but is there a way to use only a single thumbnail for a series of images? And is there a way to have on-the-fly thumbnail creation?
Logged
Kristalin
Hello World
Moderators
*
Posts: 43


Try again..


WWW
« Reply #13 on: Jun 21, 2008, 08:38 AM »

perfeckt
Logged

Ти си блокиран! - каза той
Благодаря - казах аз
bunk58
Committed to MODx
*****
Posts: 996


David Bunker


WWW
« Reply #14 on: Jun 21, 2008, 10:39 AM »

Sorry for the late reply!
@fruitwerks
That's not the way Highslide works, it's designed to allow having multiple full size images open and dragging them around.
I'm sure the thumbnails could be generated on the fly by phpThumb or DirectResize etc.
@Kristalin
Thanks

EDIT You can remove the thumbnails and still have the full size images available!
« Last Edit: Jun 21, 2008, 07:13 PM by bunk58 » Logged

Pages: [1] 2 3   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP

Copyright © 2005-2008 MODxCMS, All rights reserved. Contact Us
Styles by ziworks.com

Powered by SMF 1.1.4 | SMF © 2005, Simple Machines LLC

Valid XHTML 1.0! Valid CSS!