DNN 6 Compatibility


Author Message
Gerald Hutchman

Posted: 7/13/2011
Quote message 

Will Artisteer be compatible with DNN 6?
I just installed one of my Artisteer skins over the beta version of DNN 6 and got the following error:

An error has occurred. DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at ArtMenuSkinObject.ArtMenuSO.Page_PreRender(Object sender, EventArgs e) --- End of inner exception stack trace ---

 
jcb

Posted: 7/22/2011
Quote message 

To resolve the admin drop, just go on the page.ascx:

Find on the top of the page:
<div class="art-controlpanel-container"><div id="ControlPanel" runat="server"></div></div>

Cut it

And paste it at the end of the page.
 
jps

Posted: 7/22/2011
Quote message 

Does that resolve the sidebar menu too? both the top menu and sidebar menu don't seem to load after upgrading to DNN v6
 
Michael

Posted: 8/4/2011
Quote message 

Quote Kevin:

JCB's issue seems to have something to do with the Portal Container in use for the page, and some CSS that (by comparison with the "Dark Knight" skin) is missing.

I fixed the "Manage" popup, that is, made it look like it does in a Dark Knight skin, by adding the following CSS to the Artisteer -> Export Options -> Custom CSS dialog. (I obtained this CSS from the Containers\DarkKnight\containers.css file.) I placed this CSS after the text required to fixe the Admin/Menu z-order issue.

ALSO: You may notice that there are extra "edit" and "settings" links on your page in Edit mode. Looking at the "Article.ascx" container file in an Artisteer theme, you'll find references to the extra controls "dnnADDCONTENT" and "dnnEDITCONTENT." I removed them from the ascx file manually without any apparent harm.

[font=courier]
.c_DNN6 .dnnModuleActions {display:inline-block;width:19px;height:19px;float:left;}

