Quick Nav:  Online Store   |   Login | Register

Child Portal skin Bug

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Nathan Metzger
<50 Posts
Posts:25


11/20/2003 11:23 AM  
I'm pretty sure this is a bug. I created a child portal and changed the skin asssociated with it. The skin changes for me, but if anyone else accesses the child potal the default Classic DNN skin is displayed. Any ideas?
John Mitchell
<500Posts
Posts:355


11/20/2003 7:32 PM  
Make sure you click on the apply link next to the change skin drop down. Until the skin is applied the admin can switch & view, and the currently selected skin is stored in a cookie, but only for the admin.
Salvador Romero
<20 Posts
Posts:2


11/21/2003 3:40 PM  
Thank you John for replying. I do have version 1.0.9 installed. As of matter of fact, I do not have latest version installed yet because I can not select containers when editing module properties. I guess it would help me a lot if you post the code in order to compile it. Thank you for your help Salvador
John Mitchell
<500Posts
Posts:355


11/23/2003 9:18 AM  
Put this code in SignIn.vb
        'set focus to any control
        'Snapsis - Copied function here to support versions prior to 1.0.10
        Private Sub SetFormFocus(ByVal control As Control)
            If Not control.Page Is Nothing Then
                If control.Page.Request.Browser.JavaScript = True Then

                    ' Create JavaScript 
                    Dim sb As New System.Text.StringBuilder()
                    sb.Append("<SCRIPTLANGUAGE='JavaScript'>")
                    sb.Append("<!--")
                    sb.Append(ControlChars.Lf)
                    sb.Append("function SetInitialFocus() {")
                    sb.Append(ControlChars.Lf)
                    sb.Append(" document.")

                    ' Find the Form 
                    Dim objParent As control = control.Parent
                    While Not TypeOf objParent Is System.Web.UI.HtmlControls.HtmlForm
                        objParent = objParent.Parent
                    End While
                    sb.Append(objParent.ClientID)
                    sb.Append("['")
                    sb.Append(control.UniqueID)
                    sb.Append("'].focus(); }")
                    sb.Append("window.onload = SetInitialFocus;")
                    sb.Append(ControlChars.Lf)
                    sb.Append("// -->")
                    sb.Append(ControlChars.Lf)
                    sb.Append("</SCRIPT>")

                    ' Register Client Script 
                    control.Page.RegisterClientScriptBlock("InitialFocus", sb.ToString())
                End If
            End If
        End Sub
Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software