View Single Post
Old 08-19-2004, 09:18 AM   PM User | #58
AnniHilatE
New Coder

 
Join Date: Aug 2004
Posts: 24
Thanks: 0
Thanked 3 Times in 3 Posts
AnniHilatE is an unknown quantity at this point
Cool

yeh i had the same problem when i was editing the code of the .js file. and me not being a JS person took a while to figure it out. i did eventually find out how to do it.
eg. say you have the login.htm in folder "welcome" and you want to redirect to a folder under "welcome" named "me". open your .js and it should say

auth = true;
redirect = "******.htm";

all you need to do is in the redirect part type

auth = true;
redirect = "me/******.htm";

------Heres an example site structure---------------

____________WELCOME_________
---------------||||||-------------//////:dont mind the "......"
||..........................................||
.js file...................................."me"
login.htm.................................||
.........................................******.htm

when you enter the username and password, login.htm will goto the .js file and look at the { redirect = "me/******.htm"; } when you added the "me/" into the redirect, it will then goto the folder named "me" in the same 'level' and will then look for the page you want to goto.

NOTE: i think the login and .js file has to be in a higher level than the page you want to redirect to.

hopefully i made sence for you.
cheers

AnniHilatE

PS. see the script in action. http://gamingexperts.cjb.net
goto members login and use { User=member, Pass=12345 }
AnniHilatE is offline   Reply With Quote