Welcome, Guest. Please login or register.
Did you miss your activation email?
February 11, 2012, 11:46:43 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
149544 Posts in 21091 Topics by 7531 Members
Latest Member: cwsoft
* Home Help Search Login Register
Pages: [1] 2 3 ... 9   Go Down
Print
Author Topic: Smooth Gallery Module  (Read 58996 times)
ToS

Offline Offline

Posts: 26



WWW
« on: January 07, 2007, 10:09:39 AM »

Another gallery module...well, If you ask me, there can never be enough modules no matter what is the purpose.

Gallery itself was taken from JonDesign and implemented with great pains & many hours of debugging(note that this is my firs module for wbaker). I'm still not sure wether the automatic generation of thumbnails works, please confirm if it does. Also your comments & ideas are welcome(not that I am obligating myself to react acordingly). It was done for baker 2.6.x, using helloWorld framework. I quite doubt that it will validate under any standard but it does render in 2 most popular browsers & and my favourite: Opera.
I'd appreciate if someone would be kind enough to install it & post a preview link so everyone can enjoy viewing it.
ATTACHED VERSION: 0.4
Logged

If all you ever use is an ethernet cable, everything starts to look like an RJ45 jack.
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6817


WWW
« Reply #1 on: January 07, 2007, 10:45:05 AM »

Had a wee look at it, installs smoothly on a WAMP (PHP5 & MySQL5) System. Imediatly recognises the pictures and creates the Thumpnails for the preview bar.

Haven't yet played with the settings though. Would like to see an option for opening the full pictures in a pop-up or new window ... something for the next release?

Going to try installing it onto my Webspace (LAMP) and let you know ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

ipfelkofer

Offline Offline

Posts: 16


WWW
« Reply #2 on: January 07, 2007, 11:21:29 AM »

Have installed the module on LAMPP, no problem. Looks very good!

Suggestions/Questions:

1. Would prefer to open image in a separate window with colse function
2. Fiile name with slash is shown in two lines - would like to have it in one line
3. How can the background be changed? (black does not fit in my design at all)
4. Is an upload function planned?
5. Can the second line of the description be added manually?
6. Do you need a German translation?

Regards
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7659



WWW
« Reply #3 on: January 07, 2007, 12:07:06 PM »

Hello,

looked at the code and therse should be done the following:

1. Please replace all variabels $module_directory with hardcoded modul names. During installation the pathes variables didn't work wich makes it on some hosted servers impossible to install the modul.
2. Language support should be added and all hardcoded text in the files should be replaced with language variables.

Thats what I've seen from the technical site, will test the functionality later and if there are problems I'll post it.

By the way looks very good for your first WB modul and you are right there can never be enough modules for WB. So keep on your good work and I'm pretty shure we have this modul soon on the addons page.  wink

Matthias
Logged
ToS

Offline Offline

Posts: 26



WWW
« Reply #4 on: January 07, 2007, 06:53:20 PM »

kweitzel: currently it opens new pics in new window, but it won't be 2 hard 2 make a simple javascript window that closes when you click on the pic or something like that.

ipfelkofer:
2. filename with "-" is split in two parts, maybe I will put a way to change desired split character. or just to turn that option on/off
3. almost everything is changed via /modules/smoothgallery/css/jd.gallery.css (I wish you luck.)
4. Upload, not quite, but I could put it in a Idle-TODO-list, maybe it would be wise to make a separate upload module.
5. description can be set only by formatting the filename, I wouldn't want to make track of all files in a database just so they would have propper descriptions (Any ideas other than DB?).
6. I guess I'll need one now that I have to make it cross/language

ruebenwurzel:
1. I so-much-bloody-hate hardcoding but if I have to do it, ok.
2. Language supp...pain in the...one of thiese days (I now have some other projects to finish)
Logged

If all you ever use is an ethernet cable, everything starts to look like an RJ45 jack.
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7659



WWW
« Reply #5 on: January 07, 2007, 07:06:24 PM »

Hello,

if you promise not to change anything on this modul the next two days I'll hardcode the dirs and add a language support to a new version 0.5 wich then could be a start point for further versions. So if this is ok, give a short post.

Matthias
Logged
ToS

Offline Offline

Posts: 26



WWW
« Reply #6 on: January 07, 2007, 07:54:11 PM »

As good as done, dirs are not so much of a problem but I don't know how mlng supp is done. Please, you do that (add your name to the credits) and I'll then take over & make some of the upgrades(this is not a promise):
Code:
-change name-desc split character
-select wether images should be parsed tru resizer.php for normal showing
-extension selection & fix
-css edit
-preview on modify (higly unlikely)
-bool: put desc under the gallery
Logged

If all you ever use is an ethernet cable, everything starts to look like an RJ45 jack.
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6817


WWW
« Reply #7 on: January 08, 2007, 10:13:19 AM »

Hi ToS ...

like I said before, the images open in the same browser window (at least in FF, IE6 & IE7), not in a new window.

On my Webhost, for me the pictures are not loading (4 Pictures in a subfolder, each about 10kb). Does this happen for you here [edit: Link removed] as well? The Folder is [WBROOT]/media/ferrari3/ and the pictures have following naming: ferrari0051.JPG

[Edit]Do-oh ... you need to have the extension in lowercase for it to work![/Edit]

cheers

Klaus
« Last Edit: February 09, 2009, 07:18:59 AM by kweitzel » Logged

WebsiteBaker Org e.V. - for WebsiteBaker

ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7659



WWW
« Reply #8 on: January 08, 2007, 09:36:03 PM »

Hello,

attached you find version 0.5 of this fantastic gallery:

Release History:
v0.5  Jan 08, 2007 (Matthias Gallas)
 - added version History to info.php
 - added german language file
 - added language support
 - a lot of code cleaning, fixing and sorting in all files
 - replaced all directory variables with hardcoded pathes
 - changed all copyright notices now includes 2007
 
v0.4  Jan. 07, 2007 (ToS)
 - Initial Release

TODO
-change name-desc split character
-select wether images should be parsed tru resizer.php for normal showing
-extension selection & fix
-css edit
-preview on modify (higly unlikely)
-bool: put desc under the gallery

BUGS
- If you disable "prev/next links" you also have to disable "show image direct link"
  otherwise no image is shown

Have fun

Matthias

Edit:
Newer version some posts below
« Last Edit: January 15, 2007, 02:28:19 PM by ruebenwurzel » Logged
chris

Offline Offline

Posts: 35


« Reply #9 on: January 09, 2007, 10:38:05 AM »

PERFECT!!! Very good work. smiley
Logged
tomhung

Offline Offline

Posts: 353


« Reply #10 on: January 09, 2007, 04:02:34 PM »

very nice... i was actually thinking the other day of converting this gallery to WB... glad you did it instead of me.


Greg
Logged
Hans

Offline Offline

Posts: 560


« Reply #11 on: January 10, 2007, 11:16:44 AM »

Thanks ToS and Matthias! Really great, hope the resizer function will be available soon.
Hans
Logged

Hans - Nijmegen - The Netherlands
ToS

Offline Offline

Posts: 26



WWW
« Reply #12 on: January 10, 2007, 04:41:20 PM »

@Hans -> resizer, most probably in v0.6 because it ain't much fuss to get it to work.

@ruebenwurzel : Nice code formatting, tnx 4 the help.
Quote
If you disable "prev/next links" you also have to disable "show image direct link"
  otherwise no image is shown
Apparently this is a SmoothGallery error, I've contacted the author. Will see what's wrong & I hope to get a fixed one before the release of v0.6. This bug prevents you to make a slideshow without next/prev links  sad .

@kweitzel : sorry for not loading other than lowercase picture ext's. Will fix that in v0.6

PLEASE, give me some time to finish 0.6, I have other things on my schedule right now.
Logged

If all you ever use is an ethernet cable, everything starts to look like an RJ45 jack.
kweitzel
Forum administrator
*****
Offline Offline

Posts: 6817


WWW
« Reply #13 on: January 10, 2007, 09:47:19 PM »

hey, relax ... no need to apologise wink If we wouldn't try these things, you wouldn't know about the errors, would you?

So ... relax and make it a good release ...

cheers

Klaus
Logged

WebsiteBaker Org e.V. - for WebsiteBaker

ToS

Offline Offline

Posts: 26



WWW
« Reply #14 on: January 15, 2007, 01:51:49 PM »

v0.6(Beta) Jan 15, 2007 (ToS)
 - added to css file | .jdGallery .slideInfoZone h2 | added: text-align: left;
 - fixed modify.php | changed 'showCaurosel' option to correct one: 'showCarousel'
 - added change-able name-desc split character
 - added resizer_inteface.ph p to prevent future update problems of the smoothGallery itself
 - added option to select wether images should be parsed tru resizer.php for normal showing
 - added option to select what extensions are to be selected for showing
 - fixed not loading extensions in wrong casing
 - fixed use hard-coded links for thumbnails (not integrated thumb generator)
 - added option: select if the links should be opened in new javascript window or in active.
 - added cache dir support/handling

TODO
-bool: put desc under the gallery
-add instructions: how to update the module with new smooth gallery
-css edit
-preview on modify (higly unlikely)
-translate everything

ATTACHED: BETA VERSION 0.6
Logged

If all you ever use is an ethernet cable, everything starts to look like an RJ45 jack.
ipfelkofer

Offline Offline

Posts: 16


WWW
« Reply #15 on: January 15, 2007, 03:17:53 PM »

Version 0.6b looks pretty good already.

Most of my requests seem to be included.

One remark after a short look at the module:

When I have the upper line (thumbs moving left and right for selection) on while stepping thru the pictures using the left and right arrow the name of the picture is shown correct underneath the picture, while the name of the picture underneath the thumbs row is not moved, the preview thumb is, however.

