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
4/5/2008 9:53 PM
 

There is probably a way to do it with javascript and a custom user page, though I am no javascript wiz. Anyone know javascript well enough to figure it out?

 
New Post
4/22/2008 1:53 PM
 

Here's a quick and dirty script to disable UnRegister. I created a custom User page. Added the User Account module. Then I added HTML text module below it. I believe it must be below it in order the javascript to work properly. After adding these two modules, I modified the text of the HTML module. I had to click the source button on the HTML editor and paste the code below into it then click update. If I use the HTML WYSIWYG editor of the HTML module, then it messes with the script.

I would appreciate suggestions if there is a better way to do this. Note: you will need to substitute "dnn_ctr518_ManageUsers_User_cmdDelete" with the id of the <span> element that contains the UnRegsiter code. This id can be found by logging in with a user other than an administrator, loading up this page (should show UnRegister button if javascript is not working), view the HTML source of your user page, and search for the <span> element which contains the UnRegister code.

 

<script type="text/javascript" language="javascript">
var theSpan = document.getElementById("dnn_ctr518_ManageUsers_User_cmdDelete");
if(theSpan != null)
{
dnn_ctr518_ManageUsers_User_cmdDelete.innerHTML = "";
dnn_ctr518_ManageUsers_User_cmdDelete.innerText = "";
document.write("UnRegister is disabled. Please contact the site administrator if need help with your account.");
}
</script>

 
New Post
5/16/2008 6:15 AM
 

Hi John,

I've tried u'r 'quick & dirty' solution and it worked partially. I could get rid of the Unregister button, but only when the page loads for first time. When it loads after a post back (say u go to Manage password and then come again to Manage user credentials) the java script is never called and the unregister button is back in the page. Any ideas?

Uchitha.

 
New Post
5/20/2008 5:59 PM
 

Another issue with the Q&D solution is that the user can click on the username next to the 'Logout' link and is presented with the 'Unregister' link on that page as well.  This really needs to be configurable.  How do we go about making the request for the change?

 
New Post
5/21/2008 1:09 AM
 

If you'd like to suggest a change you can post it in the Public section of Gemini (http://support.dotnetnuke.com)

 

 
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