Results 1 to 17 of 17

Thread: Load swf in lightbox?

  1. #1
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Load swf in lightbox?

    Hi all,

    Does anyone know if it is possible to load a swf inside a lightbox in Contao by default?

    If not, is this possible at all?

    Thank you!

  2. #2
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Re: Load swf in lightbox?

    I found a lightbox called "LightWindow" 2.0 that allows swf files to be loaded.

    I copied the required file to my server, and also added the necessary line to the header of of my template in contao.

    However when I try to add the following href tags:

    Code:
    Link Name
    Then after clicking on submit, Contao filters it all out.

    How can I get Contao to keep those tags in?

    Thanks!

  3. #3
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Re: Load swf in lightbox?

    Quote Originally Posted by partisanentity
    I found a lightbox called "LightWindow" 2.0 that allows swf files to be loaded.

    I copied the required file to my server, and also added the necessary line to the header of of my template in contao.

    However when I try to add the following href tags:

    Code:
    Link Name
    Then after clicking on submit, Contao filters it all out.

    How can I get Contao to keep those tags in?

    Thanks!
    Sorry about my monologue.

    I figured it out, I placed it inside a html box.

    But nothing seems to be happening, wonder why...

  4. #4
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Re: Load swf in lightbox?

    Final comment from me

    In case anyone else is interested, it works and plays nice with Contao.

  5. #5
    User
    Join Date
    10-15-10.
    Posts
    279

    Default Re: Load swf in lightbox?

    I vote this the best 1on0 conversation in Contao :lol:

  6. #6
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Load swf in lightbox?

    not any more :D

  7. #7
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Re: Load swf in lightbox?

    Yes sorry about that, but eventually it worked, and I wanted to give back to the community that has helped me so much

  8. #8
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Re: Load swf in lightbox?

    I noticed something strange.

    LightWindow works nicely in Firefox.

    But IE8 is not loading the lightwindow.

    I added the links to css and javascript files in the header as is usual:

    Code:
    <script type="text/javascript" src="http://www.test.com/_includes/lightwindow/javascript/lightwindow.js"></script>
    <link rel="stylesheet" href="http://www.test.com/_includes/lightwindow/css/lightwindow.css" type="text/css" media="screen" />
    Then I added my link to a swf file using the correct lightwindow parameters:

    Theoretically this should not be a problem for IE8 or?

  9. #9
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Load swf in lightbox?

    Do you have a link to the page?
    The only thing I can think of is IE uses a <object> tag to recognise swf parameters, the rest use <embed>, but I don't know how that fits with your js, the lightbox etc

  10. #10
    User
    Join Date
    04-27-10.
    Posts
    134

    Default Re: Load swf in lightbox?

    Have you tried something like below using mediabox. Just select mediabox in the layout. Worked on my install without the need for additional extension.

    Code:
    <a rel="lightbox[lightbox 300 300]" href="tl_files/samcam/flash/flash.swf">
    click here swf
    </a>
    300 x 300 being the width and height

  11. #11
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Re: Load swf in lightbox?

    I tried

    Code:
    test
    But this only opens a white box with nothing in it.

    I tried opening an image and it worked with the lightbox. It just doesnt seem to do anything if I link it to the flash file.

  12. #12
    User
    Join Date
    04-27-10.
    Posts
    134

    Default Re: Load swf in lightbox?

    You need to use moo_mediabox not moo_slimbox - check you have that selected in the layout.[attachment=0:268s49cw]moo.JPG[/attachment:268s49cw]

  13. #13
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Re: Load swf in lightbox?

    Quote Originally Posted by vinchenzison
    You need to use moo_mediabox not moo_slimbox - check you have that selected in the layout.[attachment=0:39idu2fy]moo.JPG[/attachment:39idu2fy]
    I double checked, I did have moo_mediabox ticked.

    But only a white box appears if I link to the swf strangely enough.

  14. #14
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: Load swf in lightbox?

    Your rel="lightbox[flash 945 668] does not have closing "

  15. #15
    User
    Join Date
    06-20-10.
    Posts
    64

    Default Re: Load swf in lightbox?

    Quote Originally Posted by ramjet
    Your rel="lightbox[flash 945 668] does not have closing "
    It's not missing on the actual website, I simply typed here into the forum wrong

  16. #16
    User
    Join Date
    04-27-10.
    Posts
    134

    Default Re: Load swf in lightbox?

    Can you post a link?

  17. #17
    User
    Join Date
    10-15-10.
    Posts
    279

    Default Re: Load swf in lightbox?

    Quote Originally Posted by ramjet
    rel="lightbox[flash 945 668]
    Does it matter that it's inputed as lightbox[flash instead of lightbox[lightbox ?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •