August 16, 2007 – 5:09pm New symfony plugin: sfLightWindowPlugin

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.

Posted in  Web Development   |     |  delicious  Digg

20 Responses to “New symfony plugin: sfLightWindowPlugin”

  1. 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

  2. Thanks Eric, I didn’t catch that!

    By Scott Meves on Aug 17, 2007

  3. Hey, good to see the plugins progressing a long. The list is becoming longer and longer.

    By Thierry on Aug 18, 2007

  4. 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

  5. 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

  6. How do i fix the problem amrin commented?

    thanks

    By Celso on Sep 25, 2007

  7. how do i use flash paper?

    By Celso on Oct 19, 2007

  8. 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

  9. 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

  10. great plugin, documentation is a bit vague though

    By frustrated on Feb 29, 2008

  11. 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

  12. 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

  13. @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

  14. 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

  15. @Symbiat:
    Interesting. I’m not sure exactly what is happening, although I can see a problem with 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" />
    

    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

  16. 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

  17. 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

  18. 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

  19. @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

1 Trackback(s)

  1. Aug 31, 2007: rpsblog.com » A week of symfony #33 (13-&gt;19 August 2007)

Post a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word