> Forums > Active Social > Themes and Templates > Custom Templates not appearing
Last Post 16 Jan 2011 11:13 AM by Will Morgenweck. 11 Replies.
AddThis - Bookmarking and Sharing Button Printer Friendly
  •  
  •  
  •  
  •  
  •  
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
G.O.
Customers
G.O.
Post Count:126

--
21 Dec 2010 04:19 PM
    • Active Social Version: 1.8.3
    • DotNetNuke Version: 5.5.1
    Hi 

    Is anyone have trouble with the Custom templates in Active Social. No matter what browser I try I can not get into the Custom Templates to add / edit any code.

    see attached image

    22-12-2010_8-17-34_AM.png

    Stephen

    www.turtledrift.com
    Scuba divers social network
    Ray Dixon
    Customers
    Ray Dixon
    Post Count:199

    --
    21 Dec 2010 05:51 PM
    This is happening to me, too. If I select an existing template, it will display the code for it. If I then select the new template I just added, I can view, edit, and save the code for it.


    G.O.
    Customers
    G.O.
    Post Count:126

    --
    21 Dec 2010 11:15 PM
    Gotcha... I see now.... Thanks for your quick reply


    Stephen

    www.turtledrift.com
    Scuba divers social network
    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    22 Dec 2010 12:56 PM
    We can't reproduce that behavior. Are there any javascript errors?


    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Ray Dixon
    Customers
    Ray Dixon
    Post Count:199

    --
    22 Dec 2010 01:13 PM
    Yes, I get javascript errors. Here is the copy of what I just got:
    Webpage error details
      
    User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDR; .NET4.0C; .NET4.0E; Zune 4.7)
    Timestamp: Wed, 22 Dec 2010 19:07:50 UTC
      
      
    Message: 'null' is null or not an object
    Line: 871
    Char: 2
    Code: 0

    Looking at asadmin.js in my installation, it looks like this is happening in the asTreeSelect(key) function (shown below).
    function asTreeSelect(key){
        var li = asVal(key);
        asTreeClearSelected()
      
        li.className += '-selected';
       var p = li;
        var i = 0;
        do {
            p = p.parentNode;
            if (p.tagName =='UL'){
                p.style.display = 'block';
            };
            i++;
        } while (p.tagName != 'DIV' || i == 100);
      
    };

    Line 871 appears to be li.className += '-selected';

    Thanks for looking into this.


    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    22 Dec 2010 01:58 PM
    Does the name of the template have any spaces or special characters?


    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    Ray Dixon
    Customers
    Ray Dixon
    Post Count:199

    --
    22 Dec 2010 04:23 PM
    I did have spaces in the template name, which was Test Custom View. Those spaces got replaced in the .ascx file that AS created so it was named Test_Custom_View.ascx. I just tried the same steps using Test_Custom_View for the template name and got the same results.

    Also, simply selecting a different template doesn't work for me. I have to select a template in a folder other than the one containing the template I just created and then select the new template.


    C Poole
    Customers
    C Poole
    Post Count:35

    --
    15 Jan 2011 07:24 PM
    Posted By Ray Dixon on 22 Dec 2010 05:23 PM
    I did have spaces in the template name, which was Test Custom View. Those spaces got replaced in the .ascx file that AS created so it was named Test_Custom_View.ascx. I just tried the same steps using Test_Custom_View for the template name and got the same results.

    Also, simply selecting a different template doesn't work for me. I have to select a template in a folder other than the one containing the template I just created and then select the new template.

    I created a new template today and had the same results. You must change folders and select a template then go back to the custom view to get it to display.


    Ray Dixon
    Customers
    Ray Dixon
    Post Count:199

    --
    15 Jan 2011 09:34 PM
    I just tried again after installing AS 1.9.1 and I get the same behavior. In fact, it doesn't have to be a new custom template. I can reproduce the behavior just by attempting to select any template in the Custom Templates folder as my first selection after going to Design. If I select any template in the Custom Template folder first, no code shows up. Selecting a template in any other folder causes that code to appear and then when I select a template in the Custom Templates folder, its code shows up, as expected. The same thing happens in Chrome. I didn't test in Firefox because our site is having an issue with displaying incorrectly in Firefox right now.

    I attached a zip file with a screen capture video (wmv) showing the behavior.

    Custom_Template_Selection.zip

    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    15 Jan 2011 09:42 PM
    Ray,
    Thanks for the video. I should be able to reproduce this now.


    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    C Poole
    Customers
    C Poole
    Post Count:35

    --
    16 Jan 2011 10:56 AM
    I don't think it is browser specific, I have the same issue in IE and FireFox.


    Will Morgenweck Forum Admin
    DotNetNuke Staff
    Will Morgenweck
    Post Count:7672

    --
    16 Jan 2011 11:13 AM
    The problem is when the first template you select has a space in the file name. I was able to reproduce it on our site and created a screencast. You can see that if I select a file without a space it works just fine, but if I start by selecting the template with the space in the name it will not load. This will be fixed in the next release.
    http://www.screencast.com/t/fhjgkb3K



    Will Morgenweck
    Director of Product Management
    DotNetNuke Corp.
    You are not authorized to post a reply.
    > Forums > Active Social > Themes and Templates > Custom Templates not appearing
    test
    Copyright 2012 by DotNetNuke Corporation / Terms of Use / Privacy