#1 2007-09-22 13:05:51
- just2b
- Member
- Registered: 2007-05-30
- Posts: 17
Slimbox with v 2.0
Hi,
anyone tried the slimbox for v1 with v2 and got a working sample?
I just get js errors
gallery.Transitions has no properties
[Break on this error] gallery.Transitions[this.galleryData[num].transition].pass([
when I include the slightbox.js file
help would be great!
georg
Offline
#2 2007-09-23 02:18:59
Re: Slimbox with v 2.0
That slimbox for smoothgallery replaces the gallery's populate code... (Which was only needed to fix a bug which is now fixed upstream)
You have to modify the code accordingly to the new system in sg 2.0 ![]()
Offline
#3 2007-09-23 02:36:01
- just2b
- Member
- Registered: 2007-05-30
- Posts: 17
Re: Slimbox with v 2.0
jon1012 wrote:
That slimbox for smoothgallery replaces the gallery's populate code... (Which was only needed to fix a bug which is now fixed upstream)
You have to modify the code accordingly to the new system in sg 2.0
ok thx... so i guess this is a quite hard thing, including the preloader and everything? ![]()
Offline
#4 2007-10-06 07:10:49
- OnekO
- New member
- Registered: 2007-10-06
- Posts: 3
Re: Slimbox with v 2.0
This is my new makeLink function:
Code:
makeLink: function(num) {
var imagen=this.galleryData[num].image;
var desc=this.galleryData[num].description;
this.currentLink.setProperties({
href: this.galleryData[num].link,
title: this.galleryData[num].linkTitle,
rel: this.galleryData[num].linkRel
})
this.currentLink.addEvent(
'click',
function (e) {
new Event(e).stop();
Lightbox.show(imagen, desc);
}
);
if (!((this.options.embedLinks) && (!this.options.showArrows) && (!this.options.showCarousel)))
this.currentLink.setStyle('display', 'block');
},And css:
Code:
#lbOverlay{
z-index:500;
}
#lbCenter{
z-index:1000;
}
#lbCenter a{
z-index:1001;
}
#lbBottomContainer{
z-index:1002;
}It's working (with non-critical issues) at http://oneko.eu/Lilium/galeria.html. Sorry for my english, i'm a spanish speaker from basque country. Any suggestion or correction is welcomed.
Offline
#5 2007-10-11 16:28:52
- kmb40
- Big chatter
- Registered: 2007-03-06
- Posts: 25
Re: Slimbox with v 2.0
I hate to tell you this, but the SmoothGallery on this website is extremely buggy on both Firefox & IE. Often opening the wrong image or bad rendering of lightbox.
Offline
#6 2007-10-11 16:38:55
- kmb40
- Big chatter
- Registered: 2007-03-06
- Posts: 25
Re: Slimbox with v 2.0
I'm talking about the website corresponding to the above link.
Offline
#7 2007-10-12 08:16:53
- OnekO
- New member
- Registered: 2007-10-06
- Posts: 3
Re: Slimbox with v 2.0
Work in progress, sorry ![]()
IE isn't a valid navigator for me, that's why IE isn't supported at my sites (at least at beginning). And the bad rendering of lightbox are the 'non-critical issues' that i refered.
Last edited by OnekO (2007-10-12 08:19:38)
Offline
#8 2007-10-15 04:44:36
- kmb40
- Big chatter
- Registered: 2007-03-06
- Posts: 25
Re: Slimbox with v 2.0
I look forward to your updates.
Offline
#9 2007-11-20 10:01:47
- dolly2
- New member
- Registered: 2007-11-20
- Posts: 2
Re: Slimbox with v 2.0
this one is working for me, with slimbox extended. I'll put it online in a few days...
You just have to add an option, like this:
var myGallerySet = new gallery($("myGallery"), {
timed: false,
slimboxRev:"height=300px, width=500px" // <===== this is the line to add
});
It allows you to disable slimbox (just don't add slimbox option) or to change dimensions easily. There's also a simple test to check for slimbox - (it should use Lightbox object).
this is my makeLink function:
makeLink: function(num) {
options=this.options;
legend=this.galleryData[num].title+'::'+this.galleryData[num].description; //DW pour slimbox
this.currentLink.setProperties({
href: this.galleryData[num].link,
title: this.galleryData[num].linkTitle,
}).addEvent('click', function(event){ //DW ADDEVENT (pour slimbox)
event = new Event(event);
if((typeof(Lightbox)!="undefined")&&(typeof(options.slimboxRev)!="undefined")){
event.stop();
Lightbox.show(this.href, legend, options.slimboxRev);
}
});
if (!((this.options.embedLinks) && (!this.options.showArrows) && (!this.options.showCarousel)))
this.currentLink.setStyle('display', 'block');
},
Last edited by dolly2 (2007-11-20 10:02:30)
Offline
#10 2007-11-23 04:24:25
- manight
- Big chatter
- Registered: 2007-03-16
- Posts: 25
Re: Slimbox with v 2.0
Great job so far! I hope to find here a full repack of SG2.0+slimbox soon
Thanks so far
Offline
#11 2007-11-28 08:27:17
- drmikey
- New member
- Registered: 2007-11-28
- Posts: 3
Re: Slimbox with v 2.0
I tried this code and I still can't get the lightbox effect to work. Darn! I appreciate the effort to get this to work!
Offline
#12 2007-11-30 14:02:08
- manight
- Big chatter
- Registered: 2007-03-16
- Posts: 25
Re: Slimbox with v 2.0
I hope someone comes to save us ![]()
Offline
#13 2007-12-12 13:01:37
- jiggliemon
- New member
- Registered: 2007-11-30
- Posts: 2
Re: Slimbox with v 2.0
dolly2 wrote:
this one is working for me, with slimbox extended. I'll put it online in a few days...
You just have to add an option, like this:
var myGallerySet = new gallery($("myGallery"), {
timed: false,
slimboxRev:"height=300px, width=500px" // <===== this is the line to add
});
It allows you to disable slimbox (just don't add slimbox option) or to change dimensions easily. There's also a simple test to check for slimbox - (it should use Lightbox object).
this is my makeLink function:
makeLink: function(num) {
options=this.options;
legend=this.galleryData[num].title+'::'+this.galleryData[num].description; //DW pour slimbox
this.currentLink.setProperties({
href: this.galleryData[num].link,
title: this.galleryData[num].linkTitle,
}).addEvent('click', function(event){ //DW ADDEVENT (pour slimbox)
event = new Event(event);
if((typeof(Lightbox)!="undefined")&&(typeof(options.slimboxRev)!="undefined")){
event.stop();
Lightbox.show(this.href, legend, options.slimboxRev);
}
});
if (!((this.options.embedLinks) && (!this.options.showArrows) && (!this.options.showCarousel)))
this.currentLink.setStyle('display', 'block');
},
Do you have a way to make the slim bow auto-resize to the images size? W/O the rev w&h outlined?
Offline
#14 2007-12-12 13:28:57
- jiggliemon
- New member
- Registered: 2007-11-30
- Posts: 2
Re: Slimbox with v 2.0
I got the Slightbox to work with the Smoothgallery2.0, But now my little hack (using the History manager) stopped working. .
http://www.echo-factory.com/index.php?o … chogallery
<script type="text/javascript">
function startGallery() {
HistoryManager.initialize();
var myGallery = new gallery($('myGallery'), {
showInfopane: false,
useHistoryManager: true,
showCarousel: false,
timed: false,
showArrows : false,
lightbox: true
});
HistoryManager.start();
var mylightbox = new Lightbox();
$('img(98)').addEvent('click', function() { myGallery.goTo('0'); });
$('img(99)').addEvent('click', function() { myGallery.goTo('1'); });
}
window.onDomReady(startGallery);
</script>
<div id="gallery_wrapper">
<div id="myGallery" class="clearfix">
<div class="imageElement">
<h3>Smart-tools-front</h3>
<p>SmartTools Datasheet</p>
<a href="http://www.echo-factory.com/images/stories/projectgallery/61/smarttools-front.jpg" title="open image" class="open"></a>
<img src="phpt/phpThumb.php?src=/images/stories/projectgallery/61/smarttools-front.jpg&w=480&h=300&q=100" class="full" />
<img src="http://www.echo-factory.com/images/stories/projectgallery/61/smarttools-front.jpg" class="thumbnail" />
</div>
<div class="imageElement">
<h3>Smart-tools-back</h3>
<p>SmartTools Datasheet</p>
<a href="http://www.echo-factory.com/images/stories/projectgallery/61/smarttools-back.jpg" title="open image" class="open"></a>
<img src="phpt/phpThumb.php?src=/images/stories/projectgallery/61/smarttools-back.jpg&w=480&h=300&q=100" class="full" />
<img src="http://www.echo-factory.com/images/stories/projectgallery/61/smarttools-back.jpg" class="thumbnail" />
</div>
</div>
<div id="navigation" class="clearfix">
<ul>
<li id="l-nav"></li>
<li class="thumb" id="img(98)">
<a href="javascript:void(0);">
<img src="phpt/phpThumb.php?src=/images/stories/projectgallery/61/smarttools-front.jpg&w=23&sx=400&sy=300&sw=69&sh=69" border="0" />
</a>
</li>
<li class="thumb" id="img(99)">
<a href="javascript:void(0);">
<img src="phpt/phpThumb.php?src=/images/stories/projectgallery/61/smarttools-back.jpg&w=23&sx=400&sy=300&sw=69&sh=69" border="0" />
</a>
</li>
<li id="r-nav"></li>
</ul>
</div>
</div>
Offline