Results 1 to 9 of 9

Thread: Name of the extension?

  1. #1
    New user
    Join Date
    09-18-09.
    Posts
    5

    Default Name of the extension?

    I like the new look of TYPOlight website, however I got lost looking this community forum.

    The video pop-up window on home page is cool with a dark border. Is it a TYPOlight extension, that can embed videos on pop-up window?

  2. #2
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: Name of the extension?

    The Typolight home page uses MediaBox:
    http://iaian7.com/webcode/Mediabox

    I don't believe there is an extension for it, currently -- unless it's named differently.
    Brian

  3. #3
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: Name of the extension?

    Mediabox will be available as part of the TYPOlight core from version 2.8.

  4. #4
    Experienced user
    Join Date
    08-21-09.
    Posts
    563

    Default Re: Name of the extension?

    Nice!!!
    Brian

  5. #5
    User
    Join Date
    08-15-09.
    Location
    Sweden
    Posts
    82

    Default Re: Name of the extension?

    It's easy to implement MediaBox right now. No need to wait for TL 2.8. I have used it on a site for a while now to show movies:

    http://www.lonka.se/filmer.html
    (In swedish)
    The list of movies is pulled from Vimeo through some php and xml, and then shown in Mediabox.

  6. #6
    New user
    Join Date
    09-28-09.
    Posts
    11

    Default Re: Name of the extension?

    Hi Ola,

    Could you share how to make it work? I've added all the required .js and .css files, but it just won't work.
    I have to admit that lightbox didn't work for me either, so maybe it's a local problem.

    Did you do anything special, other then adding the JS and CSS files?

    Thanks in advance!

    Cheers,
    Xs.

  7. #7
    User
    Join Date
    08-15-09.
    Location
    Sweden
    Posts
    82

    Default Re: Name of the extension?

    First, make sure you download MediaboxAdvanced. The regular Mediabox is for mootools v1.11 only. MediaboxAdvanced uses Mootools v1.2 that the latest TYPOlight version uses. MediaboxAdvanced can be downloaded here:
    http://iaian7.com/webcode/mediaboxAdvanced

    Upload the Mediabox css-files, javascript-files and image-files to your webbserver. I did put the files in the TYPOlight plugins folder, but you can choose whatever directory you want. Also don't forget to add links to the files in the header section.

    Since TYPOlight uses slimbox you must either remove slimbox or alter the MediaboxAdvanced so they don't interfere with each other.

    1.
    If you want to use only MediaboxAdvanced, then you must remove Slimbox so it is not included in the page header.

    2.
    If you want to use both Slimbox and MediaboxAdvanced, i.e. Slimbox for images and MediaboxAdvanced for videos, you must alter the MediaboxAdvanced javascript a little:

    Change this line in the bottom of the javascript:
    Code:
    return el.rel && el.rel.test(/^lightbox/i);
    Change to this:
    Code:
    return el.rel && el.rel.test(/^mediabox/i);
    With this little change you can now use Mediaboxadvanced by using mediabox as the rel-attribute in links:
    Code:
    (Using the normal lightbox as rel-attribute will open the normal slimbox.)

  8. #8
    New user
    Join Date
    09-28-09.
    Posts
    11

    Default Re: Name of the extension?

    Funny, i did all the things you said without any luck, so i was now trying some other lightbox clones, but again without any luck.

    I was preparing it to mediabox again to provide you a link to see how i implemented it, and guess what, it works

    I'm trying to go back to see what is different this time. And i think it's the order of calling the JS files. I it was in the wrong order (does that make sense?). I had mediabox.js first and then mootools.js, now the other way around. Makes sense now actually, but didn't think of it before

    So thanks for helping me :D

    Cheers,
    Xs.

  9. #9
    User
    Join Date
    08-15-09.
    Location
    Sweden
    Posts
    82

    Default Re: Name of the extension?

    Glad you got it working! The order of the javascript-files is important. The mediabox javascript needs to come after the mootools javascript since mediabox uses functions in mootools.

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
  •