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/Code)
 Spam reduction (Mail random passwords)
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Kerry
Average Member

USA
553 Posts

Posted - 02 November 2000 :  03:10:10  Show Profile  Visit Kerry's Homepage
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  Show Profile  Visit Kerry's Homepage
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
Go to Top of Page

alp
Starting Member

8 Posts

Posted - 07 December 2000 :  21:19:30  Show Profile  Visit alp's Homepage
Kerry,

What is an extended profile? I am interested in using this method, but i wanted to talk with you first.

Thanks

Adam

Go to Top of Page

John
Junior Member

USA
427 Posts

Posted - 07 December 2000 :  22:08:41  Show Profile
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>"
Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 07 December 2000 :  23:55:26  Show Profile  Visit Kerry's Homepage
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

Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 07 December 2000 :  23:58:02  Show Profile  Visit Kerry's Homepage
<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

Go to Top of Page

Kerry
Average Member

USA
553 Posts

Posted - 10 January 2001 :  15:40:42  Show Profile  Visit Kerry's Homepage
WOW !!! Something's changed the way this thing handles posts - the first post was fine when originally posted

-Kerry

Go to Top of Page

gor
Retired Admin

Netherlands
5511 Posts

Posted - 10 January 2001 :  16:39:32  Show Profile  Visit gor's Homepage
Fixed the topic, was a known problem, see this topic for more info: http://forum.snitz.com/forum/link.asp?TOPIC_ID=2968

Pierre
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 10 January 2001 :  16:41:14  Show Profile
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
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.13 seconds. Powered By: Snitz Forums 2000 Version 3.4.07