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  <1234>
Author
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: 06 May 2003 at 9:45am

nvm forget abt Forum Login script

can u help me with the latest_forum_post.inc for ver 7, i had the old one but after i changed to the new version it gives error. borg told me that the path has changed so i tried configuring it, now it does show the post on the index page but when click on them it just takes u to the default.asp, it does not takes u to the page of the post.
I saw it working in your site, hope u can get me the script.

thanks a million!

regards
Jasbir
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: 07 May 2003 at 1:51am
hello vdub u around?
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: 07 May 2003 at 7:11am
just change the path in your script.
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: 07 May 2003 at 9:01am
 thats wht i dont know wht to change where
regards
Jasbir
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: 09 May 2003 at 3:31pm

Ples tell me what to change where???


'Dimension variables
Dim adoDBConnection      'Holds the Database Connection Object
Dim strDBConnection      'Holds the Database driver and the path and name of the database
Dim rsForum      'Holds the recordset for the records in the database
Dim strSQL       'Holds the SQL query for the database
Dim strForumDatabasePath 'Holds the path to the forum database
Dim strForumPath  'Holds the path to the forum

 


'---------- Enter the correct paths to the forum and forum database below ---------------------

'Place the path to the forum in the string below
strForumPath = "/forum/"

'Place the path to the Forum database in the sting below
strForumDatabasePath = "/forum/admin/database/wwForum.mdb"

'This one is for Brinkser users only
'All you need to do is place your username in the part USERNAME and uncomment the line
'strForumDatabasePath = "/amitabh4u/db/forum.mdb"

'----------------------------------------------------------------------------------------------

 

 

'Create an ADO connection odject
Set adoDBConnection = Server.CreateObject("ADODB.Connection")

'Database driver and path to the forum database
strDBConnection = "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath(strForumDatabasePath)

'Set an active connection to the Connection object
adoDBConnection.Open strDBConnection
 
%>   
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#000000">
  <tr>           
    <td bgcolor="#800000"><font size="2" face="Arial"><b>Today's Hot Topics</b></font></td>
     </tr>
      <tr>          
       <td bgcolor="#000000">
      <%
'Intialise the ADO recordset object
Set rsLatestsPosts = Server.CreateObject("ADODB.Recordset")
 
'Initalise the strSQL variable with an SQL statement to query the database
strSQL = "SELECT Top 8 tblTopic.Forum_ID, tblTopic.Topic_ID, tblTopic.Subject, tblForum.Password "
strSQL = strSQL & "FROM tblTopic INNER JOIN tblForum ON tblForum.Forum_ID = tblTopic.Forum_ID "
strSQL = strSQL & "WHERE (((tblForum.Password) Is Null)) "
strSQL = strSQL & "ORDER BY tblTopic.Last_entry_date DESC;"

 
'Query the database
rsLatestsPosts.Open strSQL, strDBConnection

'If EOF then display an error message
If rsLatestsPosts.EOF Then Response.Write "There have been no Forum Posts"
 
'If there are pages to display then display them
Do while NOT rsLatestsPosts.EOF
 
 %>
      <a href="<% = strForumPath %>forum_posts.asp?TopicID=<% = rsLatestsPosts("Topic_ID") %>" target="_self"><% = rsLatestsPosts("Subject") %></a>
      <br>
      <%
  'Move to the next record in the recordset
  rsLatestsPosts.MoveNext
'Loop back round to display the next record
Loop
%>
    </td>
  </tr>
 </table>

please

regards
Jasbir
Back to Top
hockenpj View Drop Down
Groupie
Groupie
Avatar

Joined: 10 February 2003
Location: Belgium
Status: Offline
Points: 149
Post Options Post Options   Thanks (0) Thanks(0)   Quote hockenpj Quote  Post ReplyReply Direct Link To This Post Posted: 09 May 2003 at 3:49pm

I just looked at your Forum and it is possible to download the database!

This is because you have not changed this section:

'Place the path to the Forum database in the sting below
strForumDatabasePath = "/forum/admin/database/wwForum.mdb"

In order to make database secure you sould at least rename the database and the folder, for example:

'Place the path to the Forum database in the sting below
strForumDatabasePath = "/forum/admin/folder/database01.mdb"

If you have a folder with write permissions then this is the best place to store store any Microsoft Access databases or data files because your web server and thus your scripts have full access to this folder, however the folder is not directly accessible by your web site visitors.

The connection to you database if it is in a folder with write permissions usually called "private" may look something like this:

'Place the path to the Forum database in the sting below
strForumDatabasePath = "../../private/wwForum.mdb"

Hope this helps.

Back to Top
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 Posted: 10 May 2003 at 8:24am

what if im using mssql


Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 10 May 2003 at 8:32am
Due to lack of features with mySQL and problems with the myODBC Driver the forum doesn't support mySQL.
Back to Top
 Post Reply Post Reply Page  <1234>

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.