#1 2008-02-17 07:14:58
- Jooakim
- New member
- Registered: 2008-01-31
- Posts: 7
Slimbox with SmoothGallery
Hi there!
I tried to use slimbox with smoothgallery, but it won't work! ;o
http://halovasjera.net/Skriblerier/test.html
Offline
#2 2008-02-25 04:03:43
- Jooakim
- New member
- Registered: 2008-01-31
- Posts: 7
Re: Slimbox with SmoothGallery
Hi, I've almost solved it now.
1. I had to edit jd.gallery.js. I had to add rel="lighbox" to .addClass('open'), like this:
Code:
this.currentLink = new Element('a').addClass('open').setProperties({
href: '#',
title: '',
rel: 'lightbox[smoothgallery]'2. Remove the very last line in slimbox.js.
3. I changed the <script>-part in activation of SmoothGallery in the html-file ( added Lightbox.init(); )
Code:
<script type="text/javascript">
function startGallery() {
var myGallery = new gallery($('myGallery'), {
timed: false,
defaultTransition: "fadeslideleft"
});
Lightbox.init();
}
window.onDomReady(startGallery);
</script>But it's still something wrong! ![]()
Edit: I fixed it! I had to edit slimbox.css: z-index: 9999; in #lbOverlay, and z-index: 99999; in #lbCenter, #lbBottomContainer {.
Last edited by Jooakim (2008-02-25 04:16:30)
Offline
#3 2008-03-03 14:01:53
- glanceatx
- New member
- Registered: 2008-03-03
- Posts: 2
Re: Slimbox with SmoothGallery
Hey man! First off, I love how you did this little hack with slimbox! ![]()
I followed your instructions and when I click the image it just shows the white box and nothing else...no errors in FireBug or anything. I was wondering if you had any idea why it is doing that?
I downloaded all the files and made sure my changes are made, that you supplied above.
Offline
#4 2008-03-03 14:03:22
- glanceatx
- New member
- Registered: 2008-03-03
- Posts: 2
Re: Slimbox with SmoothGallery
It will fade the background as well.
Offline
#5 2008-03-04 10:43:11
- dammi
- New member
- Registered: 2008-03-04
- Posts: 1
Re: Slimbox with SmoothGallery
Anybody having slimbox next and previous buttons working with smooth gallery, when having an image set.
When I have set the class="open" in
<a href="images/screenshots/pic.png" title="Justering af bemanding i eksisterende arbejdsplan" class="open" rel="lightboxset"></a>
the next and previous buttons will not work.
to glanceatx: are you sure that you image url's are correct? If not, it will hang with just the white box showing.
Offline
#6 2008-03-08 03:26:27
- Jooakim
- New member
- Registered: 2008-01-31
- Posts: 7
Re: Slimbox with SmoothGallery
Got that next/previous problem too, but It wasn't nesseccary for me, so I haven't looked in to it.
Offline
#7 2008-06-20 04:15:00
- RADE
- New member
- Registered: 2008-06-10
- Posts: 7
Re: Slimbox with SmoothGallery
The current Version 1.53 from the SlimBox doesn't work with this changes. Jooakim has
said (mail), that he has used the SlimBox Version 1.41. I have only the Versions 1.40 and
1.52 and both Versions wont work.
Is there anyone who know how the new Version of SlimBox will work?
Yes, i can search the old Version 1.41, but when its possible
i want to use the new Version with Key-Events.
Offline
#8 2008-06-23 00:41:06
- sayedwasim
- Member
- Registered: 2008-04-16
- Posts: 11
Re: Slimbox with SmoothGallery
Hi RADE,
Instead of inserting Lightbox.init(); try inserting Slimbox.scanPage(); and guess what, it works without removing the last line in slimbox.js this btw is for version 1.51 not sure of the latest version but its worth trying. Let me know if it works for the latest version.
Offline
#9 2008-06-24 02:58:58
- sayedwasim
- Member
- Registered: 2008-04-16
- Posts: 11
Re: Slimbox with SmoothGallery
Ok my mistake! In order for it to work in Firefox, you need to remove the last line in slimbox.js.
Offline
#10 2008-06-24 06:38:31
- RADE
- New member
- Registered: 2008-06-10
- Posts: 7
Re: Slimbox with SmoothGallery
Hi sayedwasim,
i think i have done all changes:
1.) edit jd.gallery.js
Code:
this.currentLink = new Element('a').addClass('open').setProperties({
href: '#',
title: '',
rel: 'lightbox[smoothgallery]'2.) Remove the very last line in slimbox.js
Code:
/* window.addEvent("domready", Slimbox.scanPage); */3.) I changed the <script>-part in activation of SmoothGallery in the html-file ( added Slimbox.scanPage(); )
Code:
<script type="text/javascript">
function startGallery() {
var myGallery = new gallery($('myGallery'), {
timed: false
});
Slimbox.scanPage();
}
/* window.onDomReady(startGallery); */ /* old??? */
window.addEvent('domready',startGallery);
</script>4.) edit slimbox.css: z-index: 9999; in #lbOverlay, and z-index: 99999; in #lbCenter, #lbBottomContainer
Now the SlimBox-Preload will shown all the time, when i click on a image.
Offline
#11 2008-06-24 08:27:02
- sayedwasim
- Member
- Registered: 2008-04-16
- Posts: 11
Re: Slimbox with SmoothGallery
hmmm, thats strange. Mine seems to be working perfectly. Try putting embedLinks: true right after timed: false, may be that should do it or may be mine is working coz i'm using manualData. Sorry I guess i'm not helping much, but just looking at the possibilities as to why mine is working and not yours. I am using slimbox version 1.52 what version are you using?
Is it possible you upload somewhere your jd.gallery.js file I could have a look at it and compare it with mine. BTW what browser are you viewing it on?
Laterz dude!
Offline
#12 2008-06-25 00:35:37
- RADE
- New member
- Registered: 2008-06-10
- Posts: 7
Re: Slimbox with SmoothGallery
I'm using SlimBox 1.52 too, so i must have made mistake, or you have forgotten to say me a modification ![]()
Have a look at the source... http://www.christian-koewing.de/SmoothBoxedGallery.zip
Thanks for your help ![]()
PS: Damn two more changes and the SmoothBox would be perfect^^
1. Do you know a mootools using Preloader for the complete Gallery? (SmoothGallery visible, when images loaded)
2. SmoothGallery upgrade to mootools 1.2 (for the new SlimBox 1.63 with Opera 9.5 Support)
Last edited by RADE (2008-06-25 02:09:43)
Offline
#13 2008-06-25 00:49:16
- sayedwasim
- Member
- Registered: 2008-04-16
- Posts: 11
Re: Slimbox with SmoothGallery
Hi,
Will look at your source and will let you know.
As for point 1. I'm not sure what you mean but take a look at my portfolio http://www.wasimalhaddad.net/portfolio.aspx the SmoothGallery is visible while the images are being loaded and i'm using manualData so that not all the images in the gallery are loaded at once.
For point 2. I'm waiting for that day too ![]()
BTW may be it could be your browser, you didn't tell me what browser you're viewing it on.
Offline
#14 2008-06-25 02:27:13
- RADE
- New member
- Registered: 2008-06-10
- Posts: 7
Re: Slimbox with SmoothGallery
I have tested it with Avant Browser (Internet Explorer 6), Opera 9.21 and FireFox 3.0 Beta 4.
Avant : boxed_demo = Gallery loaded, but SlimBox hang on image-click | boxed_demogroup = not loaded, images listed on page
Opera : boxed_demo = Gallery loaded, but SlimBox hang on image-click | boxed_demogroup = not loaded, images listed on page
FireFox : boxed_demo = not loaded, images listed on page | boxed_demogroup = not loaded, images listed on page
to Point 1: When your Preload run's with the demogroup you are my hero
...i want to have a gallerygroup on my page and sometimes the SmoothGallery hang, i think because of the many images.
to Point 2: let's change the code to upgrade the SmoothGallery to mootools 1.2. I'm a C# Programmer and not a Web-Specialist (AJAX, PHP, JS, aso.), but i understand the code *i think^^*. my problem is, that i don't know the js-code-standards.
Offline
#15 2008-06-25 02:53:56
- sayedwasim
- Member
- Registered: 2008-04-16
- Posts: 11
Re: Slimbox with SmoothGallery
ok i'm not that familiar with the gallery group* as I haven't used it yet, but let me try and see what I can do and will upload it on my server, but you will have to compare it with yours as I can't remember what changes I had made.
*By galleryGroup, you mean different sets of galleries or is it just one gallery with many images? Like on my site I used only one gallery. And the reason why your SmoothGallery could be hanging is coz its preloading all the images at once prior to displaying them. I suggest you use manualData. It preloads one image at a time, infact I got that tip from this forum.
Point 2: changing the code to upgrade to 1.2 is out of my league. Honestly speaking i'm not a pro in javascript, I have only mastered asp.net C# so I guess I will have to wait until Jon upgrades it to the new version. ![]()
Offline
#16 2008-06-25 04:01:19
- RADE
- New member
- Registered: 2008-06-10
- Posts: 7
Re: Slimbox with SmoothGallery
Yes i want to use more than one gallery, a group of 2 or 3 gallerys.
What did you mean with manualData ( this??? )? What must i change for that? ...is the
gallery loading always only the one image in this mode? ...and wenn i switch
to next it loads the next? That would be perfect.
Point 2: that's exactly my problem^^ *damn* ...but when we find a description of
changes from mootools 1.11 to 1.2, it should be possible to fix it, i wont wait for jon^^
http://blog.mootools.net/2008/6/12/moot … s-official
PS: Excuse my english, i hope it's not to bad^^ i'am from germany, where are you from? Is Wasim Al-Haddad your name?
Last edited by RADE (2008-06-25 04:14:36)
Offline
#17 2008-06-25 04:19:33
- RADE
- New member
- Registered: 2008-06-10
- Posts: 7
Re: Slimbox with SmoothGallery
Ahhh... in jd.Gallery.js the manualData:,... *omg* ^^
Offline
#18 2008-06-25 06:37:25
- sayedwasim
- Member
- Registered: 2008-04-16
- Posts: 11
Re: Slimbox with SmoothGallery
Well yes from what i'm experiencing, the images are loaded one at a time and when switching to next it loads the next one.
Yes my name is Wasim. I'm from Kenya. May be if you are on Yahoo! we could chat sometime.
Offline
#19 2008-06-26 00:40:18
- RADE
- New member
- Registered: 2008-06-10
- Posts: 7
Re: Slimbox with SmoothGallery
Hi Wasim,
i have no Yahoo Messanger, did you have ICQ?
Post #12: Have you found an error in my code? ...or should i compare it with the sources on your page? ![]()
Offline
#20 2008-06-26 04:46:32
- sayedwasim
- Member
- Registered: 2008-04-16
- Posts: 11
Re: Slimbox with SmoothGallery
Sorry didn't get time to have a look at your source, but yeah you can compare it with my source, and javascript which is at the root.
I don't have ICQ sorry!
Offline
#21 2008-09-17 07:31:58
- diuzza
- New member
- Registered: 2008-09-17
- Posts: 3
Re: Slimbox with SmoothGallery
Hi,
i have a problem with slimbox + smoothgallery.
With the next of slimbox i see only 2 photo, but there is 10 photo...
And with ie7 the slimbox is on the top of the page and the background isn't overshadow. Over the photo there is a black line...
Why?
Offline
#22 2008-09-19 08:06:59
- diuzza
- New member
- Registered: 2008-09-17
- Posts: 3
Re: Slimbox with SmoothGallery
Hi,
i have resolved the problem. i've forgotten the header
<code><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"></code>
Now i've another problem. The next and previous button don't work. Praticly i've 10 images but i see with the next only 2 images. And the next image isn't the next in order but this is take randomly. For exemple sometimes compare the same image next and previously.
Sorry for my bad english
Thanks for the attention
Offline
#23 2009-07-26 19:31:17
- DungFu
- New member
- Registered: 2008-12-30
- Posts: 4
Re: Slimbox with SmoothGallery
Ok, I have done the tweaks shown above to get Slimbox to work with SmoothGallery, and so far everything is going great! But, I do have one thing I want to try and implement that is not quite working right.
On the Slimbox homepage, it says to add:
Code:
rel="lightbox"
to the link tag, but this is not necessary after the tweaks shown above. But, later down the homepage, Slimbox has a feature to have albums that one can navigate through within Slimbox. to do this one must add:
Code:
rel="lightbox-atomium"
where atomium is the name of the album and it should work to navigate through them. Sadly, this does nothing when it is combined with SmoothGallery so I was wondering if anyone had any ideas on how to get this feature working correctly with a Slimbox/SmoothGallery combination?
Many thx,
DungFu
Offline
#24 2009-08-11 10:55:38
- DungFu
- New member
- Registered: 2008-12-30
- Posts: 4
Re: Slimbox with SmoothGallery
still no news about getting browsing to work while zoomed in in slimbox? Being able to browse while zoomed would make my website much easier to use, but I don't know enough javascript to get it working correctly. Help would be greatly appreciated.
Thx,
DungFu
Last edited by DungFu (2009-08-11 12:24:28)
Offline
#25 2009-08-24 23:43:27
- malazan
- New member
- Registered: 2009-08-24
- Posts: 1
Re: Slimbox with SmoothGallery
I followed this EXACTLY as I was supposed to, but now my smooth gallery and my slimbox is not working. Is there an update I need to be aware of or something? I hope someone can help.
Offline