We’re pleased to announce the release of our latest symfony plugin, sfLightWindowPlugin. sfLightWindowPlugin provides great helper functions for LightWindow v2.0. LightWindow is a great improvement over the original Lightbox 2 script, and includes handlers for virtually all media types, including flash, quicktime, youtube videos, images, remote content, inline content, and more. Using this plugin, it’s amazingly simple to add these great effects to your symfony site.
Check out the sfLightWindowPlugin Demo for a closer look. You won’t be disappointed!
To download the sfLightWindowPlugin, visit the wiki page for download and installation instructions.



Hi,
nice work! But you have a slash too much in the url of your demo so an error 404 is generated by symfony …
(http://symfony.stereodevelopment.com/sfLightWindow/ -> http://symfony.stereodevelopment.com/sfLightWindow)
Greetings,
Eric
By Eric Bartels on Aug 17, 2007
Thanks Eric, I didn’t catch that!
By Scott Meves on Aug 17, 2007
Hey, good to see the plugins progressing a long. The list is becoming longer and longer.
By Thierry on Aug 18, 2007
I have implement lightwindow using sflightwindow on my project. but after I put the link to show an action
it’s display nothing, only loading…
please, anyone help me?
By amrin on Sep 13, 2007
I have found that sflightwidow will conflict with
visual_effect(’appear’, ‘post_comment’, array(’duration’ => 0.5)
so be careful if you use ajax visual effect on your template. please choose the effect that not used by your lightwindow
By amrin on Sep 13, 2007
How do i fix the problem amrin commented?
thanks
By Celso on Sep 25, 2007
how do i use flash paper?
By Celso on Oct 19, 2007
I found that with lw_image I can point to an image via relative address (e.g. ‘/sfLightWindowPlugin/gallery/0.jpg’). But with lw_button, to point to an image, I have to use full address (e.g. ‘http://project/sfLightWindowPlugin/gallery/0.jpg’), otherwise symfony will redirect to 404. Is this a bug?
By Jeff L on Nov 13, 2007
Thanks for this really nice plugin!
Only 1 problem: When I try to submit a form in a LightWindow using your plugin I get the following error in Firebug:
$(form).getElementsByTagName is not a function
getElements(false)prototype.js (line 2656)
serialize(false, undefined)prototype.js (line 2652)
_lwSingleFormCall(click clientX=0, clientY=0)lightwindow.js (line 1951)
submitForm(click clientX=0, clientY=0)lightwindow.js (line 360)
bindAsEventListener(click clientX=0, clientY=0)
I’m using the latest versions of script.aculo.us (1.8.0) and ProtoType (1.6.0).
Is this a know issue??
By JoostDJ on Nov 19, 2007
great plugin, documentation is a bit vague though
By frustrated on Feb 29, 2008
What kind of extra help are you looking for? Everything that you can do is demonstrated on the sfLightWindowPlugin page. Install the plugin, follow the first few examples and you’ll be off the races.
By Scott Meves on Feb 29, 2008
Do you have any sample code showing how to load an FLV player and movie file into a LightWindow?
By Symbiat on Apr 14, 2008
@Symbiat:
check out the demo page (http://symfony.stereodevelopment.com/sfLightWindow). All you have to do is set the ’src’ attribute to the .swf file.
By Scott Meves on Apr 14, 2008
Yes, Ive read through the template. Im playing an FLV file. My template contains a partial that contains this:
getThumbnail(), array(’width’ => 144, ’style’ => ‘border:2px solid #fff’)), ‘@playvideo?id=’ . $item->getId(), array(’title’ => ‘Video: ‘ . $item->getTitle())); ?>
When I click the link, the lightwindow loads a template that contains this:
<embed src=”/flvplayer.swf” width=”getWidth(); ?>” height=”getHeight(); ?>” type=”application/x-shockwave-flash” pluginspage=”http://www.macromedia.com/go/getflashplayer” wmode=”
opaque” flashvars=”file=getUrl(); ?>&displayheight=getHeight(); ?>&displaywidth=getWidth(); ?>&autostart=true” />
var so = new SWFObject(’/flvplayer.swf’,'player’,'getWidth(); ?>’,'getHeight(); ?>’,'7′);
so.addParam(”allowfullscreen”,”true”);
so.addVariable(”file”,”getUrl(); ?>”);
so.addVariable(”image”,”getThumbnail(); ?>”);
so.addVariable(”width”, “getWidth(); ?>”);
so.addVariable(”autostart”, “false”);
so.addVariable(”height”, “getHeight(); ?>”);
so.write(’player’);
The problem is the video appears to start playing before the loading has finished but then it starts playing again a second later after it has finished loading. Im just trying to figure out why that happens.
By Symbiat on Apr 15, 2008
@Symbiat:
Interesting. I’m not sure exactly what is happening, although I can see a problem with this:
I’m not sure if this is something with the comment filtering on this blog or if your embed src really does have a width set like this: width=”getWidth(); ?>” . That’s no good! Make sure you are passing the parameters into the helper properly, it looks like in this case it’s not parsing the PHP and instead is actually putting the function text “getWidth(); ?>” inside the width parameter….
By Scott Meves on Apr 15, 2008
Hmm… I took out the EMBED tag inside the “player” DIV and all I see now is a blank lightwindow. So it looks like JavaScript is not running inside the LightWindow. I vaguely remember reading about scripting being switched off by default in symfony helpers so maybe that’s it? Does this ring any bells?
By Symbiat on Apr 16, 2008
I don’t think it’s related to javascript. You might want to try and get the videos working without the symfony helpers and just do it the way Kevin does by hand (http://www.stickmanlabs.com/lightwindow/). That way at least you can rule out any issues with the symfony plugin.
By Scott Meves on Apr 16, 2008
The player loads and plays normally if I load the play action page in my browser directly. If I load the same page into LightWindow I get an empty (blank) window.
By Symbiat on Apr 17, 2008
@Symbiat:
Did you solved your Problem? I’ve got the same one. In LightWindow it just appears a blank window and if I load the page normally it works fine…
By MG-Programmer on Apr 29, 2008