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...Administration ...Administration ...Disable unRegisterDisable unRegister
Previous
 
Next
New Post
12/2/2008 1:10 PM
 

Dirk Decher wrote

As on 4.8.2 we do still not have the possibility to hide this button I share my thinking:

In general it would be great if we can disable the unregister by a setting. On my point of view it would be more usefull if we do it in an approach that comes from the Portal.UserRegistration type. If we do not allow any registration (that means that the users will be managed by the administrator by hand or by any synchronizing tool) we should not show the button at.

\admin\Users\users.ascx.vb line 267 we can just add 
...AndAlso Not (GetPortalSettings().UserRegistration = PortalRegistrationType.NoRegistration)

full line:
cmdDelete.Visible = Not (User.UserID = PortalSettings.AdministratorId) AndAlso Not (IsUser And User.IsSuperUser) AndAlso Not (GetPortalSettings().UserRegistration = PortalRegistrationType.NoRegistration)

If anybody like to disable it at all just set the visible state to false at all
                cmdDelete.Visible = False 'Not (User.UserID = PortalSettins.AdministratorId) AndAlso Not (IsUser And User.IsSuperUser)

Hope this will help someone

 

Thank you Dirk! This worked perfectly(4.9.0). Yes you need to track what "core" changes you make so you don't over write them when you update...but I much prefer to have the control not even rendered then to hide it via CSS/JavaScript.

 
New Post
9/21/2009 10:37 AM
 

Hi Folks,

I want to do them and a find a simple Solution!

Look here :
http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/threadid/318814/scope/posts/Default.aspx

_______________________
kostenlose Gewinne

 
New Post
9/21/2009 2:50 PM
 

Unfortunatly, there is no way to do it without modifying the core, I did it by hiding it from the html in the user control.


;

http://www.squidoo.com/weighttrainingprogramadvice
 
New Post
9/21/2009 5:51 PM
 

Hi Howard,

that is not right! Try it and you see that ma solution works!
You set the html tag visible = false in the accx file and I change ist in the code behind file!

 
New Post
2/26/2010 12:53 PM
 
does anyone know if this works for DNN 5.2.2?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Disable unRegisterDisable unRegister


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