Site Loading ...

Filed in Wordpress Stuff Thursday May 4, 2006

sIFRtitles_logo.jpg

v0.2 Upgrade makes plugin work with titles containing ampersands and works better for people who are not using mod_rewrite for their urls. Also fixes IE ActiveX lawsuit problems with embed.

Heres the sIFR plugin I promised… It shouldnt be too confusing to install… the only potentially tricky parts are if people really wanna change the flash file…

Ive included the source FLA to make editing it really easy… Please read the comments in the FLA though… there a few really important points.

Anyway… for those of you who dont know what sIFR is… check out the original post I made: Flash Titles Like This One

For those of you who want the plugin and source files…

Downloads:

  • v0.1 Is available HERE
  • v0.2 is now available. I reccomend you upgrade. Download HERE

Please comment if you like… post a link to where you are using it so I can check it out… and if you have any problems that you think may be a bug… post a comment about it.

Read on for install/upgrade instructions:

Installation:

  1. Insert style code into your css. Customize it for your theme… mind just
    aligns left. (see CSS: below)
  2. Edit title.fla to look the way you want… its set to display as transparent windowless so the way it is by default there will be no background or anything. skip this step and step #3 if you want to use the default flash file.
  3. Publish title.swf (NOTE: Must be published as Flash 8 now because of the str_replace to filter ampersands)
  4. Upload (new if you published your own) title.swf to the folder your theme is in.
  5. Upload swfobject.js to your theme directory.
  6. Add include for swfobject.js to your themes <head> content. (see
    code JS: code below)
  7. Open sIFR-titles.php and edit lines 11-13 if you made changes to the size of the flash file. $bgc if for the background color in case the users browser doesnt support transparent windowless flash rendering.
  8. Upload sIFR-titles.php to your plugins folder
  9. activate plugin through admin panel
  10. Add the PHP code to your theme file (see PHP: code below)

CSS:

.flashtitle { text-align: left; }

JS:

<script src=“<?php bloginfo(’template_url’); ?>/swfobject.js” type=“text/javascript”></script>

PHP:

<?php sIFR_title(); ?>

Upgrade:

  • Do steps 2,3,4,5,6,7,8 (in order)
  • you dont need to do steps 1, 9 or 10

ChangeLog:

  • v0.1 - Made the plugin… seems to work.
  • v0.2 - Added functions to filter out ampersands so this will work on sites not using mod_rewrite. Also implemented a script to embed the flash in a way so that the new IE problems with activeX dont cause problems.


Fatal error: Call to undefined function utw_showtagsforcurrentpost() in /home/august/public_html/blog/wp-content/themes/CleanTheme/blogbody.php on line 21