Print Page | Close Window

Integrating the login page

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=1820
Printed Date: 30 March 2026 at 6:49pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Integrating the login page
Posted By: jabbasabba
Subject: Integrating the login page
Date Posted: 14 April 2003 at 4:36pm

I there anyone who knows how you can add/integrate the login page (login_user.asp) so you can login from the default page?




Replies:
Posted By: MadDog
Date Posted: 14 April 2003 at 7:49pm
just include the login form stuff from the login page.

-------------
http://www.iportalx.net" rel="nofollow">


Posted By: jabbasabba
Date Posted: 14 April 2003 at 8:18pm
Nop, that returns an compilation error '800a0411'


Posted By: MadDog
Date Posted: 14 April 2003 at 9:37pm

your trying to make a form that someone can enter and username and password then click login and it logs them into the forum right?



-------------
http://www.iportalx.net" rel="nofollow">


Posted By: jabbasabba
Date Posted: 15 April 2003 at 7:01am
Yes, thatīs correct!


Posted By: Scotty32
Date Posted: 15 April 2003 at 8:25am

then just put a text field, password feild and submit button on ya page - and have the form goto the login page

name the fields like "user" and "password"



Posted By: jabbasabba
Date Posted: 15 April 2003 at 8:53am

Ok!
Was it that simply?! I look in the login_user.asp and thought that you must have all that information to make it work. Thatīs why I return all error.

Thank you



-------------
"Itīs different between knowing the way than walking it"


Posted By: jabbasabba
Date Posted: 16 April 2003 at 1:40am

Iīve done a quick login for the default Forum page but it doesnīt work.

Actions: <form action="login_user.asp"> and <form action="login_user.asp?FID=<% = intForumID %>"> and the standard line from the login_user.asp

The loginpage says that I donīt have enough member status when I try to login. Whats wrong?



-------------
"Itīs different between knowing the way than walking it"


Posted By: Scotty32
Date Posted: 16 April 2003 at 3:54am

i got that on Beta 4

when i fix it, ill let ya know

*edit*

oh i didnt notice this

<input type="hidden" name="sessionID" value="<% = Session.SessionID %>" />

this might mean ya'll have to include the "common" file onto your page

or figure out how to find the SessionID

you could, if you wanted also include the "log me in automatically" aswell

like i said, ill let ya know when i fix mine



Posted By: Scotty32
Date Posted: 16 April 2003 at 11:02am

ight

like i said i would

you have to include the bit in read.

its to stop ya gettin hacked i guess - so the login page knows its login ya in from your site - and not sum hackers

anyway - i put that into my site and it worked stright off

for the username field put name="name" and for the password put name="password" and it should work

so you go to the page you came from i put this in my login page on my site:

<%
Dim Return

return = Request.ServerVariables("SCRIPT_NAME") & "?" & Request.ServerVariables("QUERY_STRING")
%>

<form action="/forum/login_user.asp?return=<%=Return%>" method="post" name="forum">

then on the login page of the forum i put:

Response.Redirect(request.querystring("return"))

on line 165 so it takes you back to ya page  enjoy

(hay does this class as a "Mod" and do i get a lil "Mod" Group thing )

 



Posted By: jabbasabba
Date Posted: 16 April 2003 at 11:35am

Did I get this right now?

This is my default.asp:

<%
Dim Return

return = Request.ServerVariables("SCRIPT_NAME") & "?" & Request.ServerVariables("QUERY_STRING")
%>

    <form action="login_user.asp?return=<%=Return%>" name="frmLogin" method="post" onSubmit="return CheckForm();">
    <td valign="bottom">
 <input type="text" name="name" class="input" maxlength="15">
    </td>
    <td valign="bottom">
 <input type="password" name="password" class="input" maxlength="15">
    </td>
    <td valign="bottom">
 <input type="submit" value="Logga in" class="knapp">
    </td>
    </form>

This is the login_user.asp on line 165:

Response.Redirect(request.querystring("return"))

This isnīt working for me. I get the same error answer



Posted By: Scotty32
Date Posted: 16 April 2003 at 12:02pm

ya put in the hidden field right?

<input type="hidden" name="sessionID" value="<% = Session.SessionID %>" />

if ya didnt then it wouldnt of worked since the Login page checks your Session, just put that in and it will work

(by the way, ya using version 7 beta 4 right?  since this was made for beta 4)



Posted By: jabbasabba
Date Posted: 16 April 2003 at 2:35pm

Thank You, Thank You!

Now it works. As you sad Iīve forgotten the hidden input field.



Posted By: Scotty32
Date Posted: 16 April 2003 at 2:47pm

if ya wanna have a "Member Area" ony for the forum members - let me know and ill let give ya sum code i did

 come on borg, ya know ya wanna make me a Mod Builder!



Posted By: jabbasabba
Date Posted: 16 April 2003 at 3:02pm

A "Member Area" sounds interesting! Right now I have "hidden" Forum Categories for members in a group. Thatīs a sort of a "Member Area".

But tell me more...



Posted By: Scotty32
Date Posted: 16 April 2003 at 3:05pm

i mean like not to do wit the forum

umm like.... umm well wots ya site about?

like you could have member links (only show if they signed in)

like you could have a gallery for members only, and umm i dunno just stuff you dont want guests to see - you could even have it so only moderators and other "groups" can see the pages

all you do is put in a lil thin like

if memberlevel = "0" then
   response.redirect("noaccess.asp")
end if

and it will stop people seein the page if they aint loged in, but it depends wot ya sites about if ya need to use this or not



Posted By: jabbasabba
Date Posted: 16 April 2003 at 3:33pm

Ok!
It could be a good mod. Iīm saving that code. Iīm using the Forum as a Forum-Community-Intranet.

Again, Thank you!



Posted By: Scotty32
Date Posted: 16 April 2003 at 3:37pm

yeah emm the lil "memberlevel" thing wont work, as it was just a quick example - you'd have to connect to a database, and find out wot it is, or find out wot it is in the common file

i didnt use it in the common file - becose i wanted to find out the username - but it says "Guest" if they aint loged in, which doesnt really work for me




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net