Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Data transferred, forum showing nothing..
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Data transferred, forum showing nothing..

 Post Reply Post Reply
Author
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Post Options Post Options   Thanks (0) Thanks(0)   Quote PrivateEye Quote  Post ReplyReply Direct Link To This Post Topic: Data transferred, forum showing nothing..
    Posted: 25 June 2003 at 3:43pm

I am using WWF v.7.01 (SQL Server). I have created a Forum named "News and Views", then I transferred all my data from Web Wiz News application (Access 2000 version) to the tables tblTopic, tblThread, also updated the No_of_posts filed in the tblAuthor table of the Forum application. Everything with all the tables is ok in the Enterprise Manager. But the forum default.asp page is showing 0 topics and 0 posts. Anyone can help me why forum's default.asp page is not showing the newly added topics and threads. I have deleted the cookies set by the forum but same problem. Please help.

I have written the following script in my ASP page for transferring data from News application to WWF.

include file="common.asp" in start

Dim rsSQLNews
Dim rsAccess
Dim rsThreads
Dim lngTopicID

lngTopicID = 0

Set rsAccess = Server.CreateObject("ADODB.Recordset")
Set rsSQLNews = Server.CreateObject("ADODB.Recordset")
Set rsThreads = Server.CreateObject("ADODB.Recordset")

rsAccess.ActiveConnection = "Provider=Microsoft.JET.OLEDB.4.0; Data Source=C:\db\news.mdb"
rsAccess.Open "SELECT * FROM tblNews"

rsSQLNews.ActiveConnection = adoCon
rsSQLNews.CursorType = 3
rsSQLNews.LockType = 3
rsSQLNews.Open "SELECT * FROM tblTopic"

rsThreads.ActiveConnection  = adoCon
rsThreads.CursorLocation = 3
rsThreads.LockType = 3
rsThreads.Open "SELECT * FROM tblThread"

Do While Not rsAccess.EOF
 With rsSQLNews
  .AddNew
  .Fields("Forum_ID") = 35
  .Fields("Subject") = rsAccess.Fields("News_title")
  .Fields("Start_date") = rsAccess.Fields("News_Date")
  .Fields("Priority") = 0
  .Update
  .Requery
  .MoveLast 
  
  lngTopicID = rsSQLNews("Topic_ID")
  
 End With
 
 With rsThreads
  .AddNew
  .Fields("Topic_ID") = lngTopicID
  .Fields("Author_ID") = 1432
  .Fields("Message") = rsAccess.Fields("Short_news") & rsAccess.Fields("News_item")
  .Fields("Message_date") = rsAccess.Fields("News_Date")
  .Fields("IP_addr") = "127.0.0.1"
  .Update
  .Requery
 End With
 
 adoCon.Execute "UPDATE tblAuthor SET No_of_posts = No_of_posts + 1 WHERE tblAuthor.Author_ID=1432"
 
rsAccess.MoveNext
Loop

Set rsCommon = Nothing
Set rsSQLNews = Nothing
Set rsThreads = Nothing
Set adoCon = Nothing

Any help will be highly appreciated.



Edited by PrivateEye
The Judgement Day
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 25 June 2003 at 4:49pm
Did you re-synchronize the post count in the admin menu?
Back to Top
 Post Reply Post Reply

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.