Gossamer Forum
Home : Products : Gossamer Forum : Discussion :

Help! Help! Don't want registrants to be able to change ...

Quote Reply
Help! Help! Don't want registrants to be able to change ...
... the email they registered with.

In "Home : Edit Profile: User Profile:" you can change you can change both "Real Email Address" and "Display Email Address"

We don't want a user to have the ability to change his/her registration email. We will do it for them ...

How can I adjust the template to fix this?

Thanks

Steve

Visit The Guitar Diner
Quote Reply
Re: [Boomer] Help! Help! Don't want registrants to be able to change ... In reply to
BTW, we are trying to go live with this forum Saturday afternoon, so speedy replies are appreciated!

Steve

Visit The Guitar Diner
Quote Reply
Re: [Boomer] Help! Help! Don't want registrants to be able to change ... In reply to
Hello Boomer

In your Admin Planel load the Template
user_profile_basic.html

search for

Code:
<input class="button" size="50" type=text name=user_email value="<%user_email%>">

an chance to
Code:
<%user_email%>

This ist the real Email Adress

now search for

Code:
<input class="button" size="50" type=text name=user_disp_email value="<%user_disp_email%>">

and chance to
Code:
<%user_disp_email%>

So the email Adress are not able to chance

But why should the users cant chance her Display Email ?


greeting hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Help! Help! Don't want registrants to be able to change ... In reply to
Hoefti:

Thanks for the prompt reply.

I want to be sure you understand ...

I want users to be able to change their displayed email address.
I do not want users to be able to change their real email address, the one they used to register!

So, hopefully I've made that more clear. Are your changes the correct ones to accomplish this?

Again, thanks so much for the prompt reply.

Steve

Visit The Guitar Diner
Quote Reply
Re: [Boomer] Help! Help! Don't want registrants to be able to change ... In reply to
Hello Boomer

Then only change

Code:
<input class="button" size="50" type=text name=user_email value="<%user_email%>">

to
Code:
<%body_font%><%user_email%><%/body_font%>

its looks like better

greetings hoefti
linktobuy Web Directory
Ratgeber Recht

Last edited by:

hoefti: Sep 14, 2002, 7:18 AM
Quote Reply
Re: [Boomer] Help! Help! Don't want registrants to be able to change ... In reply to
What I think Steve is doing is a manual response to what should be a Gforum feature. I.e., if you have validation selected in your setup, when a user changes their 'real' e-mail address a new validation message should be sent out before that change is accepted.

That is on my list of suggestions for the next versions.
Quote Reply
Re: [ArmyAirForces] Help! Help! Don't want registrants to be able to change ... In reply to
Hello ArmyAirForces


That is the correct way for this problem an in many other Foren even instal

mfg hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Help! Help! Don't want registrants to be able to change ... In reply to
I made the change in the template, but it dod not prevent me from logging in to "Edit Profile" and changing his real email ...

Here is the template modified as suggested:

<%--

File
====
user_profile_basic.html

Description
===========
When you edit your "Basic Profile" this page will be used.

