views:

89

answers:

2

I have WHMCS installed, and am editing the templates (Smarty). I cannot get the sIFR js to work. I have read all the relevant questions here, and I've read the tutorials on sIFR v. 2 and v.3. Right now I'm on hte latest nightly build with sIFR so that I can use the font. I did however, generate the font online stead of using a flash editor. I still have a font.swf file - does it matter?

I don't know a lick of js, and I've tried all day to get the other js (cochon?) working - no dice.

Would love some pointers!!

Thank you.

A: 

In my experience sIFR is much more trouble than it is really worth - I use Cufon, and provided you keep your usage fairly low (it can slow down IE if it is overdone) you shouldn't have any problems. Setting it up is fairly easy too, just

1: Convert your font here - http://cufon.shoqolate.com/generate/

2: Download cufon.js and save it with your font - http://wiki.github.com/sorccu/cufon/about

3: Link to them in your HTML

<script type="text/javascript" src="scripts/cufon-yui.js"></script>
<script type="text/javascript" src="scripts/Pointy_400.font.js"></script>

4: Apply the font to the elements (in head tag)

<script type="text/javascript">
    Cufon('h2')('h3')('h4')
</script>

Done!

Meep3D
A: 

sIFR works on the client side, on the resulting HTML output. So the answer is yes, because Smarty doesn't matter.

Mark Wubben