Jump to content

Anyone used the SIFr module?


Recommended Posts

Just wondering if any of the Prestashop projects have used this? My main concern
would be page load times etc.

For those who don't know what SIFr is, it is basically a replacement tool to display pro typefaces as flash, it works very nice since older browsers or those without Flash will display the normal text.

Link to comment
Share on other sites

I didn't used it before in prestashop, but I did with other smarty websites.
Loading time won't be much more but the things you load with SIFR will load a bit later than the normal text..
(No difference with normal websites)

Link to comment
Share on other sites

  • 1 month later...

I am definitely interested! I have tried to set up cufon on prestashop but cannot get it to work... any help would be more than welcome - basically, after adding the js files to the themes js files where do we place the call that goes in the index.html file? As prestashop uses a different structure I am at a loss as to how to go about this step.
Thanks in advance

Link to comment
Share on other sites

I'm on a local install...
Following the directions on http://wiki.github.com/sorccu/cufon/usage and http://net.tutsplus.com/videos/screencasts/the-easiest-way-to-use-any-font-you-wish/
Directions say for you generate a index.html file - this is where I'm stuck as I'm guessing I should put the javascript file references in the themes index file? or prestashop index or WHERE exactly? I'm using 'moon' by dgcraft.


!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
[removed][removed]
[removed][removed]
[removed]
Cufon.replace('h2');
[removed]
</head>
<body>


</body>
</html>



Thanks

Link to comment
Share on other sites

Nope, can't get it to work - works fine if I create independant file and open Html file on browser - but I can't find where to apply it in prestashop files.
If anyone has it installed, would you be so kind as to post where we are to place the JavaScript calls in PS?
Thanks

Link to comment
Share on other sites

Thanks to Gurpreet for the solution!

Here it is:

Add your generated font file.font.js and your cufon-yui.js file to www/shopname/js file and then add the calls to your theme's header.tpl file (you can place it just after the other js calls):

Example code in attached file.

That's it! Good luck!

cufon.php

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...