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 DEV-Group
 DEV Bug Reports (Closed)
 V33(.02) BUG+FIX Registration Problem...
 Forum Locked  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

zodc
Starting Member

Japan
16 Posts

Posted - 01 August 2001 :  22:09:34  Show Profile
When a new user is on policy.asp, and then clicks Accept the page stores the "refer" in a hidden field. BUT, when the new user is on register.asp, and by chance clicks the link at the top of the page...

[] All Forums
|
--[] Registration Rules and Policies Agreement <---<< here
|
-- Registration Form for strForumTitle
...it takes the user back to policy.asp. Then, -again- clicking Accept stores the "refer" - only this time register.asp gets stored.
Sure the easiest and quickest way to correct this is to remove the link at the top of the page.
But instead, I added an "IF... ELSE" statement in register.asp and it seems to have corrected the problem.

around line 372 in register.asp is where the check occurs:
======================================================
<% If strAutoLogon = 1 then
Response.Redirect "default.asp"
Else %>
<meta http-equiv="Refresh" content="2; URL=<%= Request.Form("refer")%>">
<% End if %>
<p align="center"><font face="<%= strDefaultFontFace %>" size="<%= strDefaultFontSize %>">
<a href="<%= Request.Form("refer")%>">Back To Forum</font></a></p>
======================================================

My solution: Check and make sure the new user doesn't have policy.asp OR register.asp stored as the "Refer".

======================================================
<% If strAutoLogon = 1 then
Response.Redirect "default.asp"
Else
If InStr(Request.Form("Refer"), "register.asp") <> 0 OR InStr(Request.Form("Refer"), "policy.asp") <> 0 then %>
<meta http-equiv="Refresh" content="2; URL=default.asp">
<p align="center"><font face="<%= strDefaultFontFace %>" size="<%= strDefaultFontSize %>">
<a href="default.asp">Back To Forums Homepage</font></a></p>
<% Else %>
<meta http-equiv="Refresh" content="2; URL=<%= Request.Form("Refer")%>">
<p align="center"><font face="<%= strDefaultFontFace %>" size="<%= strDefaultFontSize %>">
<a href="<%= Request.Form("Refer")%>">Back To Forum</font></a></p>
<% End If
End if
======================================================

So far, it seems to have corrected my problem and so far it works.
My question - Is this a proper way to handle the issue? Or will I see more problems by doing this, somewhere down the line... (?)

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 09 November 2001 :  03:27:43  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
Should this be put in the code? or was it already?

----------
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 10 November 2001 :  17:40:22  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
*bump*

----
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, Huw's code, and Davio's code
Need a Mod? Check out the Mod Resource
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 29 December 2001 :  01:03:41  Show Profile
I just removed the link back to policy.asp from register.asp, Text is still displayed in though.

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