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 Ace
Nuke Ace
Posts:56

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
andyb1979
Nuke Ace
Nuke Ace
Posts:56

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
jncraig
Nuke Master II
Nuke Master II
Posts:2032

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

Posts:3002

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
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

DNN - web services not working by paulrobinson
Good Afternoon,Please help.  I have just installed my DNN web site to my dedicated live host machine...
[HOUSEMENU] token not working by whred5
HiI have been playing around with the Lazy_Days skin in an effort to learn css based skinning, I hav...
RE: Building a website with DNN by freedom22
Lee or Joe, I meant that the skin.css file I downloaded has classes like .main_dnnmenu_item td w...
RE: Building a website with DNN by freedom22
Lee, thanks for your reply. I did find the files. I am going through your tutorail, and in video7...
RE: page publish date by leesykes
I would suggest you view these tutorials:User Accounts new features User Accounts and User Settings ...
RE: page publish date by jncraig
I'm not quite sure that I understand you, but ... on the user accounts page there are these options:...
RE: Best so far for me by jncraig
I like the Snapsis CSS Nav Menu. You'll find it at Snapsis.com.
RE: How to limit access to the admin menu.... by leesykes
Hello,Simply reverse the process, you can copy the settings from one of the other admin menu items t...
RE: How to limit access to the admin menu.... by tallorder
Shame about the parent page drop down being grey out since any Site Administrator is going to want t...
RE: Host and Admin user login not working on remote host by paulrobinson
A couple of quick questions: 1. Can I format the login page to the same as my other Text/HTML mo...
RE: Host and Admin user login not working on remote host by leesykes
Hello,Great, glad to help, have you had a look here for some SEO articles and interviews
RE: A question about permission? by leesykes
ok great, glad to help,
RE: A question about permission? by derpir
Your e-mail helped thanks I now have all my permissions set as they should. thanks
RE: Host and Admin user login not working on remote host by paulrobinson
Lee, Thanks for your help on this - there was actually a character dropped off the end of the machi...
RE: A question about permission? by derpir
one question... After getting the permissions... Shouldn´t I be able to do all my development at...
RE: Solpartmenu and line breacks by leesykes
Hello,If you have a look in the CSS Reference Book p108Word-wrapThis is an Internet Explorer 5.5 or ...
RE: A question about permission? by derpir
Thank you Lee! I sent your reply suggestion and I hope they will understand better what I wanted fr...
RE: A question about permission? by leesykes
hello,In order for DNN to operate correctly it needs full read and write permissions for the Network...
RE: Host and Admin user login not working on remote host by leesykes
you will be able to register as a new user if the machine keys are incorrect, but can you login as a...
RE: centering a page in dnn by leesykes
Yes I have not come across a solution to that either and I think it occurs in all browsers.Thanks,
DotNetNuke Modules
RSS Feeds