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, ...Removed controlpanel from admin viewRemoved controlpanel from admin view
Previous
 
Next
New Post
11/8/2015 4:56 PM
 

I made a copy of the default  /admin/ControlPanel/ControlBar.ascx and installed it as another option in host settings control panel type.

My website requires only superusers to have access to the control panel, and did not want admins to even know it exists, so with my new copy I added the below code and selected it as my control panel in host settings.

<% if (UserController.Instance.GetCurrentUserInfo().IsSuperUser) {%>
<asp:Panel ID="ControlPanel" runat="server">

blah blah.......

 </asp:Panel>
<% } %>

Cool it works as planned, only the control panel shows up for the host and admins can still access admin modules on pages I added them to without seeing the control panel.

BUT now I'm left with a white space where the control panel should have been for administrators.

I have been fiddling around but with no success so I have come here for some help on how to remove the blank space where the control panel for administrators was removed from their view  by adding the code above to it.

thanks gerrit

 


Gerrit Aalbrecht http://app.cleantomic.com
 
New Post
11/8/2015 10:23 PM
 

Use your browser debugger and figure out which element occurs after the controlbar.  It will probably have it's position fixed with a value for the top set to about 55px.

You could use the same wrapper to inject an inline style so that non super users have a different value for the margin or top attribute on the offending element.  I think you will have to do this in your skin .ascx file.

 
New Post
11/10/2015 1:39 PM
 

thanks i will try that today


Gerrit Aalbrecht http://app.cleantomic.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Removed controlpanel from admin viewRemoved controlpanel from admin view


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