Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...User font size switching, Speerio skinergy, css selectorUser font size switching, Speerio skinergy, css selector
Previous
 
Next
New Post
1/15/2009 12:15 PM
 

Hi,

I'm trying to implement user-switchable font sizes for better site accessibility, simliar to the AAA control on the DNN site.

Does anyone know where the Speerio SKinergy CSS selector module/code can be downloaded from? All roads reported on the forum seem to lead to 404 at the moment.

Also, there is a selector on this site www.skincovered.com but no means of contacting them. ANyone know how to get hold of this component?

THanks in advance

Phil

 
New Post
1/16/2009 1:59 PM
 

I don't think the Nik is hosting the speerio site anymore. I know that this free skin (http://www.thinkofdesign.com/forums/forumid/7/postid/48/view/topic.aspx) incorporates it. Alternatively, i'd recommend you download 5.0, and take a look at the extropy skin, it has a skin widget for that purpose.

Cathal


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
1/18/2009 12:09 PM
 

Hi Cathal,

Thanks for the reply. I will try DNN5 for future projects but current client is on 4.8.x. However I found the Engage css selector here:

http://www.engagemodules.com/Skins/Downloads.aspx

which works well. I'll also try Nina Meirs XFLEX which works without having to refress the page.

Phil

 
New Post
1/18/2009 4:17 PM
 

With a little Javascript this is easy to do:

Here's an example of  the way I do stuff like this.

Demo with the background-color (should be easy to change to Font-size), pure JS, no server stuff.

(Drop it on the bottom of a skin and it should work, I tested with the 4.9 default skin)

<a href=" loadCssFile ('<%=SkinPath%>Blue.css');">Blue</a>
<a href=" loadCssFile ('<%=SkinPath%>Red.css');">Red</a>
<a href=" loadCssFile ('<%=SkinPath%>Green.css');">Green</a>

<script type="text/javascript">
var sCookie = "UserStyleSheet" //Name of user style sheet Cookie
var sCssId = "CustomStyle"

var oLastCSS = readCookie (sCookie); // Get the last stylesheet from the cookie

if (undefined != oLastCSS){loadCssFile (oLastCSS);} // Load the last stylesheet saved in the Cookie
 
 function loadCssFile(filename){
 //Load a stylesheet and saves in a Cookie
  createCookie (sCookie, filename, 365);
 
 var oStyleSheet = document.getElementById(sCssId)
 if (undefined != oStyleSheet) { // If the style link was already added, change the Href
    oStyleSheet.setAttribute("href", filename)}
 else{ // Add a Css link
  var fileref=document.createElement("link");
    fileref.setAttribute("rel", "stylesheet");
    fileref.setAttribute("type", "text/css");
    fileref.setAttribute("href", filename);
    fileref.setAttribute("id", sCssId);
    document.getElementsByTagName("head")[0].appendChild(fileref);
    }
}

function createCookie(name,value,days) {
    if (days) {
        var date = new Date();
        date.setTime(date.getTime()+(days*24*60*60*1000));
        var expires = "; expires="+date.toGMTString();
    }
    else var expires = "";
    document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name) {
    var nameEQ = name + "=";
    var ca = document.cookie.split(';');
    for(var i=0;i < ca.length;i++) {
        var c = ca[i];
        while (c.charAt(0)==' ') c = c.substring(1,c.length);
        if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
    }
    return null;
}

function eraseCookie(name) {
    createCookie(name,"",-1);
}

</script>

 

The other thing you need is 3 CSS files, Green, Red and Blue.css, containing this:

body{background:#D00 none !important;} (with the right color)

in the root of the skin folder

 
New Post
1/19/2009 4:59 AM
 

Many thanks for that Timo, I'll certainly try that.

Phil

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...User font size switching, Speerio skinergy, css selectorUser font size switching, Speerio skinergy, css selector


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out