Print Page | Close Window

Who can help me please ?

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=4808
Printed Date: 02 April 2026 at 2:39pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Who can help me please ?
Posted By: ccom
Subject: Who can help me please ?
Date Posted: 06 August 2003 at 2:17pm

Hello,

Is it possible to have a page outside the forum that does the same as the login page in the forum ?
I want people to be able to login on a default.asp page just outside the folder "forum"

It should just need the login and pasword form fields on that page and once you enter then you go to the forum.

One solution would be for me that when you are not logged in on the forum you get the login page. (or when you loggout)

I hope someone has a solution for me. Thanks in advance.




Replies:
Posted By: WAKO
Date Posted: 06 August 2003 at 11:05pm

Yes it is very easy just add your login form to a simple html page and direct the form to the check_user.asp page within the same diretory!

Im assuming you know how to build the form!



Posted By: ccom
Date Posted: 07 August 2003 at 9:01am

I have no idea on how to fix it,

Would you please be so kind to explain me how to do it?

It would  be great !!

 

Thanks

 

I've tried and tried but it doesn't work



Posted By: WAKO
Date Posted: 07 August 2003 at 9:21am
What HTML Editor are you using?

-------------
WAKO


Posted By: ccom
Date Posted: 07 August 2003 at 11:48am
It is dreamweaver.


Posted By: 3BEPb
Date Posted: 07 August 2003 at 10:51pm

Whatever... :)

The easiestway to do this will be as follows: copy everything between tags <form> and </form> in original login page and paste it into the external page at your site. That part of code looks as follows in my case (table tags deleted, cyrillic stuff changed to english):

---------------------------------------------------

<form method="post" name="frmLogin" action="login_user.asp?FID=0" onSubmit="return CheckForm();" onReset="return confirm('Form reset');">

User Name: <input type="text" name="name" size="15" maxlength="15" value="" />

password: <input type="password" name="password" size="15" maxlength="15" />


<input type="checkbox" name="AutoLogin" value="True" checked />Auto Login

<input type="checkbox" name="ActiveUsers" value="True" checked />Active users

<input type="hidden" name="sessionID" value="538760709" />
<input type="submit" name="Submit" value="Login" />

</form>

--------------------------------

Don't forget to mention the full URL (just in case :) to actual forum login page, and replace SessionID with the actual one for each user.

Good luck



Posted By: WAKO
Date Posted: 08 August 2003 at 2:33am

wow i asked that lol good going on "Dreamweaver" wasnt awake heres how you can do this on your asp page modified the one above to work correctly

put this where you want 4 your login you can modify the tables if you like

 

<%
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();">
          <table width="100%" border="0" cellspacing="0" cellpadding="2">
           <tr>
            <td align="right" width="31%"><span class="text">Username: </span>&nbsp;</td>
            <td width="69%">
             <input type="text" name="name" size="15" maxlength="15" />
            </td>
           </tr>
           <tr>
            <td align="right" width="31%"><span class="text">Password: </span>&nbsp; </td>
            <td width="69%">
             <input type="password" name="password" size="15" maxlength="15" />
            </td>
           </tr>
           <tr>
            <td align="right" width="31%">&nbsp;</td>
            <td width="69%" class="text"><span class="text"><input type="hidden" name="AutoLogin" value="True" checked /></span></td>
           </tr>
           <tr>
            <td align="right" width="31%">&nbsp;</td>
            <td width="69%" class="text"><span class="text"><input type="hidden" name="ActiveUsers" value="true"></span></td>
           </tr>
           <tr>
            <td align="right" width="31%">&nbsp;</td>
            <td width="69%">
             <input type="submit" name="Submit" value="Login" />
             <input type="hidden" name="sessionID" value="<% = Session.SessionID %>" />
            </td>
           </tr>
          </table>
          </form>

In order for this to work you need to add a line of code below in your login_user.asp at line at 165

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

will look like this once entered

    Response.Redirect("default.asp")
   Response.Redirect(request.querystring("return"))
   End If



-------------
WAKO


Posted By: ccom
Date Posted: 08 August 2003 at 4:16am

I will try that right away.

 

Thanks in advance



Posted By: ccom
Date Posted: 08 August 2003 at 4:36am

I have a problem wako,

I did put your code on a asp page outside the forum:

I received an error message page not found.

I changed in the folder carestel the login_user.asp as you said.

I'm sorry to disturb you.

3BEPb:

I don't know what you mean with: ...and replace SessionID with the actual one for each user.

I didn't replace it. I entered the forum with the message: unsufficient permission.

Can you tell me exactly what I should replace please ?

Thanks !!



Posted By: WAKO
Date Posted: 08 August 2003 at 4:50am

Use the Code I posted Only! in green above

try to adjust exactly where your login_user.asp is like so

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



-------------
WAKO


Posted By: ccom
Date Posted: 08 August 2003 at 5:01am

WAKO:

Thanks a lot, it works fine now !!

The only thing I would like to ask is when the user logs out he returns to the loginpage outside the forum.

Many thanks !!

 



Posted By: WAKO
Date Posted: 08 August 2003 at 5:09am
I believe when you are in the Admin section go to the  Forum Configuration you can put the link to your homepage there not positive tho!

-------------
WAKO


Posted By: WAKO
Date Posted: 08 August 2003 at 5:13am

Or just do this open up log_off_user.asp and change this in red to where you want them to go

Response.Buffer = True

'Clear the forum cookie on the users system so the user is no longer logged in
Response.Cookies("Forum")("UID") = strLoggedInUsername & "LOGGED-OFF"
Response.Cookies("PrForum") = ""
Session("ViRead") = ""
Response.Cookies("LPM") = ""

'Reset Server Objects
Set rsCommon = Nothing
adoCon.Close
Set adoCon = Nothing

'Return to the forum
Response.Redirect "default.asp"

to this

http://www.corneillie.be/tetter.asp - http://www.corneillie.be/tetter.asp



-------------
WAKO



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