Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
 


  Sponsors  

Meet Our Sponsors

Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
Click here to go to dev.live.com for Windows Live developer resources
SteadyRain
DataSprings - Great Ideas. Always Flowing.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Disable unRegister
Previous Previous
 
Next Next
New Post 4/5/2008 6:53 PM
User is offline John Hildebrant
36 posts
10th Ranked


Re: Disable unRegister 

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 10:53 AM
User is offline John Hildebrant
36 posts
10th Ranked


Re: Disable unRegister 
Modified By John Hildebrant  on 4/22/2008 3:20:19 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 3:15 AM
User is offline uchitha
18 posts
10th Ranked


Re: Disable unRegister 

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 2:59 PM
User is offline JC
11 posts
10th Ranked


Re: Disable unRegister 

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/20/2008 10:09 PM
User is offline Mike Horton
2790 posts
dnn.gmss.org
5th Ranked






Re: Disable unRegister 

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

 

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Disable unRegister
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Icthus Technologies
Building Faith on the Internet
www.icthustech.com
Efficion Consulting
A premier DotNetNuke consulting firm providing complete DNN services including: custom module development, skinning and design, installation and integration services.
www.efficionconsulting.com
DotNetNuke Training by Engage Software
Specializing in customized training, architecture and module solutions for large scale implementations lead by DNN Core Team Member Christopher Hammond.
engagesoftware.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP