Forums
>
Skinning Toolkit
>
Skinning Toolkit
show skinobject only to unauthenticated users
Last Post 10/09/2007 4:42 AM by
Lee Sykes
. 4 Replies.
Author
Messages
Kriz Van Looy
Nuke Ace
Posts:41
10/03/2007 7:33 AM
Hi,
I recently wrote a small module that shows a summary of all the documents in a particular category on my website in a dropdownlist.
I added a skinobject for this module so I can display it on top of each page.
Is it possible to show this skinobject only to the unauthenticated users? I know it's possible when you just add a module to a page, but is it possible to do this also with a skinobject?
Or do I have to hard - code this into the .vb - files of my module? If this is the case, how can it be done?
Thanks in advance
Joseph Craig
DNN MVP
Posts:11667
10/04/2007 10:37 AM
You can put code in your skin to do this.
Go to snapsis.com and look for the DotNetNuke forums. I believe that the topic of interest to you is in the "Tips and Tricks" forum.
Joe Craig,
Patapsco Research Group
Complete DNN Support
Kriz Van Looy
Nuke Ace
Posts:41
10/08/2007 3:40 AM
Thanks,
I used this code from the snapsis.com site:
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Request.Url.PathAndQuery.ToLower().IndexOf("ctl=login") > -1 Then
dnnDOCUMENTSSUMMARY.Visible = False
End If
End Sub
</script>
but It's not working...Is there some difference because I am using DNN 4.6.2?
Thanks in advance
Kriz Van Looy
Nuke Ace
Posts:41
10/08/2007 8:34 AM
Ok, I managed to do this with this code:
<script runat="server">
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
If Request.IsAuthenticated Then
dnnDOCUMENTSSUMMARY.Visible = False
Else
dnnLOGIN.Visible = False
dnnUSER.Visible = False
End If
End Sub
</script>
Lee Sykes
DNN Creative Staff
Nuke Master VI
Posts:4945
10/09/2007 4:42 AM
Thanks for the info
Lee Sykes
Site Administrator
Subscribe to the website
:
DotNetNuke Video Tutorials
:
The Skinning Toolkit
:
DotNetNuke Podcasts
Twitter:
www.twitter.com/DNNCreative
Forums
>
Skinning Toolkit
>
Skinning Toolkit