.c_DNN6_Header .Head{color:#333;font-size:22px;line-height:24px;padding:0 10px 0 0;text-transform:uppercase;text-shadow: 1px 1px 1px #FAFAFA;}
#Footer .c_DNN6_Header .Head{color:#e5e5e5;}
.c_DNN6_Header .Title{margin:0 0 .5em 0; overflow:hidden;}
.c_DNN6_Header .Title .TitleBar{margin:0 -100% 0 0; vertical-align:middle; width: 100%; height: 24px; }

.c_DNN6_SubTitle .Head{color:#333;font-size:18px;line-height:24px;padding:0 10px 0 0;text-transform:uppercase;text-shadow: 1px 1px 1px #FAFAFA;}
.c_DNN6_SubTitle .Title{margin:0 0 .5em 0; overflow:hidden;}
.c_DNN6_SubTitle .Title .TitleBar{margin:0 -100% 0 0; vertical-align:middle; width: 100%; height: 24px; }

.c_DNN6_Footer .Head{color:#e5e5e5;font-size:18px;text-transform:uppercase;}
.c_DNN6_Footer .Title{margin:0 0 .5em 0;}

.c_DNN6_Aside {width: 100%;}
.c_DNN6_Aside .Title{text-transform:uppercase;}
.c_DNN6_Aside .TopL{background: url(images/Grey-Gradient-TL.png) no-repeat 0 0;padding:0 0 0 10px;}
.c_DNN6_Aside .Title{margin:0 10px 10px 10px;padding:4px 0 0 0;}
.c_DNN6_Aside .BottomL{height: 10px;background: url(images/Grey-Gradient-BL.png) no-repeat left top;padding:0 0 0 10px;}
.c_DNN6_Aside .TopR{background:url(images/Grey-Gradient-TR.png) no-repeat right 0;padding:0 10px 0 0;}
.c_DNN6_Aside .BottomR{height: 10px;background:url(images/Grey-Gradient-BR.png) no-repeat right top;padding:0 10px 0 0;}
.c_DNN6_Aside .Top{background:url(images/Grey-Gradient-T.png) repeat-x 0 0;padding:10px 0 0 0;}
.c_DNN6_Aside .Bottom{height: 10px;background:url(images/Grey-Gradient-B.png) repeat-x left top;padding:0 0 0 0;}
.c_DNN6_Aside .Middle {border-left:solid 1px #c6c6c6;border-right:solid 1px #FFF;background:-moz-linear-gradient(top, #e5e5e5, #d7d7d7);background:-webkit-gradient(linear, left top, left bottom, from(#e5e5e5), to(#d7d7d7));filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#e5e5e5', endColorstr='#d7d7d7');-ms-filter:"progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#e5e5e5', endColorstr='#d7d7d7')";height:100%;}
.c_DNN6_Aside .DNNModuleContent{padding:0 12px;}
.AdminActions input, .AdminActions a.CommandButton{text-decoration:none;}
[/font]

i paste this code

In Artisteer, goto Export Options, then CSS Options. Paste in the following lines:
.DnnModule {z-index:0;}
.art-nav {z-index: 1;}
.art-controlpanel-container {z-index:2;}
and the above code into the css options.
now the admin panel menue works, but the module menu doesn't work.
i can't click on the manager button.

i have no idea why.

thanks

michael
 
Erwin Craps

Posted: 8/22/2011
Quote message 

Thx for the

In Artisteer, goto Export Options, then CSS Options. Paste in the following lines:
.DnnModule {z-index:0;}
.art-nav {z-index: 1;}
.art-controlpanel-container {z-index:2;}

It works.
 
Doug Bulmer

Posted: 8/27/2011
Quote message 

Quote Erwin Craps:

Thx for the

In Artisteer, goto Export Options, then CSS Options. Paste in the following lines:
.DnnModule {z-index:0;}
.art-nav {z-index: 1;}
.art-controlpanel-container {z-index:2;}

It works.


This does not work for me. I can not get any Artisteer skin to put the DNN 6.0 Control panel on top. It is always hidden.

I'm using the latest Beta (3.1.0.42580), Selecting DNN 6 for the version and adding the 3 lines you suggest to the CSS Options.

Any other suggestions?
 
COBRASoft

Posted: 10/1/2011
Quote message 

Next to the language flag/text thing. Perhaps you can also include everything needed for jquery in the skins or at least on option to do so. Thx!
 
Jay

Posted: 10/26/2011
Quote message 

Is there a way to support the DNN 6.0 Mega Menu (That is in the Default Knight skin) with Artisteer?

Thanks,

Jay
 
AggieDan97

Posted: 11/2/2011
Quote message 

I recently found Artisteer and am blown away - and then I was blown away to find out it doesn't support DNN 6.x.

I will be buying multiple licenses as soon as it supports 6.x. I also know at least 6 others that will buy multiple licenses as well.
 
Rob

Posted: 3/9/2012
Quote message 

Solution to the object reference error on the Pre_Render event:
I manually modify my skins after Artisteer (it's not perfect after all!) so upgrading to the latest 'DNN6 compatible' version isnt an option for me. Furthermore a bunch of css stuff has changed so previous skins dont work with the new DNN6 code for the menu (for instance art-menu css element is no longer used).
So I've updated the menu code as follows in \DesktopModules\ArtMenuSO\ArtMenuSO.ascx.vb. The error on pre render was caused by the fact that DNN have altered the ID of the server controls to hyperlinks instead of linkbuttons and so called them different things. This code update to the PreRender method:

Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender              Try                 If Not Me.ShowLoginTab Then                     Me.dnnLogin.Visible = False                 Else                     If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then                         REM DNN5                                                 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton)                         cmdLogin.Text = String.Format("<span class=""l""></span><span class=""r""></span><span class=""t"">Solution to the object reference error on the Pre_Render event: 
I manually modify my skins after Artisteer (it's not perfect after all!) so upgrading to the latest 'DNN6 compatible' version isnt an option for me. Furthermore a bunch of css stuff has changed so previous skins dont work with the new DNN6 code for the menu (for instance art-menu css element is no longer used).
So I've updated the menu code as follows in \DesktopModules\ArtMenuSO\ArtMenuSO.ascx.vb. The error on pre render was caused by the fact that DNN have altered the ID of the server controls to hyperlinks instead of linkbuttons and so called them different things. This code update to the PreRender method:

 [code]Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender              Try                 If Not Me.ShowLoginTab Then                     Me.dnnLogin.Visible = False                 Else                     If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then                         REM DNN5                                                 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton)                         cmdLogin.Text = String.Format("{0}", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then                         REM DNN6                         Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink)                         cmdLogin.Text = String.Format("{0}", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     Else                         Me.dnnLogin.Visible = False                     End If                  End If                 If Not Me.ShowUserTab Then                     Me.dnnUser.Visible = False                 Else                     If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then                         REM DNN5                         Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton)                         cmdRegister.Text = String.Format("{0}", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then                         REM DNN6                         Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink)                         cmdRegister.Text = String.Format("{0}", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     Else                         Me.dnnUser.Visible = False                     End If                  End If                  If TypeOf (Me.Parent) Is HtmlGenericControl Then                     If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then                         CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class")                     End If                 End If              Catch ex As Exception                 ProcessModuleLoadException(Me, ex)             End Try          End Sub[/code]

Hope that helps :) </span>", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then                         REM DNN6                         Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink)                         cmdLogin.Text = String.Format("<span class=""l""></span><span class=""r""></span><span class=""t"">Solution to the object reference error on the Pre_Render event: 
I manually modify my skins after Artisteer (it's not perfect after all!) so upgrading to the latest 'DNN6 compatible' version isnt an option for me. Furthermore a bunch of css stuff has changed so previous skins dont work with the new DNN6 code for the menu (for instance art-menu css element is no longer used).
So I've updated the menu code as follows in \DesktopModules\ArtMenuSO\ArtMenuSO.ascx.vb. The error on pre render was caused by the fact that DNN have altered the ID of the server controls to hyperlinks instead of linkbuttons and so called them different things. This code update to the PreRender method:

 [code]Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender              Try                 If Not Me.ShowLoginTab Then                     Me.dnnLogin.Visible = False                 Else                     If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then                         REM DNN5                                                 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton)                         cmdLogin.Text = String.Format("{0}", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then                         REM DNN6                         Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink)                         cmdLogin.Text = String.Format("{0}", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     Else                         Me.dnnLogin.Visible = False                     End If                  End If                 If Not Me.ShowUserTab Then                     Me.dnnUser.Visible = False                 Else                     If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then                         REM DNN5                         Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton)                         cmdRegister.Text = String.Format("{0}", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then                         REM DNN6                         Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink)                         cmdRegister.Text = String.Format("{0}", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     Else                         Me.dnnUser.Visible = False                     End If                  End If                  If TypeOf (Me.Parent) Is HtmlGenericControl Then                     If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then                         CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class")                     End If                 End If              Catch ex As Exception                 ProcessModuleLoadException(Me, ex)             End Try          End Sub[/code]

Hope that helps :) </span>", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     Else                         Me.dnnLogin.Visible = False                     End If                  End If                 If Not Me.ShowUserTab Then                     Me.dnnUser.Visible = False                 Else                     If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then                         REM DNN5                         Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton)                         cmdRegister.Text = String.Format("<span class=""l""></span><span class=""r""></span><span class=""t"">Solution to the object reference error on the Pre_Render event: 
I manually modify my skins after Artisteer (it's not perfect after all!) so upgrading to the latest 'DNN6 compatible' version isnt an option for me. Furthermore a bunch of css stuff has changed so previous skins dont work with the new DNN6 code for the menu (for instance art-menu css element is no longer used).
So I've updated the menu code as follows in \DesktopModules\ArtMenuSO\ArtMenuSO.ascx.vb. The error on pre render was caused by the fact that DNN have altered the ID of the server controls to hyperlinks instead of linkbuttons and so called them different things. This code update to the PreRender method:

 [code]Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender              Try                 If Not Me.ShowLoginTab Then                     Me.dnnLogin.Visible = False                 Else                     If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then                         REM DNN5                                                 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton)                         cmdLogin.Text = String.Format("{0}", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then                         REM DNN6                         Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink)                         cmdLogin.Text = String.Format("{0}", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     Else                         Me.dnnLogin.Visible = False                     End If                  End If                 If Not Me.ShowUserTab Then                     Me.dnnUser.Visible = False                 Else                     If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then                         REM DNN5                         Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton)                         cmdRegister.Text = String.Format("{0}", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then                         REM DNN6                         Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink)                         cmdRegister.Text = String.Format("{0}", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     Else                         Me.dnnUser.Visible = False                     End If                  End If                  If TypeOf (Me.Parent) Is HtmlGenericControl Then                     If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then                         CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class")                     End If                 End If              Catch ex As Exception                 ProcessModuleLoadException(Me, ex)             End Try          End Sub[/code]

Hope that helps :) </span>", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then                         REM DNN6                         Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink)                         cmdRegister.Text = String.Format("<span class=""l""></span><span class=""r""></span><span class=""t"">Solution to the object reference error on the Pre_Render event: 
I manually modify my skins after Artisteer (it's not perfect after all!) so upgrading to the latest 'DNN6 compatible' version isnt an option for me. Furthermore a bunch of css stuff has changed so previous skins dont work with the new DNN6 code for the menu (for instance art-menu css element is no longer used).
So I've updated the menu code as follows in \DesktopModules\ArtMenuSO\ArtMenuSO.ascx.vb. The error on pre render was caused by the fact that DNN have altered the ID of the server controls to hyperlinks instead of linkbuttons and so called them different things. This code update to the PreRender method:

 [code]Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender              Try                 If Not Me.ShowLoginTab Then                     Me.dnnLogin.Visible = False                 Else                     If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then                         REM DNN5                                                 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton)                         cmdLogin.Text = String.Format("{0}", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then                         REM DNN6                         Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink)                         cmdLogin.Text = String.Format("{0}", cmdLogin.Text)                         cmdLogin.ControlStyle.Reset()                     Else                         Me.dnnLogin.Visible = False                     End If                  End If                 If Not Me.ShowUserTab Then                     Me.dnnUser.Visible = False                 Else                     If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then                         REM DNN5                         Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton)                         cmdRegister.Text = String.Format("{0}", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then                         REM DNN6                         Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink)                         cmdRegister.Text = String.Format("{0}", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     Else                         Me.dnnUser.Visible = False                     End If                  End If                  If TypeOf (Me.Parent) Is HtmlGenericControl Then                     If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then                         CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class")                     End If                 End If              Catch ex As Exception                 ProcessModuleLoadException(Me, ex)             End Try          End Sub[/code]

Hope that helps :) </span>", cmdRegister.Text)                         cmdRegister.ControlStyle.Reset()                     Else                         Me.dnnUser.Visible = False                     End If                  End If                  If TypeOf (Me.Parent) Is HtmlGenericControl Then                     If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then                         CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class")                     End If                 End If              Catch ex As Exception                 ProcessModuleLoadException(Me, ex)             End Try          End Sub


Hope that helps :)
 
rob

Posted: 3/9/2012
Quote message 

re- the post above, something odd happened there, it has posted the post 4 times. be careful!
I will try again, not using code tags this time ....

Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender


Try
If Not Me.ShowLoginTab Then
Me.dnnLogin.Visible = False
Else
If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then
REM DNN5
Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton)
cmdLogin.Text = String.Format("<span class=""l""></span><span class=""r""></span><span class=""t"">re- the post above, something odd happened there, it has posted the post 4 times. be careful! I will try again, not using code tags this time .... Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender Try If Not Me.ShowLoginTab Then Me.dnnLogin.Visible = False Else If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then REM DNN5 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton) cmdLogin.Text = String.Format("{0}", cmdLogin.Text) cmdLogin.ControlStyle.Reset() ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then REM DNN6 Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink) cmdLogin.Text = String.Format("{0}", cmdLogin.Text) cmdLogin.ControlStyle.Reset() Else Me.dnnLogin.Visible = False End If End If If Not Me.ShowUserTab Then Me.dnnUser.Visible = False Else If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then REM DNN5 Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton) cmdRegister.Text = String.Format("{0}", cmdRegister.Text) cmdRegister.ControlStyle.Reset() ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then REM DNN6 Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink) cmdRegister.Text = String.Format("{0}", cmdRegister.Text) cmdRegister.ControlStyle.Reset() Else Me.dnnUser.Visible = False End If End If If TypeOf (Me.Parent) Is HtmlGenericControl Then If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class") End If End If Catch ex As Exception ProcessModuleLoadException(Me, ex) End Try End Sub</span>", cmdLogin.Text)
cmdLogin.ControlStyle.Reset()
ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then
REM DNN6
Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink)
cmdLogin.Text = String.Format("<span class=""l""></span><span class=""r""></span><span class=""t"">re- the post above, something odd happened there, it has posted the post 4 times. be careful! I will try again, not using code tags this time .... Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender Try If Not Me.ShowLoginTab Then Me.dnnLogin.Visible = False Else If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then REM DNN5 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton) cmdLogin.Text = String.Format("{0}", cmdLogin.Text) cmdLogin.ControlStyle.Reset() ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then REM DNN6 Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink) cmdLogin.Text = String.Format("{0}", cmdLogin.Text) cmdLogin.ControlStyle.Reset() Else Me.dnnLogin.Visible = False End If End If If Not Me.ShowUserTab Then Me.dnnUser.Visible = False Else If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then REM DNN5 Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton) cmdRegister.Text = String.Format("{0}", cmdRegister.Text) cmdRegister.ControlStyle.Reset() ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then REM DNN6 Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink) cmdRegister.Text = String.Format("{0}", cmdRegister.Text) cmdRegister.ControlStyle.Reset() Else Me.dnnUser.Visible = False End If End If If TypeOf (Me.Parent) Is HtmlGenericControl Then If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class") End If End If Catch ex As Exception ProcessModuleLoadException(Me, ex) End Try End Sub</span>", cmdLogin.Text)
cmdLogin.ControlStyle.Reset()
Else
Me.dnnLogin.Visible = False
End If

