Author |
Topic  |
|
Kerry
Average Member
  
USA
553 Posts |
Posted - 02 November 2000 : 03:10:10
|
To cut down on 'bogus' registrations and possible spam, this mod will generate a random password and mail it to the registrants email. No valid email = no posts. -It certainly won't stop someone who's determined, but it'll at least make it inconvenient.
I think a more sure way would be to add something like a non-editable FIRST_EMAIL field to FORUM_MEMBERS, but that can be for later. ---------------------------------------------------------- Based on SR2 inc_profile.asp
Add to top of page:
<% randomize MY_PASSWORD = Int((100000 * Rnd()) + 10000) %>
Then replace (approx. lines 209 - 214) <tr> <td bgColor="<% =strPopUpTableColor %>"align=right nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><FONT color=#ff0000>*</FONT> Password: </font></td> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><INPUT name="Password" type="Password" size="25" value="<% =rs("M_PASSWORD") %>"> <INPUT name="Password-d" type=hidden value="<% =rs("M_PASSWORD") %>"></font></td> </tr> <% if Request.QueryString("mode") = "Register" or Request.QueryString("mode") = "goEdit" then %> <tr> <td bgColor="<% =strPopUpTableColor %>"align=right nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><FONT color=#ff0000>*</FONT> Password Again: </font></td> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><INPUT name="Password2" type="Password" value="<% =rs("M_PASSWORD") %>" size="25"></font></td> </tr>
with <%if Request.QueryString("mode") = "goEdit" then %> <tr> <td bgColor="<% =strPopUpTableColor %>"align=right nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><FONT color=#ff0000>*</FONT> Password: </font></td> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><INPUT name="Password" type="Password" size="25" value="<% =rs("M_PASSWORD") %>"> <INPUT name="Password-d" type=hidden value="<% =rs("M_PASSWORD") %>"></font></td> </tr> <tr> <td bgColor="<% =strPopUpTableColor %>"align=right nowrap><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><FONT color=#ff0000>*</FONT> Password Again: </font></td> <td bgColor="<% =strPopUpTableColor %>"><font face="<% =strDefaultFontFace %>" size="<% =strDefaultFontSize %>"><INPUT name="Password2" type="Password" value="<% =rs("M_PASSWORD") %>" size="25"></font></td> </tr> <%end if if Request.QueryString("mode") = "Register" then %> <INPUT name="Password" type="hidden" value="<% =MY_PASSWORD%>"> <INPUT name="Password2" type="hidden" value="<% =MY_PASSWORD%>">
It seems to work okay here - if anyone tries this, let me know how it works out.
-Kerry
"Technology so advanced, even we don't understand it." |
|
Kerry
Average Member
  
USA
553 Posts |
Posted - 02 November 2000 : 03:14:35
|
Almost forgot!
1) This is only for Extended Profiles so far.
2) You'll also want to include instructions regarding this indicating that they'll recieve their pw by email and that they can change it later <img src=icon_smile.gif border=0 align=middle>
-Kerry
<font size=2><font color=red>"Technology so advanced, even <i>we</i> don't understand it."</font id=red></font id=size2>
Edited by - kerry on 02 November 2000 03:31:45 |
 |
|
alp
Starting Member
8 Posts |
Posted - 07 December 2000 : 21:19:30
|
Kerry,
What is an extended profile? I am interested in using this method, but i wanted to talk with you first.
Thanks
Adam
|
 |
|
John
Junior Member
 
USA
427 Posts |
Posted - 07 December 2000 : 22:08:41
|
umm, that wouldn't work too well... they could just view the source and get their password...
<b><font size=2>John Miller</font id=size2> <font color=green><font size=1>Snitz Moderator</font id=size1></font id=green></b> <img src="http://online.mirabilis.com/scripts/online.dll?icq=49005230&img=7" border=0> "<i>You are now logged in! Please log in below:</i>" |
 |
|
Kerry
Average Member
  
USA
553 Posts |
Posted - 07 December 2000 : 23:55:26
|
A good point - I was mainly looking for something to act as a deterrent, but you're right, it's by no means a final solution.
Suggestions?<img src=icon_smile_question.gif border=0 align=middle>
-Kerry
|
 |
|
Kerry
Average Member
  
USA
553 Posts |
Posted - 07 December 2000 : 23:58:02
|
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> What is an extended profile <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
First off, what version are you running? -I haven't done this with any of the earlier versions. -This code was based on 3.1 sr2 - "extended profiles" is an option in the admin panel.
-Kerry
|
 |
|
Kerry
Average Member
  
USA
553 Posts |
Posted - 10 January 2001 : 15:40:42
|
WOW !!! Something's changed the way this thing handles posts - the first post was fine when originally posted 
-Kerry
|
 |
|
gor
Retired Admin
    
Netherlands
5511 Posts |
|
Davio
Development Team Member
    
Jamaica
12217 Posts |
Posted - 10 January 2001 : 16:41:14
|
Oops, gor fixed it while I was posting. :-) *----*----*----*----*----*----*----*----* "Even when you feel you have nothing left, You still have prayer--And that's enough." *----*----*----*----*----*----*----*----*
Edited by - Davio on 10 January 2001 16:42:44 |
 |
|
|
Topic  |
|