--%>
<html>
<head>
<title><%site_title%>: Edit profile: User Profile: <%current_user_username%></title>
<%include include_css.html%>
</head>
<%body_tag%>
<%include include_header.html%>
<center>
<%body_table%>
<tr>
<td valign="bottom">
<%title_font%>
<a href="gforum.cgi?<%hidden_query%>">
<%title_font%><%site_home%><%/title_font%>
</a>:
<a href="gforum.cgi?do=user_profile;<%hidden_query%>" class="menu">
<%title_font%>Edit Profile:<%/title_font%>
</a>
User Profile: <%nbsp user_username%>
<%/title_font%>
</td>
<td align="right">
<%include include_logo.html%>
</td>
</tr>
<form action="gforum.cgi" method="post" enctype="multipart/form-data">
<tr>
<td colspan="2">
<%hidden_form%>
<%body_font%>
<%if errors%>
<font color=red>
There were errors in your information:
<ul>
<% loop errors%>
<li><%error%></li>
<% endloop%>
</ul>
</font>
<%endif%>
<br>
<%/body_font%>
<%list_table%>
<%top_row%>
<td colspan=2 height=3>
<img src="<%image_url%>/clear_shim.gif" height=1 width=100"><br>
</td>
</tr>
<tr>
<td width="20%" align=right>
<%body_font%>Username:<%/body_font%>
</td>
<td>
<%GForum::Config::tpl_get(username_allow_change, user_icon_allow_upload)%>
<%if username_allow_change%>
<input type=text name=user_username value="<%user_username%>" size=20 maxlength=50 class="button">
<input type="hidden" name="old_username" value="<%user_username%>">
<%else%>
<%body_font%>
<%nbsp user_username%>
<%/body_font%>
<%endif%>
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Real Email address:<%/body_font%>
</td>
<td>
<input class="button" size="50" type=text name=user_email value="<%user_email%>">
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Display Email address:<%/body_font%>
</td>
<td>
<input class="button" size="50" type=text name=user_disp_email value="<%user_disp_email%>">
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Change Password:<%/body_font%>
</td>
<td>
<input class="button" type=password size=20 name=user_password>
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Change Password (again):<%/body_font%>
</td>
<td>
<input class="button" type=password size=20 name=user_password>
</td>
</tr>
<tr>
<td align=right valign=top>
<%GForum::Config::tpl_get(signature_allow_markup, signature_allow_html)%>
<%body_font%>
Signature:
<%if signature_allow_html or signature_allow_markup%>
<br><br>(<%if signature_allow_html%>HTML<%if signature_allow_markup%> and <%else%> allowed<%endif%><%endif%><%
if signature_allow_markup == 2%><a href="gforum.cgi?do=markup_help;<%hidden_query%>">Markup</a> allowed)<%
elsif signature_allow_markup%><a href="gforum.cgi?do=markup_help;<%hidden_query%>">Markup</a> allowed - tags disabled)<%
endif%>
<%endif%>
<%/body_font%>
</td>
<td>
<textarea class="button" name=user_signature rows="<%user_rows%>" cols="<%user_cols%>" wrap=soft>
<%user_signature%></textarea>
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Visible in "Who's Online":<%/body_font%>
</td>
<td>
<select class="button" name=user_invisible size=1>
<option value=0<%if user_invisible = 0%> selected<%endif%>>Yes</option>
<option value=1<%if user_invisible = 1%> selected<%endif%>>No</option>
</select>
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Allow Private Messages:<%/body_font%>
</td>
<td>
<select name="user_accept_privmsg" class="button" size="1">
<option value="1"<%if user_accept_privmsg = 1%> selected<%endif%>>Yes</option>
<option value="0"<%if user_accept_privmsg = 0%> selected<%endif%>>No</option>
</select>
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Send private message notification via e-mail:<%/body_font%>
</td>
<td>
<select class="button" name=user_message_notify size=1>
<option value=1<%if user_message_notify%> selected<%endif%>>Yes</option>
<option value=0<%ifnot user_message_notify%> selected<%endifnot%>>No</option>
</select>
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Send reply notification checked by default:<%/body_font%>
</td>
<td>
<select class="button" name=user_default_reply_notify size=1>
<option value=1<%if user_default_reply_notify%> selected<%endif%>>Yes</option>
<option value=0<%ifnot user_default_reply_notify%> selected<%endifnot%>>No</option>
</select>
</td>
</tr>
<%GForum::User::icons('with_leading_blank', $user_icon_allow_upload)%>
<tr>
<td align=right valign=top>
<%body_font%>Icon:<%/body_font%>
</td>
<td>
<table border=0 cellspacing=0 cellpadding=5 width="100%">
<tr valign=middle align=center>
<%set icon_cols = 4%>
<%loop icons%>
<td>
<table border=0 cellspacing=0 cellpadding=0>
<tr valign=center align=left>
<td>
<%if first%>&nbsp;<%elsif last and user_icon_allow_upload%><input type="file" class="button" name="user_icon_upload" onClick="document.getElementById('upload_radio').checked = 1"><%else%><img src="<%image_url%>/<%icon_filename%>" align="middle" width="<%icon_width%>" height="<%icon_height%>"><%endif%>
</td>
<td>
<input type="radio" name="user_icon" value="<%if first%><%elsif user_icon_allow_upload and last%>" id="upload_radio<%else%><%icon_filename%><%endif%>"<%if user_icon eq $icon_filename and not last%> checked<%endif%>>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<%body_font%><%if first%>None<%elsif last and user_icon_allow_upload%>Upload new image<%else%><%icon_name%><%endif%><%/body_font%>
</td>
</tr>
</table>
</td>
<% if not last and not row_num % $icon_cols%>
</tr>
<tr valign=middle align=center>
<% elsif last and row_num % $icon_cols%>
<td colspan="<%row_num ~ $icon_cols%>">
&nbsp;
</td>
<% endif%>
<%endloop%>
</tr>
</table>
</td>
</tr>
<tr>
<td align=right>
<%body_font%>Show other users' icons:<%/body_font%>
</td>
<td>
<select class="button" name="user_show_user_icons" size="1">
<option value="1"<%if user_show_user_icons%> selected<%endif%>>Yes</option>
<option value="0"<%ifnot user_show_user_icons%> selected<%endifnot%>>No</option>
</select>
</td>
</tr>
<tr>
<td align=right>
<%body_font%>Real Name:<%/body_font%>
</td>
<td>
<input class="button" type=text name=user_real_name size=50 maxlength=255 value="<%user_real_name%>">
</td>
</tr>
<tr>
<td align=right>
<%body_font%>Homepage:<%/body_font%>
</td>
<td>
<input class="button" type=text name=user_homepage size=50 maxlength=255 value="<%if user_homepage%><%user_homepage%><%else%>http://<%endif%>">
</td>
</tr>
<tr>
<td align=right>
<%body_font%>Occupation:<%/body_font%>
</td>
<td>
<input class="button" type=text size=50 maxlength=75 name=user_occupation value="<%user_occupation%>">
</td>
</tr>
<tr>
<td align=right>
<%body_font%>Location:<%/body_font%>
</td>
<td>
<input class="button" type=text size=50 maxlength=75 name=user_location value="<%user_location%>">
</td>
</tr>
<tr>
<td align=right valign=top>
<%body_font%>Interests:<%/body_font%>
</td>
<td>
<textarea name=user_interests class=button cols="<%user_cols%>" rows="<%user_rows%>" wrap=soft>
<%user_interests%></textarea>
</td>
</tr>
<tr>
<td align=right>
<%body_font%>ICQ #:<%/body_font%>
</td>
<td>
<input class="button" type=text size=20 maxlength=10 name=user_icq value="<%user_icq%>">
</td>
</tr>
<tr>
<td align=right>
<%body_font%>AIM Name:<%/body_font%>
</td>
<td>
<input class="button" type=text size=20 maxlength=25 name=user_aim value="<%user_aim%>">
</td>
</tr>
<tr>
<td align=right>
<%body_font%>Yahoo Identity:<%/body_font%>
</td>
<td>
<input class="button" type=text size=20 maxlength=25 name=user_yahoo value="<%user_yahoo%>">
</td>
</tr>
<tr>
<td align=right>
<%body_font%>MSN Identity:<%/body_font%>
</td>
<td>
<input class="button" type=text size=40 maxlength=255 name=user_msn value="<%user_msn%>">
</td>
</tr>
<tr bgcolor="<%light_green%>">
<td colspan=2 style="border-top:1px solid <%dark_beige%>" align=right>
<input type=hidden name=on_error value=user_profile_basic>
<input type=hidden name=on_success value=user_profile>
<input type=hidden name=do value=user_profile_change>
<input class="submit" type=submit value="Make Profile Changes" align=right>
</td>
</tr>
</table>
</td>
</tr>
</form>
<%/body_table%>
<br><br>
<%include include_footer.html%>
</center>
</body>
</html>


