Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules /

Discuss all other Modules here.

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

Trouble with sIFR


Reply


2 Posts   959 Views

Avatar
theoldlr

Community Member, 103 Posts

30 March 2010 at 10:38am

Edited: 30/03/2010 10:48am

I have the sIFR module partially working. It shows the proper font, but it does not show the proper text. Instead it shows the font name followed by "generated by sIFRGeneratorcom".

Also the optional variables for the color etc. are not working--I thought they might once the rest was straightened out. Here is the code I included in my Page.php:

Sifr::replaceElement(".claritty", "claritty",
'sColor:"#ffffff",
sBGColor:"#444444",
sHoverColor:"#000000"'
);
Sifr::loadSifr();

Thanks!!

Avatar
theoldlr

Community Member, 103 Posts

31 March 2010 at 3:31am

I discovered part of my problem. I read an old forum post wrong that I thought said sIFR v0.2 module was ready for sIFR 3. I started using the trunk version of the module which supports sIFR3 and now I am able to control the style of the flash text better.

Now I have a different set of problems. Including a css element like below for the background doesn't work if you are aiming for a transparent background. I do not see a way to change the sWmode to transparent in this version of the module.

Sifr::add_font('claritty', 'themes/copper/fonts/claritty.swf');
Sifr::replace_element('claritty', '.claritty', "'.sIFR-root {color: #000000; background: transparent;}'"); //<--background is still white
Sifr::activate_sifr();

Also, instead of using my text it says, "Please update the Flash Movie verstion to". I used http://www.sifrgenerator.com/wizard.html to create my .swf file.

Thanks in advance!