Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Site intergration
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Site intergration

 Post Reply Post Reply Page  123 4>
Author
Dash View Drop Down
Newbie
Newbie


Joined: 04 May 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dash Quote  Post ReplyReply Direct Link To This Post Topic: Site intergration
    Posted: 04 May 2003 at 7:13am

I am trying to intergrate the forum with my exsiting site. I am struggling with the external login.

Has any one created this allready? Or does anyone know of a mod that can do this.

Thanks

Dash

 

Back to Top
Badaboem View Drop Down
Senior Member
Senior Member


Joined: 12 April 2002
Location: Netherlands
Status: Offline
Points: 600
Post Options Post Options   Thanks (0) Thanks(0)   Quote Badaboem Quote  Post ReplyReply Direct Link To This Post Posted: 04 May 2003 at 7:21am

Many have done it before you..search the forum..it's sooo easy once you find the ''search'' button..It's GREAT!!! Try it

Back to Top
vdub View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 February 2003
Location: United States
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote vdub Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2003 at 1:14am

<%
'Create  DSN Less connection to Access Database
'Create DBConnection Object
Set DBConnection = Server.CreateObject("adodb.connection")
DSN = "DRIVER={Microsoft Access Driver (*.mdb)}; "
DSN = DSN & "DBQ=" & Server.Mappath("/Pathtoyourdatabase.mdb")
DBConnection.Open DSN

UserID = Request.Cookies("Forum")("UID")
last = Request.Cookies("FLVST")("LTVST")

   SQL = "Select * From tblAuthor Where User_code = '"& UserID &"'"
      Set RS = DBConnection.Execute(SQL)
     

Select Case RS.eof
      Case False
        tempRSCount = RS.getrows
        Set RS = Nothing
        logon = Cdbl(UBound(tempRSCount, 2)) + 1
               
     Case True
      logon = "0"
 End Select
     Set RS = Nothing
     
IF logon = "0" Then
%>
<form method="POST" action="/forum/login_user.asp<% = strReturnPageProperties %>">
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <tr>
      <td width="50%">&nbsp;</td>
      <td width="50%">&nbsp;</td>
    </tr>
    <tr>
      <td width="50%">
      <p align="right"><font face="Verdana" size="1">Username</font>: </td>
      <td width="50%"><input type="text" name="name" size="11"></td>
    </tr>
    <tr>
      <td width="50%">
      <p align="right"><font face="Verdana" size="1">Password</font>: </td>
      <td width="50%"><input type="password" name="password" size="11"></td>
    </tr>
    <tr>
      <td width="100%" colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td width="100%" colspan="2">
      <input type="hidden" name="sessionID" value="<% = Session.SessionID %>" />
      <p align="center"><input type="submit" name="Submit" value="<% = strTxtLoginUser %>"></td>
    </tr>
  </table>
  <p align="center">
  &nbsp;<font size="1" face="Verdana">Don't have an account?</font>
  <BR>
  <font face="Verdana" size="2"><a href="/forum/register_form.asp">Register here </a>
  </font>
  </p>
  <input type="hidden" name="AutoLogin" value="True">
  <input type="hidden" name="ActiveUsers" value="True">
</form>
<%
Else

'If user allready loged in don't show login screen
'You can show somthing else insted like maybe last time visited or somthing


End IF
%>

 

This is how I do it. It works well.



Edited by vdub
Back to Top
Trevni View Drop Down
Groupie
Groupie


Joined: 24 February 2003
Location: United States
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote Trevni Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2003 at 1:35am
Originally posted by vdub vdub wrote:

'Create DSN Less connection to Access Database


Is it DSN-Less?
Resident immature brat...
Back to Top
vdub View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 February 2003
Location: United States
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote vdub Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2003 at 3:02am

It’s just a quote it doesn’t mater how you type it.

 

If it has a ( ' ) In front of it. It is only telling you notes or directions

Back to Top
jasbir View Drop Down
Groupie
Groupie
Avatar

Joined: 22 March 2002
Location: Singapore
Status: Offline
Points: 120
Post Options Post Options   Thanks (0) Thanks(0)   Quote jasbir Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2003 at 3:04am

i just tried ur code n got the following error:

Sorry, only members with sufficient permission can access this page.

A security error has occurred with authentication.
Please ensure that all cookies are enabled on your web browser, and you are not using a saved or cached copy of the page.

regards
Jasbir
Back to Top
vdub View Drop Down
Senior Member
Senior Member
Avatar

Joined: 23 February 2003
Location: United States
Status: Offline
Points: 275
Post Options Post Options   Thanks (0) Thanks(0)   Quote vdub Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2003 at 3:07am

Did you enter in the path to your database.

 

 

Back to Top
jasbir View Drop Down
Groupie
Groupie
Avatar

Joined: 22 March 2002
Location: Singapore
Status: Offline
Points: 120
Post Options Post Options   Thanks (0) Thanks(0)   Quote jasbir Quote  Post ReplyReply Direct Link To This Post Posted: 05 May 2003 at 3:12am

this is what i added

<form method="POST" action="/forum/login_user.asp">
  <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <tr>
      <td width="50%">&nbsp;</td>
      <td width="50%">&nbsp;</td>
    </tr>
    <tr>
      <td width="50%">
      <p align="right"><font face="Verdana" size="1">Username</font>: </td>
      <td width="50%"><input type="text" name="name" size="11"></td>
    </tr>
    <tr>
      <td width="50%">
      <p align="right"><font face="Verdana" size="1">Password</font>: </td>
      <td width="50%"><input type="password" name="password" size="11"></td>
    </tr>
    <tr>
      <td width="100%" colspan="2">&nbsp;</td>
    </tr>
    <tr>
      <td width="100%" colspan="2">
      <input type="hidden" name="sessionID" value="761051698" />
      <p align="center"><input type="submit" name="Submit" value="Forum Login"></td>
    </tr>
  </table>
  <p align="center">
  &nbsp;<font size="1" face="Verdana">Don't have an account?</font>
  <BR>
  <font face="Verdana" size="2"><a href="/forum/register_form.asp">Register here </a>
  </font>
  </p>
  <input type="hidden" name="AutoLogin" value="True">
  <input type="hidden" name="ActiveUsers" value="True">
</form>

regards
Jasbir
Back to Top
 Post Reply Post Reply Page  123 4>

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.