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, ...DNN Frame Attributes - Is Host?DNN Frame Attributes - Is Host?
Previous
 
Next
New Post
10/18/2010 4:48 PM
 

Hey Timo (this one's for you)

As you know, I often make use of the DNN Framework Attributes to help control certain elements displays within my skins - very handy.

I need to make use of an attribute that checks whether or not the user that is logged in has the role of Host / Superuser. Does this functionality exist..? I was thinking something on the lines of...

<%If Request.IsUserRole.Super Then%>

...or something like that?

Thanks in advance
Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
10/18/2010 6:51 PM
 
UserController.GetCurrentUserInfo().IsSuperUser

I'll add it to the attributes example
 
New Post
10/19/2010 3:25 PM
 
Timo Breumelhof wrote:
UserController.GetCurrentUserInfo().IsSuperUserD

I'll add it to the attributes example

 Hi Timo

Battling with this one...

I ultimately need something on the lines of this:

<%If UserController.GetCurrentUserInfo().IsSuperUser Then%>
  • Open login panel
  • <%End If%>

    or, more simply put...

    <%If Request.IsSuperUserD Then%>
  • Open login panel
  • <%End If%>

    I'm battling with the syntax on this. Don't know if what I'm looking to do is possible..?

    Thanks
    Jon


    Shebang Websites - A product of Mogridge Design
    Hey, we're partnered with UntangleMyWeb.com

     
    New Post
    10/20/2010 3:23 AM
     
    Is open login panel a function or regular HTML?
    For regular HTML your first code should work IMO
     
    New Post
    10/20/2010 3:31 AM
     
    Timo Breumelhof wrote:
    Is open login panel a function or regular HTML?
    For regular HTML your first code should work IMO

     Hi Timo

    Sorry... For some reason the forums / rad editor doesn't like some of the elements in my <pre> tags... That code snippet should've looked like this:

    <%If Request.IsSuperUserD Then%><li><a id="loggedin-slider-ctrl">Open login panel</a></li><%End If%>

    The "Open login panel" bit in the <a> is a jQuery dropdown login pane I've been working on for our client production sites. I tried the above If Request and it didn't work for me - DNN threw out an error. Basically, I only want to inject the <li> if the user has a host account.

    Jon


    Shebang Websites - A product of Mogridge Design
    Hey, we're partnered with UntangleMyWeb.com

     
    Previous
     
    Next
    HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN Frame Attributes - Is Host?DNN Frame Attributes - Is Host?


    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