Regards
Logged
tomhung

Offline Offline

Posts: 353


« Reply #16 on: January 15, 2007, 08:02:55 PM »

your version needs to be upgraded in your info.php
Logged
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7659



WWW
« Reply #17 on: January 15, 2007, 08:25:57 PM »

Hello,

what a hell for a good image gallery  grin  grin

Added the missing german language lines, changed version to 0.7 and as i have found no more great bugs i have released it at the addons page. Attached you find the same file.

Thanks for your addition to WB, I'm shure a lot of people like this gallery

Matthias

Edit:
newer version some posts below
« Last Edit: February 16, 2007, 12:03:34 PM by ruebenwurzel » Logged
hr_d

Offline Offline

Posts: 51



WWW
« Reply #18 on: January 16, 2007, 01:29:11 PM »

Hello,

I installed and tested the module. It runs without errors and looks very beautiful.

Best thanks and greeting from germany (Stuttgart)

hr_d grin
Logged
oeh

Offline Offline

Posts: 190



« Reply #19 on: January 16, 2007, 02:47:20 PM »

Hi.

I found this img. gal to be so amaizing, that I felt i had to make an Norwegian Language file.

If anyone should feel the nedd to correct it, feel free to do so.

Se attached NO.php.zip file.

Regards
OEH ;-}
Logged

Good bye ;-{(
oeh ;-}>
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7659



WWW
« Reply #20 on: January 16, 2007, 05:43:03 PM »

Hello,

thanks for the language file. Added it to the modul on the addons page.

Matthias
Logged
ToS

Offline Offline

Posts: 26



WWW
« Reply #21 on: January 17, 2007, 02:47:18 PM »

I'm currently working on v0.8 but it will not be released until new version of Smooth Gallery is up and tested.

v0.8 Jan ??, 2007 (ToS)
 - added third option for opening image directly (equals: taget="_blank")
 - added Norvegian language (by oeh)
 - added option to put gallery description at the bottom of page
 - removed Note in modify.php

Tell me ppl, should I include css editinig and what css options should be available for editing?
What options would you like ot see in v1.0 ?
Logged

If all you ever use is an ethernet cable, everything starts to look like an RJ45 jack.
ruebenwurzel
WebsiteBaker Org e.V.

Offline Offline

Posts: 7659



WWW
« Reply #22 on: January 17, 2007, 04:00:00 PM »

Hello,

CSS Editing would be nice. But as I'm not shure how the css handling from WB modules will be solved in WB 2.7 it's difficult to say how this could be solved. At the moment from the most modules the css files are displayed in the body tag wich makes the code invalid. In 2.7 the css of all modules will be displayed in the header. So i see two possible solutions:

1. Using the database to store the css
2. Using a file to store the css.

If it is stored in the database it could be easily integrated in the modify.php and in 2.7 we can add a function wich can look for informations in the database and create an output in the header. This needs that the stylesheets are in every module stored at the same place or alternativ we need a stylesheet table (like search table) where every modul adds his information and Wb generates from this script a css file. But using to much database requests slow down the page.

If it is stored as a file in the modules directory it also can easiliy be edited (look for our template edit modul) in the modify.php of the modul. The WB funnction then needs to import all css files of the modules in the header. This is then scriptbased. Problem will be that only one css file is for all sections of the modul (you have no ability to edit the layout different for every section where the modul is used), but you need no database requests.

So thats the ideas, and as i say don't know how the way for the future is. So maybe we wait with this till ryan is back from holiday and we can talk with him about this.

Matthias
Logged
ToS

Offline Offline

Posts: 26



WWW
« Reply #23 on: January 17, 2007, 11:56:25 PM »

How about:

<link rel="stylesheet" href="style.php" type="text/css" />

Haven't worked out the usage but i like code perversions...
Logged

If all you ever use is an ethernet cable, everything starts to look like an RJ45 jack.
pelotillehuito

Offline Offline

Posts: 3


« Reply #24 on: February 07, 2007, 06:31:32 PM »

Hello everyone,

I have installed this beautiful module and now I am testing, but I just can't get the 'useThumbGenerator' function to generate thumbnails.
Where is this function to configure? I have modified the included modify.php file in the next line:

$fetch_page_content['options']['useThumbGenerator'] = 'true';

but this doesn't work, I have tryed almost every possible combination, considering the known bugs.
When I view the generated code, with every possible combination, it shows:

<script type="text/javascript">
   function start_gallery_9378() {
      var gallery_9378 = new gallery($('gallery_9378'), {
         fadeDuration: 500,
         showArrows: true,
         showCarousel: true,
         showInfopane: true,
         embedLinks: false,
         timed: false,
         delay: 9000,
      useThumbGenerator: false,
      debug: false,
      thumbGenerator: 'http://mywebsite/modules/smoothgallery/resizer_interface.php'});
   }

Anyone?
Logged
Pages: [1] 2 3 ... 9   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!