Any thoughts?

Steve

Visit The Guitar Diner
Quote Reply
Re: [Boomer] Help! Help! Don't want registrants to be able to change ... In reply to
Hello Boomer

Edit

Code:
<input class="button" size="50" type=text name=user_email value="<%user_email%>">

to
Code:
<%body_font%><%user_email%><%/body_font%>

so the user can`t change the registratios - Email Adress

mfg hoefti

ps: i have edit the file you can download it
see the Attachment
linktobuy Web Directory
Ratgeber Recht

Last edited by:

hoefti: Sep 14, 2002, 8:13 AM
Quote Reply
Re: [hoefti] Help! Help! Don't want registrants to be able to change ... In reply to
Thanks hoefti, but for some reason I can't download your attachment. When I click on it, I am taken to some strange error page in the "Change User Settings" section. It is very strange!

Steve

Visit The Guitar Diner
Quote Reply
Re: [Boomer] Help! Help! Don't want registrants to be able to change ... In reply to
why ?

try this file

is a txt file open with your editor an copy in the template

mfg hoefti
linktobuy Web Directory
Ratgeber Recht

Last edited by:

hoefti: Sep 14, 2002, 8:25 AM
Quote Reply
Re: [hoefti] Help! Help! Don't want registrants to be able to change ... In reply to
all files are covert to a html - file there comes the Error

mfg hoefti
linktobuy Web Directory
Ratgeber Recht
Quote Reply
Re: [hoefti] Help! Help! Don't want registrants to be able to change ... In reply to
Thanks, that worked perfectly!

Steve

Visit The Guitar Diner
Quote Reply
Re: [ArmyAirForces] Help! Help! Don't want registrants to be able to change ... In reply to
I concur with the new validation message requirement when users change their real e-mail address. I am starting to get a lot of bounced e-mails.



BTW - I am glad that I searched for this topic before posting! I was going to post the same thing!
Quote Reply
Re: [shiner] Help! Help! Don't want registrants to be able to change ... In reply to
This is on the 2.0 list - the user won't be able to change their e-mail address without Gossamer Forum sending an e-mail to it. Of course, there is nothing to prevent someone from registering some free e-mail address, then deleting it - but I don't think 99.9% of users would go through that much hassle.

Jason Rhinelander
Gossamer Threads
jason@gossamer-threads.com
Quote Reply
Re: [Jagerman] Help! Help! Don't want registrants to be able to change ... In reply to
As a point of interest, if anyone would like it, I have a list of about 1800 free / throw-away email domains. It is, by no means, complete, but so far only a couple have slipped by and we catch them eventually. We do not allow our users to register without a "real" email.

If you would like a copy, let me know.

Steve

Visit The Guitar Diner