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, ...Test skin causes Control Panel to display for all users.Test skin causes Control Panel to display for all users.
Previous
 
Next
New Post
3/23/2011 8:30 AM
 
I am just playing around with producing my own skin (quite new to this).

I setup a new CE copy of DNN install 05.06.01 (238). Logged in as host and deleted all the default content that gets placed on the main page. I am left with a blank default setup of DNN with no content/modules etc.

I mocked up a skin based off an .ascx setup from the default skin folder and changed it around a fair bit.

I goto the page settings for the main page and set the skin to this mock up I have and it all looks ok etc. (not perfect of course :P). However, if I am not logged in I can still see the control panel!

As a test I then set the skin back to default but the control panel remains after logging out.

I then deleted the *new* skin folder from _default/skins/ (just to make sure) and the control panel remains! I am really confused as to why this would happen. I haven't added any modules (just deleted pre-existing ones from the install). I haven't played with or adjusted any permissions.

Below is the files and code I am using (please excuse my beginner attempts at this).

##### homepage.css #####
html, body
{
    margin:0 0 0 0;
    padding:0 0 0 0;
}
 
body
{
    font-size:100%;
    color:#999999;
    font-family: 'Ubuntu', Arial, Serif;
    background: #F5F5F5 url('images/bkg_loop.png') repeat-x;
}
 
#mainWrapper
{
    width:1022px;
    margin-left: auto;
    margin-right: auto;  
    text-align:center;
    border:1px #d7d7d7 solid;
    background-color:#FFF;
}
 
#headerBlock
{
    width:100%;
    height: 113px;
    background-color: #11425f;
    border:0px Yellow solid;
}
 
#logoBlock
{
    float:left;
    padding-left:43px;
    padding-top:25px;
    border:0px pink solid;
}
 
#menuBlock
{
    float:right;
    padding-right:29px;
    padding-top:30px;
    text-align:right;
    border: 0px red solid;
}
 
#menuBlock img
{
    vertical-align:middle;
    border: 0;
}
 
#miniMenu a, a:visited, a:active
{
    text-decoration:none;
    color:#8aacc3;
    font-weight:bold;
    font-size:80%;
}
 
#miniMenu a:hover
{
    color:#fff;
}
 
#mainMenu
{
    padding-top:15px;
    color:#fff;
    font-weight:bold;
    font-size:115%;
}
 
.mi a, .mi a:visited, .mi a:active
{
    color:#fff;
    font-weight:bold;
    text-decoration:none;
    padding-left:10px;
}
 
.mi a:hover
{
    color:#1c6591;
}
 
/* Hide home and admin/host menu items */
.mainMenu .mi0, .mi6, .mi7
{
    display:none;
}
 
/* Pad out menu items from each other */
.mainMenu .root
{
    padding-right:20px;
}
 
/* Reset padding on last menu item so it remains lined up */
.mainMenu .mi5
{
    padding-right:0px;
}
 
#bannerBlock
{
    width:1022px;
    height:252px;
    /*background: #fff url('images/banner_image_01.png') no-repeat; */
    text-align:left;
    border:0px aqua solid;
}
 
#dnn_RightPane
{
    top:-270px;
    left:-37px;
    position:relative;
    float:right;
    border:0px Yellow solid;
    width:244px;
    height:415px;
    margin-bottom:-250px;
}
 
#dnn_RightPane .head_title
{
    font-size:110%;
    color: #fff;
    font-weight:bold;
}
 
#dnn_ContentPane
{
    top:-35px;
    left:32px;
    position:relative;
    float:left;
    border:0px Yellow solid;
    width:645px;
}
 
#dnn_ContentPane .head_title
{
    font-size:110%;
    color: #11425f;
    font-weight:bold;
}
 
#dnn_ContentPane a, #dnn_ContentPane a:active, #dnn_ContentPane a:visited
{
    text-transform:uppercase;
    text-decoration:none;
    font-size:60%;
    color:#2294d6;
    font-weight:bold;
}
 
#dnn_ContentPane a:hover
{
    color:#5bacdb;
}
 
#contentBlock
{
    border-top:1px #d7d7d7 solid;
    width:100%;
     
}
 
.clear
{
    clear:both;
}

##### homepage.ascx #####
<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="DotNetNuke.UI.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="NAV" Src="~/Admin/Skins/Nav.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGIN" Src="~/Admin/Skins/Login.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TERMS" Src="~/Admin/Skins/Terms.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<link href="http://fonts.googleapis.com/css?famil..." rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="<%= SkinPath %>css/screen.css" type="text/css" media="screen" />
<script type="text/javascript" src="<%= SkinPath %>js/easySlider1.7.js"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#slider").easySlider({
            auto: false,
            continuous: true
        });
    });
</script>
<div id="mainWrapper">
    <div class="cpanel_left">
        <div class="cpanel_right">
            <div runat="server" id="ControlPanel" ></div>
        </div>
    </div>
    <div id="headerBlock">
        <div id="logoBlock"><dnn:LOGO runat="server" id="dnnLOGO"  /></div>
        <div id="menuBlock">
            <div id="miniMenu">
                <a href="/">Home</a
                <a href="#">About us</a
                <a href="#">Contact us</a
                <a href="#"><img src="<%= SkinPath %>images/social_linkedin.png" alt="" /></a
                <a href="#"><img src="<%= SkinPath %>images/social_twitter.png" alt="" /></a>
            </div>
            <div id="mainMenu">
                <dnn:NAV runat="server" id="dnnNAV"  ProviderName="DNNMenuNavigationProvider" IndicateChildren="false" ControlOrientation="Horizontal" CSSControl="mainMenu"  />
            </div>
        </div>
    </div>
    <div id="bannerBlock">
        <div id="slider">
            <ul>               
                <li><img src="<%= SkinPath %>images/banner_image_01.png" alt="Banner 01" /></li>
                <li><img src="<%= SkinPath %>images/banner_image_02.png" alt="Banner 02" /></li>
                <li><img src="<%= SkinPath %>images/banner_image_03.png" alt="Banner 03" /></li>
            </ul>
        </div>
        <div class="clear"></div>
        <div runat="server" id="ContentPane"></div>
        <div runat="server" id="RightPane"></div>
    </div>
    <div class="clear"></div>
    <div id="contentBlock">
        <dnn:PRIVACY runat="server" id="dnnPRIVACY"  CssClass="footer" />  |  <dnn:TERMS runat="server" id="dnnTERMS"  CssClass="footer" /><dnn:COPYRIGHT runat="server" id="dnnCOPYRIGHT"  CssClass="footer" />
        <dnn:USER runat="server" id="dnnUSER"  CssClass="user" />  |  <dnn:LOGIN runat="server" id="dnnLOGIN"  CssClass="user" />
    </div>
</div>

 
New Post
3/24/2011 6:07 AM
 
I managed to solve this.

Unknown to myself, someone had setup the SQL database prior and deleted it and then created it again (same db name, login account etc.) for this DNN install. I am not totally sure how/why/if but SQL seemed to pull in old data despite being deleted and recreated. Someone might have better knowledge than myself here so please feel free to chuck some detailed reply here please ;)

Anyways, when I did the new install the 'All users' element for any page was always locked out (padlock icon). I couldn't turn off/on/remove it at all.

I decided to start again and deleted the database BUT this time I used a completely different database name. Went through the setup steps using the exact same details as I had in the previous install (other than the db name). I then uploaded the skin and implemented it on the homepage and everything worked as it should. The control panel no longer shows for 'All Users'.

Probably not the technical answer needed for everyone but solved either way.

A more technical answer would be appreciated though.

Thanks peeps!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Test skin causes Control Panel to display for all users.Test skin causes Control Panel to display for all users.


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