Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 stop member from editing their email address
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

zinpin
Junior Member

Australia
202 Posts

Posted - 09 May 2003 :  08:05:18  Show Profile
What do I need to change to stop members from changing their email address. I would like the address to be displayed just like the user-name but not be editable by them only by moderator or admin.
thank you in advance.

Nikkol
Forum Moderator

USA
6907 Posts

Posted - 09 May 2003 :  08:16:17  Show Profile
why? if you turn on validate email, then you will be assure that the email is valid.

Nikkol ~ Help Us Help You | ReadMe | 3.4.03 fixes | security fixes ~
Go to Top of Page

UGBC
Junior Member

143 Posts

Posted - 09 May 2003 :  12:19:25  Show Profile
You could go into the file that gets called when you modify a profile (not sure which one it is) and just set some impossible stipulation and have it display an error message that email addresses are not edittable.

I had to modify this to make sure no one changed their email from a particular domain that everyone must have.
Go to Top of Page

zinpin
Junior Member

Australia
202 Posts

Posted - 09 May 2003 :  19:06:57  Show Profile
Thanks UGBC, Ive been trying to make the changes on inc_profile but not successfully.
Go to Top of Page

UGBC
Junior Member

143 Posts

Posted - 10 May 2003 :  13:43:12  Show Profile
ok, here's what you need to do, go into pop_profile.asp

On my forum it's around line 1100, in

Case goEdit, Down about 200 lines from when the case starts, there's some code like this:

if Request.Form("Email") = "" then
Err_Msg = Err_Msg & "<li>You Must give an e-mail address</li>"
end if


This is the code I added for my forum, you could play around with it in a number of ways to make sure that the error message will come up.

if trim(right(Request.Form("Email"),7)) = "@bc.edu" then
'do nothing
else
Err_Msg = Err_Msg & "<li>You may not change to a non-BC email address.</li>"
end if


Let me know if you have any trouble adding this.

Edited by - UGBC on 10 May 2003 13:44:01
Go to Top of Page

zinpin
Junior Member

Australia
202 Posts

Posted - 11 May 2003 :  04:13:42  Show Profile
Worx like a charm thanks UGBC

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.35 seconds. Powered By: Snitz Forums 2000 Version 3.4.07