End If
If Not Me.ShowUserTab Then
Me.dnnUser.Visible = False
Else
If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then
REM DNN5
Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton)
cmdRegister.Text = String.Format("<span class=""l""></span><span class=""r""></span><span class=""t"">re- the post above, something odd happened there, it has posted the post 4 times. be careful! I will try again, not using code tags this time .... Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender Try If Not Me.ShowLoginTab Then Me.dnnLogin.Visible = False Else If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then REM DNN5 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton) cmdLogin.Text = String.Format("{0}", cmdLogin.Text) cmdLogin.ControlStyle.Reset() ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then REM DNN6 Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink) cmdLogin.Text = String.Format("{0}", cmdLogin.Text) cmdLogin.ControlStyle.Reset() Else Me.dnnLogin.Visible = False End If End If If Not Me.ShowUserTab Then Me.dnnUser.Visible = False Else If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then REM DNN5 Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton) cmdRegister.Text = String.Format("{0}", cmdRegister.Text) cmdRegister.ControlStyle.Reset() ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then REM DNN6 Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink) cmdRegister.Text = String.Format("{0}", cmdRegister.Text) cmdRegister.ControlStyle.Reset() Else Me.dnnUser.Visible = False End If End If If TypeOf (Me.Parent) Is HtmlGenericControl Then If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class") End If End If Catch ex As Exception ProcessModuleLoadException(Me, ex) End Try End Sub</span>", cmdRegister.Text)
cmdRegister.ControlStyle.Reset()
ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then
REM DNN6
Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink)
cmdRegister.Text = String.Format("<span class=""l""></span><span class=""r""></span><span class=""t"">re- the post above, something odd happened there, it has posted the post 4 times. be careful! I will try again, not using code tags this time .... Private Sub Page_PreRender(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.PreRender Try If Not Me.ShowLoginTab Then Me.dnnLogin.Visible = False Else If Not (Me.dnnLogin.FindControl("cmdLogin") Is Nothing) Then REM DNN5 Dim cmdLogin As LinkButton = CType(Me.dnnLogin.FindControl("cmdLogin"), LinkButton) cmdLogin.Text = String.Format("{0}", cmdLogin.Text) cmdLogin.ControlStyle.Reset() ElseIf Not (Me.dnnLogin.FindControl("loginLink") Is Nothing) Then REM DNN6 Dim cmdLogin As HyperLink = CType(Me.dnnLogin.FindControl("loginLink"), HyperLink) cmdLogin.Text = String.Format("{0}", cmdLogin.Text) cmdLogin.ControlStyle.Reset() Else Me.dnnLogin.Visible = False End If End If If Not Me.ShowUserTab Then Me.dnnUser.Visible = False Else If Not (Me.dnnUser.FindControl("cmdRegister") Is Nothing) Then REM DNN5 Dim cmdRegister As LinkButton = CType(Me.dnnUser.FindControl("cmdRegister"), LinkButton) cmdRegister.Text = String.Format("{0}", cmdRegister.Text) cmdRegister.ControlStyle.Reset() ElseIf Not (Me.dnnUser.FindControl("registerLink") Is Nothing) Then REM DNN6 Dim cmdRegister As HyperLink = CType(Me.dnnUser.FindControl("registerLink"), HyperLink) cmdRegister.Text = String.Format("{0}", cmdRegister.Text) cmdRegister.ControlStyle.Reset() Else Me.dnnUser.Visible = False End If End If If TypeOf (Me.Parent) Is HtmlGenericControl Then If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class") End If End If Catch ex As Exception ProcessModuleLoadException(Me, ex) End Try End Sub</span>", cmdRegister.Text)
cmdRegister.ControlStyle.Reset()
Else
Me.dnnUser.Visible = False
End If

End If

If TypeOf (Me.Parent) Is HtmlGenericControl Then
If CType(Me.Parent, HtmlGenericControl).Attributes("class") = "DNNEmptyPane" Then
CType(Me.Parent, HtmlGenericControl).Attributes.Remove("class")
End If
End If

Catch ex As Exception
ProcessModuleLoadException(Me, ex)
End Try

End Sub
 
GreenGrass

Posted: 3/14/2012
Quote message 

Hi there,

I have the same trouble with the

DotNetNuke.Services.Exceptions.ModuleLoadException: Object reference not set to an instance of an object. ---> System.NullReferenceException: Object reference not set to an instance of an object. at ArtMenuSkinObject.ArtMenuSO.Page_PreRender(Object sender, EventArgs e)

This code posted in previous Thread does not work, some trouble with the ""

Some Questions:
1. Is this Issue fixed in latest version ?
2 How can I fix it, Ive got 2.3.0.21098 Standard Edition

Thanks in advance

 
Chris

Posted: 12/9/2012
Quote message 

Important detail: The containers work fine and are displayed correctly in Edit mode. They are only broken in View mode (and to the public).
 
MAHA

Posted: 1/21/2013
Quote message 

MY Question is :
Does Artisteer4 compatible 100% with DNN6 ?????


because I'm intending to purchase Artisteer 4