Quick Nav:  Online Store   |   Login | Register

CSS Editor

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Bill Shaw
<20 Posts
Posts:7


03/01/2005 9:33 AM  
I would like to hide the editor from certain users doing administration. How do I do that?
John Mitchell
<500Posts
Posts:355


03/01/2005 9:43 AM  

If the users are all in the administrators role on the same portal then you would have to modify the CSS Editor code-behind to have it show up only for a different role, then add the users you wanted to give it to into that role.

If they are all on their own portals, then you can remove the editor from the AdminMenu for that portal.

Let me know if you need more details on removing the CSS Editor from the AdminMenu (Control Panel), and what version of CSS Skins you are using if you want to go that route.

Bill Shaw
<20 Posts
Posts:7


03/01/2005 9:50 AM  
I think I would like to remove it from the admin menu. I'm using CSS 2.5. How do I do it?
John Mitchell
<500Posts
Posts:355


03/01/2005 10:16 AM  

You'll want to make a controls folder under your skin folder and have the  AdminMenu.ascx in it.

Then make sure your skin has a reference to controls/AdminMenu.ascx instead of DesktopModules/SnapsisDNN/Skins/AdminMenu.ascx

After your skin is referencing it's own AdminMenu you can remove the lines in the AdminMenu that reference the CSS Editor.

This one is near the top:

<%@ Register TagPrefix="SnapsisDNN" TagName="CSSEditor" Src="~/DesktopModules/SnapsisDNN/CSSEditor/CSSEditor.ascx"%>

and this one at the bottom:

<SnapsisDNN:CSSEditor runat="server" id="CSSEditor" />

This post goes the other way (includes just the editor in a normal skin), but may be of help also.

http://snapsis.com/default.aspx?tabid=25&frmView=ShowPost&PostID=1366

Bill Shaw
<20 Posts
Posts:7


03/01/2005 10:42 AM  
Thanks. I was having one other problem that just started recently. When I mouse over the tab admin, it doesn't unlock. I have to manually grab it by the title bar and move it. The CSS Editor mouse over unlock works fine.
Bill Shaw
<20 Posts
Posts:7


03/01/2005 1:54 PM  
I was a little quick with the thanks. When I removed the two lines referring to the CSS editor then the tab/module admin doesn't display.
Bill Shaw
<20 Posts
Posts:7


03/01/2005 2:29 PM  
A little more about the mouse over admin menu problem. It looks like it is docked but the tabAdmin.gif is not displayed.
John Mitchell
<500Posts
Posts:355


03/01/2005 2:37 PM  

You might have removed the image by accident or the CSS might need to be changed to get it to show depending on what is in the module-drop down list.

Long names in the module drop-down list have caused this problem in the past.

I'm not sure why you are having a problem with the solution for removing the CSS Editor so if you want you can send me the skin and I'll take a look.

Bill Shaw
<20 Posts
Posts:7


03/04/2005 3:24 PM  
I sent you the skin, have you figured out why both the CSS Editor and tab/module admin are disappearing when I just remove the CSS editor lines from the AdminMenu.ascx?

Also, on the issue with the tabAdmin.gif not displaying. The file has not been deleted and when you say long names in the module drop-down list, how long are you talking about? I don't see any my list that are excessively long.
Bill Shaw
<20 Posts
Posts:7


03/04/2005 4:54 PM  
I figured out the problem with tab/module admin not docking correctly. I had changed the font for the cssclass subhead from tahoma to verdana and kept the same pixel size. But it apparently caused a size problem. But I still need to make the CSS Editor disappear without losing the tab/module admin window.
John Mitchell
<500Posts
Posts:355


03/04/2005 4:59 PM  
Ok, I had to go back and search but I found your e-mail in my junk mail folder.  I'm looking at it now.  Sorry for the delay.
William Wolbach
<20 Posts
Posts:3


05/02/2005 2:25 AM  
Hello:

I was under the impression that there would be some kind of example in here on how to get the csseditor window to not show up. I can't see any example here, at least not one that someone says works. I see someone say they 'thanked' someone too soon, then they sent an email, and acknowledge receiving the email. Ack. Could someone post an example w/ascx file of how to include both the control panel and the csseditor, and how to only display the control panel?

Thanks in advance. Just two specific examples w/source code are what's needed.
William Wolbach
<20 Posts
Posts:3


05/02/2005 4:25 AM  
Ok. Well, I tried the above and I get javascript errors, so there must be some kind of information missing. Heck, I get javascript errors no matter what I do now that I installed the latest version you emailed to me.

Let's see if I can make this clear. I'd like to see an ascx file(s) (for the skin), that will allow me to:

1. Display the sign in box only (I *used* to be able to do this, but now I just get javascript errors as soon as I load my skin).

2. To display the control panel only.

3. To display the csseditor only.

I assume that if I can see code that accomplishes this *exactly* then I can also figure out how to combine any of the above. But if I send you the skin, well, it ends up like the above conversation. It's like a story where someone tells you it ends, but doesn't tell you *how* it ends. ;-)
William Wolbach
<20 Posts
Posts:3


05/02/2005 11:02 AM  
Oh. Sorry. Here's the ascx source. If I uninstall snapsis, this skin works fine. If I install snapsis, I get javascript errors in the controlpanel html code. (In the previous version, I didn't get javascript errors. Another thing that's strange is that in the previous version, I wouldn't see the blue box for the control panel and csseditor (I mean, I didn't WANT them and don't have them defined anywhere in the skin so why would they be there? right?) but in the version you emailed me, even if I don't mention the csseditor or anything the two blue buttons show up. And I get javascript errors. ACK.)

Per the above 3 things. Here's a skin that would work fine if snapsis were not installed:

<%@ Control language="vb" AutoEventWireup="false" Explicit="True" Inherits="Snapsis.DNN.Skins.Skin" %>
<%@ Register TagPrefix="dnn" TagName="HELP" Src="~/Admin/Skins/Help.ascx" %>
<%@ Register TagPrefix="dnn" TagName="USER" Src="~/Admin/Skins/User.ascx" %>
<%@ Register TagPrefix="dnn" TagName="LOGO" Src="~/Admin/Skins/Logo.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BANNER" Src="~/Admin/Skins/Banner.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SOLPARTMENU" Src="~/Admin/Skins/SolPartMenu.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SEARCH" Src="~/Admin/Skins/Search.ascx" %>
<%@ Register TagPrefix="dnn" TagName="CURRENTDATE" Src="~/Admin/Skins/CurrentDate.ascx" %>
<%@ Register TagPrefix="dnn" TagName="BREADCRUMB" Src="~/Admin/Skins/BreadCrumb.ascx" %>
<%@ Register TagPrefix="dnn" TagName="COPYRIGHT" Src="~/Admin/Skins/Copyright.ascx" %>
<%@ Register TagPrefix="dnn" TagName="HOSTNAME" Src="~/Admin/Skins/HostName.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TERMS" Src="~/Admin/Skins/Terms.ascx" %>
<%@ Register TagPrefix="dnn" TagName="PRIVACY" Src="~/Admin/Skins/Privacy.ascx" %>
<%@ Register TagPrefix="portal" Namespace="Snapsis.DNN.Skins" Assembly="Snapsis.DNN.Skins" %>





























 Login   















..::  ..::























 

 

   










Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software