Jump to:

10979 Posts in 2722 Topics by 1815 members

All other Modules

SilverStripe Forums » All other Modules » sIFR parameters with ":"

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2422 Views
  • vloox
    Avatar
    Community Member
    2 Posts

    sIFR parameters with ":" Link to this post

    I'm trying tu use sIFR module but I can only use with sScelector and font parameter:

    Sifr::replaceElement("h1", "din");

    when I try a third parameter like sColor:

    Sifr::replaceElement("h1", "din",sColor:"#000000");

    I get:

    Parse error: syntax error, unexpected ':' in...

    There's a way to get this work? Thanks.

  • Phill
    Avatar
    Community Member
    75 Posts

    Re: sIFR parameters with ":" Link to this post

    Hey vloox

    i had the same problem but managed to solve it by wrapping the sColor:"#000000" type parameters in single quotes like this

    Sifr::replaceElement("h2", "bellgotic",'sColor:"#fe6e0e",sLinkColor:"#fe6e0e", sBgColor:"#ffffff", sHoverColor:"#fe6e0e"');
    Sifr::loadSifr();

    this also might help the latest release v0.1 would only work for me on ie7 but not firefox (2 i think) but the trunk version seems to work fine strait from install http://www.silverstripe.org/assets/modules/trunk/sifr-trunk-r66254.tar.gz

  • UncleCheese
    Avatar
    4085 Posts

    Re: sIFR parameters with ":" Link to this post

    This module really needs to be updated to use sIFR 3. I had horrible problems with it and had to hack the core code to use the newer version.

  • vloox
    Avatar
    Community Member
    2 Posts

    Re: sIFR parameters with ":" Link to this post

    Thanks Phill, I'm using the trunk version and works fine in IE7, FF2, FF3 and Opera 9.

  • Phill
    Avatar
    Community Member
    75 Posts

    Re: sIFR parameters with ":" Link to this post

    Just thought i put this up here because some might find it usfull, if using the sifr module with the gallery module (lightbox) and you have the problem with the sifr displaying in front of the light box try adding

    sWmode:"opaque"

    to the options when calling replaceElement() its took me a while to work this out although it is kind of mentioned in sifr.php comments

    2422 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.