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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Hide help icon with DNN Label Control?Hide help icon with DNN Label Control?
Previous
 
Next
New Post
6/20/2007 2:56 PM
 

OK, here we are. Long live John Mitchell (and his blog posts...) 

     <asp:linkbutton id=cmdHelp tabindex="-1" runat="server" CausesValidation="False" enableviewstate="False"> 
<% If DotNetNuke.Security.PortalSecurity.IsInRoles("Administrator") Then%> 
           <asp:image id="imgHelp" tabindex="-1" runat="server" imageurl="~/images/help.gif" enableviewstate="False"></asp:image>
<%End If%>
    </asp:linkbutton>

He actually posted this to be used in skins for a permanent Admin Only displays. He also had "PortalSettings.AdministratorRoleName" in place of "Administrator"... It gave me some issues... so I just replaced it the way you see it here. Feel free to tell me what did I have to do to avoid hard coding  the role name.  


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
6/21/2007 12:34 AM
 

Very cool.. that seems to work. I find that it doesn't seem to matter what role I put in.. it shows the icon to anyone who is logged in, even non-admins, and doesn't show it to people who aren't.

That's certainly odd considering it clearly specifies the Administrator role by name... however it's good enough for me even like this. I mainly want to keep the help icons off the visitor interface, but don't mind having them there once logged in.

 
New Post
7/5/2007 2:01 PM
 

Another version. 

    <asp:linkbutton id=cmdHelp tabindex="-1" runat="server" CausesValidation="False" enableviewstate="False">
<% If DotNetNuke.Security.Permissions.TabPermissionController.HasTabPermission("EDIT") Then%>
           <asp:image id="imgHelp" tabindex="-1" runat="server" imageurl="~/images/help.gif" enableviewstate="False"></asp:image>
<%End If%>
    </asp:linkbutton>


Vitaly Kozadayev
Principal
Viva Portals, L.L.C.
 
New Post
10/6/2010 2:10 PM
 
With your above code how editable will these icons become? Will there be an option in the settings of a particular module to remove the help icons? You guys over at DNN should really have a better way of removing these annoying help icons from modules. Is a user really going to need help for inputting their name in the name field of my feedback form???
 
New Post
10/11/2010 3:30 AM
 
hi all i wanted helplabel icon to be displayed in some pages all above help by this blog didnt work for me i solved this problem in another way this control name is labelcontrol.ascx in control folder i developed another control WthoutHelpIcon_labelcontrol.ascx in control folder where i set visible property to false now if want a lable without help in any module, i only change this in page directive <%@ Register TagPrefix="dnn" TagName="Label" Src="~/controls/WthoutHelpIcon_labelcontrol.ascx" %>
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Hide help icon with DNN Label Control?Hide help icon with DNN Label Control?


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