[solved] sIFR (Scalable Inman Flash Replacement) & eZpublish

Author Message

Nathan Kelly

Tuesday 06 December 2005 8:18:15 pm

Hi all, I'm trying to implement sIFR on my site and I've run into an odd problem that someone may have a solution to.

I'm using sIFR (Scalable Inman Flash Replacement) v2.0.1 http://www.mikeindustries.com/blog/archive/2004/08/sifr and I have set it up and tested it on a static page on my local machine and it all works perfectly.

So I went about setting it up on my site and I was very careful to put everything in the right place (CSS, javascript, swf, etc.) and make sure eZ knows where to find everything, but when I load a page the flash shows up but the text is nowhere to be seen?

I have checked the DOM and sure enough everything looks to be where it should be, if I check the source I can see the output from the sIFR:

// this source is generated by the sifr.js

<h3 class="sIFR-replaced">

<embed style="width: 772px; height: 24px;" class="sIFR-flash" type="application/x-shockwave-flash" sifr="true" bgcolor="#ffffff" wmode="" flashvars="txt=Panasonic&amp;textcolor=#2a417a&amp;w=772&amp;h=24" quality="best" src="./myfont.swf" height="24" width="772">

<span class="sIFR-alternate">my text</span>

</h3>

So the flash is defiantly there but no text? One thing I have tried to change is the path to the .swf, the .swf resides in the JavaScript directory with the sifr.js, so I have tried different paths to see if this was the problem, but it doesn't seem to make any difference.

I tried: design/[site]/javascript/myfont.swf, javascript/myfont.swf and ./myfont.swf.

Has anyone come across this type of problem before?

I thought it may have something to do with .htaccess rewrite rules so I added swf to the rules but no joy, the odd thing is the flash is displaying (and was before I changed the rules) but the content is not.

If you have any suggestions please let me know, they will be very much appreciated.

Cheers!

Pardon me while I burst into flames...

Nathan Kelly

Tuesday 06 December 2005 8:56:47 pm

Never mind, as usual the moment I posted the problem I found a solution (after about three hours of trying)!

The solution is odd but it did the trick, the .swf file is in the directory "design/mysite/javascript/myfont.swf", I added a "/" to the directory "/design/etc." and it works, seems odd to me but this must be how eZpublish handles it's directories?

Thanks anyway...

Cheers!

Pardon me while I burst into flames...

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 04:14:45
Script start
Timing: Jan 31 2025 04:14:45
Module start 'layout'
Timing: Jan 31 2025 04:14:45
Module start 'content'
Timing: Jan 31 2025 04:14:45
Module end 'content'
Timing: Jan 31 2025 04:14:45
Script end

Main resources:

Total runtime0.0137 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0041 588.3750151.2422
Module start 'layout' 0.00410.0027 739.617236.6953
Module start 'content' 0.00680.0054 776.312590.2344
Module end 'content' 0.01220.0015 866.546933.9922
Script end 0.0136  900.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002417.3608140.0002
Check MTime0.00107.6592140.0001
Mysql Total
Database connection0.00053.574310.0005
Mysqli_queries0.002316.737030.0008
Looping result0.00000.094110.0000
Template Total0.00118.210.0011
Template load0.00096.563010.0009
Template processing0.00021.606810.0002
Override
Cache load0.00064.466610.0006
General
dbfile0.001612.009080.0002
String conversion0.00000.052340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs