sIFR helper |
[eluser]amrnt[/eluser]
Here's my sIFR helper. 1. Put "sifr_helper.php" in "helpers" folder. 2. sifr's Swf-fonts, sifr's css, and sifr's js, as a default i put it in "<?php echo base_url(); ?>/statics/sifr/". - In your view put these lines. Code: <link rel="stylesheet" href="<?php echo base_url(); ?>statics/sifr/sIFR-screen.css" type="text/css" media="screen" /> NOW, load your new helper by editing config/autoload.php Code: $autoload['helper'] = array('url', 'html', 'sifr'); Code: $this->load->helper('sifr'); Finally you're ready to use it ! just write this code in your view ...! Code: echo sifr_it('Test'); And also you can passing custom values by array Code: echo sifr_it('Test with costum', array("link"=>"http://www.google.com", "font"=>"font_name")); Download HERE [[FileIFR_helper0.1.zip]] Enjoy .. Amr Numan Tamimi - brainythink
[eluser]davidbehler[/eluser]
And what does this helper do? I guess it got something to do with flash!?
[eluser]amrnt[/eluser]
this helper is replace you headings with a flash that uses a custom font, see this example http://www.mikeindustries.com/blog/files/sifr/2.0/ this is the site http://www.mikeindustries.com/blog/sifr/ and I made this helper specific for headings h1, h2, h3, h4, h5, h6.
[eluser]Iverson[/eluser]
HUH? I went to the example page and it's just text in Firefox with javascript errors in Firebug. Tried it in IE and all I get is image placeholders. I'm still trying to grasp the concept of the helper....
[eluser]amrnt[/eluser]
WUH? first {the sIFR is NOT mine.} and I tried it on FF 3.0 and IE 6 and it works fine with no one error. and what helper's doing, is that you pass a text and it replace it with a flash contain that text with a custom font and here also a site for sIFR fonts http://www.fontsmack.com/
[eluser]Iverson[/eluser]
[quote author="brainythink" date="1226956280"]WUH? first {the sIFR is NOT mine.} and I tried it on FF 3.0 and IE 6 and it works fine with no one error. and what helper's doing, is that you pass a text and it replace it with a flash contain that text with a custom font and here also a site for sIFR fonts http://www.fontsmack.com/[/quote] When I click "Remove sIFR headlines", I get "sIFR.rollback is not a function" in Firebug. When I click "no" or "yes", I get "sIFR.preferenceManager is undefined". The screenshot is from IE.
[eluser]amrnt[/eluser]
see, this "Remove sIFR headlines"... its an addons. and i don't recommend it. and if there's any problem, i dont have any responsibility about it. I'm made this helper to ease usin sIFR. the main idea and the core of using sIFR is about using a non-system font in your page. Codeigniter use it in its main page .
[eluser]Iverson[/eluser]
Yeah I just finished reading up on it. Love the idea.
|
Welcome Guest, Not a member yet? Register Sign In |