You need to Register for free and Login to post a message in the forum.

Forum

Subject: sIFR and dotnetnuke 4.8.1. Movie not showing
Prev Next
You are not authorized to post a reply.

Author Messages
andyb1979
Nuke Pro
Nuke Pro
Posts:62

31 Mar 2008 10:19 AM  
Hi there,

I have watched the video tutorials on sIFR and have tried to incorporate some custom fonts in my dotnetnuke site, but with no success so far.

Currently I am only trying to replace h1, and I get a white block where the heading 1 should be, but no visible text (this white block changes colour when I change the sBgColor value in javascript when replacing tags).

If I right-click on the white block, I get "Movie Not Loaded..." grayed out on the adobe flashplayer menu.

The steps I have taken are a bit different from the tutorial, so I will list them here:

1. I have added sifr.js and sifr-addons.js to the skin directory

2. I have added the mandator.swf file to the skin directory. This was created from a true-type font using this web-app: http://ianpurton.com/sifr/
    - Note: I have also tried the vandenkeere.swf and tradegothic.swf files included in the sifr 2.0.2 download but with no success.

3. I have added a third js file to the skin directory called sifr-replace.js. This contains the following code:

/*	
    Designates which tags to replace with sifr
*/

if(typeof sIFR == "function"){

    // This is the preferred "named argument" syntax
    sIFR.replaceElement(named({sSelector:"body h1", sFlashSrc:"mandator.swf", 
sColor:"#000000", sLinkColor:"#000000", sBgColor:"#FFFFFF", sHoverColor:"#CCCCCC",
nPaddingTop:20, nPaddingBottom:20, sFlashVars:"textalign=center&offsetTop=6"})); };

4. I have made the changes to the css file as in the tutorials, so the sifr screen and print css sections are in there according to the video.

5. All three javascript files are included using the code-behind file of the skin ascx control. The process I have done to link to the js files is as follows:


// Note: This function is called from Page_Load in the ASCX control code-behind
// file of the skin
private void AttachJsFiles() { // Add the sifr js files to the HTML page HtmlGenericControl jscript = null; jscript = new HtmlGenericControl("script"); jscript.Attributes.Add("language", "javascript"); jscript.Attributes.Add("src", Path.Combine(this.SkinPath, "sifr.js")); jscript.Attributes.Add("type", "text/javascript"); Controls.Add(jscript); jscript = new HtmlGenericControl("script"); jscript.Attributes.Add("language", "javascript"); jscript.Attributes.Add("src", Path.Combine(this.SkinPath, "sifr-addons.js")); jscript.Attributes.Add("type", "text/javascript"); Controls.Add(jscript);        jscript = new HtmlGenericControl("script"); jscript.Attributes.Add("language", "javascript"); jscript.Attributes.Add("src", Path.Combine(this.SkinPath, "sifr-replace.js")); jscript.Attributes.Add("type", "text/javascript"); Controls.Add(jscript);
}

Finally, here's a screenshot of the result I am getting:

Photobucket



Any ideas?!

Sites I made thanks to DNNCreative vids!
Rock Rhyme & Reason Fest | The Big Match | Calvary Stockport | Stephen Webster
andyb1979
Nuke Pro
Nuke Pro
Posts:62

31 Mar 2008 4:53 PM  
Ahh, I fixed it.

The script that does the sifr replacement has to be after all other markup has loaded. Hence its put at the end of the skin.

So I modified default.aspx as per the tutorial, added the script at the end of my skin and it worked

You may also be interested to know, this tool allows cheap and cheerful conversion of truetype fonts to swf without a copy of flash:

http://www.artofscaling.com/sifrmaker/

Sites I made thanks to DNNCreative vids!
Rock Rhyme & Reason Fest | The Big Match | Calvary Stockport | Stephen Webster
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2357


31 Mar 2008 7:05 PM  
Thanks, and I'm glad that you got things working.

Joe Craig
DNN Creative Support
Subscribe to the website
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3351

07 Apr 2008 2:15 AM  
glad to hear you got it working, did you read the note that is on the sIFR tutorial page, referring to security issues?

http://novemberborn.net/sifr3
(scroll down to revision 278 security update)

This is for sIFR 3 - not sure if it applies to sIFR2 - but if you are running v3 make sure you are using a revision later than 278.

 thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > Users Lounge > DNN Creative Articles > sIFR and dotnetnuke 4.8.1. Movie not showing



ActiveForums 3.7

Latest Forum Posts

Yahoo Answers by cdtguru
Hey, i was wondering if anyone knew of a module that would create a similar system to Yahoo Answers...
(catalook) Itempane changes on product pages ?? by Gaz35
Hi , hi , I don’t know if you can help me , here is the site in question http...
RE: Virtual Pc 2007 help by jeff@zina.com
You need to get the Virtual PC's network set up.  Might check the Virtual PC news group: http://www...
DNNCreative Just Keeps Getting Better by jeff@zina.com
Kudos on issue 39, the article on importing large quantities of data was both timely for me and spot...
RE: Videos by clippy
Hello from France My question is about the videos for beginners, and specially n° 3; I'm working...
skinning trouble by derpir
HelloI have uploaded a skin to my DNN-website, but I want to make som changes. I have made some chan...
RE: Column width in UDT by VickySwift
In case anyone else is looking for the answer to this, I have been able to add the headers back in b...
RE: search not working by jncraig
Did you either reindex the site to turn on the scheduled task to do it?
RE: Template Issue by jncraig
No, you need to install your custom modules before you use the template.
RE: error message in registration page by jncraig
I'm not sure that you can avoid them, short of rewriting the module.You might want to investigate Dy...
Template Issue by Bobbyjosephg
Hi,   Today I have come up with a problem with templates.I was successful in exporting a template an...
RE: search not working by sanju_k1421
I checked     host==>admin search  page   that is set both limits min //max  page     still i m n...
RE: error message in registration page by coder247
but how do I avoid the error messages provided by default in dnn?
RE: Style sheet does nothing by andorz
Oh. I was told to do that in my thread at the dotnetnuke.com forum. http://www.dotnetnuke.com/Commun...
RE: Videos by clippy
Thank you to answer so quickly. It's really kind from you. I appreciate
RE: Simple subscribe newsletter module by jncraig
I seem to recall that DataSprings has an "Opt In" module. I haven't used it, though.
RE: Videos by jncraig
No, you can view them in any order.
RE: Skim Question by tlsadler
Wow! Went to Snowcovered and the 50% off Promo more then paid for itself. I actually wound up buying...
Videos by clippy
Hello from FranceJust a little questionIs there any order to respect to look the videos ("issues"). ...
RE: Skim Question by tlsadler
Thank you very much. I've followed many of your posts and will check it out. I had thought about get...
DotNetNuke Modules
RSS Feeds