Ok - it works but it wasn't easy, tutorial is hard to understand - it is mine easier tutorial: download lightbox from: http://www.symfony-project.org/plugins/sfLightboxPlugin unzip and again unzip - (to AUTHOR this plugin: you should use .zip format, not .tgz format - I had to unzipped it two times in windows) ;) Create in \plugins folder 'sfLightboxPlugin' and move there: LICENSE file, README file, config folder, lib folder (from unzipped folder), create in \web folder 'sfLightboxPlugin' and move there: css folder, image folder and js folder (from unzipped folder from 'web').
Now you can write in template: <?php use_helper('Lightbox'); ?> <- this is very important <?php //and for example: foreach ($pictures as $z): $images[] = array( 'thumbnail' => '/uploads/'.$z->getMiniImage(), 'image' => '/uploads/'.$z->getNormalImage(), 'options' => array('title' => 'some text') ); endforeach; $link_options = array( 'title' => 'Lightbox2', 'slidename' => 'lightbox', ); echo light_slideshow($images, $link_options); ?> I don't know why '$link_options' is obligatory........ and I prefer normal code to show images like in normal php and lightbox - I have hope you change it ;] But the worst thing is that I SEE BORDERS AROUND PICTURES !! In normal php and lightbox I could use css style and write: border:0; to disable it but in this lightbox I don't know how can I add css to disable borders. Could somebody help me ????????????? On 4 Kwi, 18:58, Loïc Vernet <qrf_c...@yahoo.fr> wrote: > Your wishes will become true in a few minutes... ^^ > > ________________________________ > De : Pablo Godel <pgo...@gmail.com> > À : symfony-users@googlegroups.com > Envoyé le : Samedi, 4 Avril 2009, 18h40mn 48s > Objet : Re: Re : [symfony-users] lightbox in symfony - how can I use it ? > > are there plans to update this plugin for symfony 1.2.x ? > > Pablo > > On Sat, Apr 4, 2009 at 9:59 AM, Loïc Vernet <qrf_c...@yahoo.fr> wrote: > > Hi, > > > To summaruze the helpers make the foreach for you... > > > The examples are quit explicit... Check out the exemple files witch are in > > the sfLightbox/ module > > of the plugin. > > > ++ COil > > > ________________________________ > > De : dziobacz <aaabbbcccda...@gmail.com> > > À : symfony users <symfony-users@googlegroups.com> > > Envoyé le : Samedi, 4 Avril 2009, 14h41mn 15s > > Objet : [symfony-users] lightbox in symfony - how can I use it ? > > > I found sfLightBoxPlugin: > >http://www..symfony-project.org/plugins/sfLightboxPlugin > > > I download it from this website, unzipped and moved it to \plugins > > directory, in \plugins\sfLightboxPlugin I have folders: > > config, lib, modules, web. I don't need to move files from these > > folders to \apps\frontend\config, \apps\frontend\lib, \apps\frontend > > \modules and \web ? > > > I have read 'Readme' from this site but I don't understand this. In > > normal php and normal lightbox I could use lightbox to show images > > like that: > > > <?php foreach ($pictures as $p): ?> > > > <a href='/uploads/<?php echo $z->getNormalImage(); ?>' > > rel="lightbox[images]"> > > <img src='/uploads/<?php echo $z->getMiniImage(); ?>' /> > > </a> > > > <?php endforeach; ?> > > > But in symfony when I click MiniImage I go to site where I see white > > page and NormalImage. I don't see slideshow. Could somebody help me ? > > I have never used lightbox in symfony and I am new in symfony ;) > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---