problems signing up - Posted (1959 Views)
Starting Member
InternetMill
Posts: 4
4
Hi,
I have a forum and my cousin would like to register for it but when he clicks on Agree on the policy.asp page, it just keeps reloading that page. It doesn't go to the registration page. Do any of you know what might be going on? Any help would be appreciated. Thanks
Matt<
Matt Millican
InternetMill.com
http://www.internetmill.com
(Win XP / UD 4 / PSP 7 / Access 2000 / ASP / VBscript)
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Forum Moderator
Nikkol
Posts: 6907
6907
tell him to turn off his firewall during the registration process<
Posted
Starting Member
InternetMill
Posts: 4
4
Thank you Nikkol,
Now it works for me so we'll see if it will work for him. He says he's not behind a firewall though. Matt<
Matt Millican
InternetMill.com
http://www.internetmill.com
(Win XP / UD 4 / PSP 7 / Access 2000 / ASP / VBscript)
Posted
Advanced Member
Roland
Posts: 9335
9335
Try this topic: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=39795&SearchTerms=register,agree
Or this topic: http://forum.snitz.com/forum/topic.asp?TOPIC_ID=45236&SearchTerms=register,agree

Searching often helps....<
Posted
Member Locked
whats.asp
Posts: 20
20
I have read through the stuff posted for 2 hrs now and i am more confused now than when i started. Would someone please tell me what the verdict is on what should be done to correct the problem?<
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
The links posted by FrutZle describe, very clearly, the cause for the problem is. What are your doubts?<
Posted
Member Locked
whats.asp
Posts: 20
20
I think i have found it. where in inc_func_common.asp does it go?
[1]I can not find the reference to the folder "forum". My forum folder is not called "forum". The forum might not have been installed into "/forum/" so you should try not to reference it explicitly in the code. [2]How do I unexplicit it?

[3]What is calculated from mean, what am i suposed to do here? The path can be calculated from the Request.ServerVariables("SCRIPT_NAME") variable.

[4]Where in inc_func_common.asp does it go?
inc_func_common.asp

Added the following function and procedure

function GetReferer()
Dim strReferer
strReferer = lcase(Request.ServerVariables("HTTP_REFERER"))
if strReferer = "" then
strReferer = "default.asp"
elseif (Left(strReferer, len(strForumURL)) <> lcase(strForumURL)) then
strReferer = "default.asp"
end if
GetReferer = strReferer
end function

sub CheckReferer(strMatchReferer, strRedirectTo)
dim strReferer
strReferer = lcase(Request.ServerVariables("HTTP_REFERER"))
if InStr(strReferer, lcase(strMatchReferer)) = 0 then
if Instr(lcase(Request.Form("REFERER_PATH")), lcase(strMatchReferer)) = 0 then
Response.Redirect(strRedirectTo)
Response.End
end if
end if
end sub



policy.asp

Modified Line 103 as shown below (in red) and added a new hidden field just below Line 103 highlighted in blue (strScriptname is defined and populated in inc_header.asp)

"<input name=""Refer"" type=""hidden"" value=""" & GetReferer() & """>" & vbNewLine & _
"<input name=""REFERER_PATH"" type=""hidden"" value=""" & strScriptName & """>" & vbNewLine & _


register.asp

Lines 73-75
Removed the following statements

if InStr(Request.ServerVariables("HTTP_REFERER"), "policy.asp") = 0 then
Response.Redirect("policy.asp")
end if


And replaced the above statements with the following statement



Rem - Argument1 = Path to Match, Argument2 = Redirect Path
Call CheckReferer("policy.asp", "default.asp")
<
Posted
Snitz Forums Admin
ruirib
Posts: 26364
26364
If you have comments on Gaurav's mod, the place to post them is the mod implementation forum, NOT THIS ONE!
Man, you do behave oddly, deleting posts, not posting where you should. Is it that hard to understand where to post and how to behave correctly?!<
Posted
Member Locked
whats.asp
Posts: 20
20
X<
Posted
Member Locked
whats.asp
Posts: 20
20
Like i knew this is a mod. Where does it say that this is a mod? If you look above you will see that i was asking for help because i was confused. You will also notice that i did not start this topic.
I can only hope that one day you have to go to someone else for help because you no nohting about it and they treat you this way.

Lets all hope it is not me that you have to come to. Even then i would not feel the need to treat you this way. If this is so hard for you to do, then why do you do it. Do you have to do it, is someone making you do it, maybe its a job and your all government workers. I think you have been doing it to long and you really don't like doing it but have nothing else to do in your miserable lives.
The way you all talk here is like you are the smartest people on earth and you never had to learn anything.

Just tell me how long have you been doing this that you think it is so easy to understand.
Deleting posts? Is that not what your supposed to when you posted wrongly? If not can you tell me what the delete function is for.
Geezz guys i just got done watching a movie Julius Ceaser. You all must belong to the Roman senate the way you act. You think you know it all.
All i am quilty of is not knowing but you are quilty of thinking you know everything.
I came to you wanting to know and learn, you have made it a crime.

Maybe you all act this way because the rest of your lives suck. Just what is it that you guys do in your normal lives that makes you feel the need to be high and mighty here. You definitely have low self esteem to be such bullys.

There, i have had my say and feel better, now do what you must.
And really guys at least take a break.<
Posted
Forum Moderator
Nikkol
Posts: 6907
6907
Originally posted by whats.asp
Like i knew this is a mod. Where does it say that this is a mod? If you look above you will see that i was asking for help because i was confused. You will also notice that i did not start this topic.
I can only hope that one day you have to go to someone else for help because you no nohting about it and they treat you this way.

Lets all hope it is not me that you have to come to. Even then i would not feel the need to treat you this way. If this is so hard for you to do, then why do you do it. Do you have to do it, is someone making you do it, maybe its a job and your all government workers. I think you have been doing it to long and you really don't like doing it but have nothing else to do in your miserable lives.
The way you all talk here is like you are the smartest people on earth and you never had to learn anything.

Just tell me how long have you been doing this that you think it is so easy to understand.
Deleting posts? Is that not what your supposed to when you posted wrongly? If not can you tell me what the delete function is for.
Geezz guys i just got done watching a movie Julius Ceaser. You all must belong to the Roman senate the way you act. You think you know it all.
All i am quilty of is not knowing but you are quilty of thinking you know everything.
I came to you wanting to know and learn, you have made it a crime.

Maybe you all act this way because the rest of your lives suck. Just what is it that you guys do in your normal lives that makes you feel the need to be high and mighty here. You definitely have low self esteem to be such bullys.

There, i have had my say and feel better, now do what you must.
And really guys at least take a break.
I'm locking this topic. There is no need for that kind of sarcasm here. I suggest that if you want help here from the unpaid volunteers for this free software that you be a little more considerate and take the advice given to you more than once about posting in the correct forum. There are clear forum descriptions on the main page.
By the way, a MOD is any changes you make to the base code.
<edit>
Reference:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=45697
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=45677
<