If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Remake of an existing forum

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-06-03, 12:41
Sovetryne Sovetryne is offline
Registered User
 
Join Date: Sep 2003
Location: Denmark
Posts: 9
Remake of an existing forum

Hi,

I am trying to remake an existing forum in ASP.
Please see my NOT WORKING result at http://testforum.franl.dk, and the forum I am trying to remake at http://www.prikpagina****/list.php?f=446

I cannot make the layout, as the original forum have.

Technical background:
My forum is based on a .mdb / JET database.
Administrative fields in the table are ID (AutoNumber), ReplyID (which is 0 if a new message is posted, and gets the ID of the original message, if it is a reply), BaseID (which gets the ID of the first message in a line) and Position (which is the number of reply's in ONE line).

Here is a part of the code, I used to make a list of ID's, in which order they should be shown. But somewhere I am making a big mistake, because it doesn't work.

Note: To avoid heavy network traffic, at load of the ASP-file, the complete Database will be read, and all values will be recorded in arrays as IDs, ReplyIDs, BaseIDs, Subjects, Names, IPs, and so on

Dim ArOrder(99999)
Dim CurrentRecord
Dim Counter
CurrentRecord = 1
Dim J
Counter = 1
Dim NewRecord

Sub FindRecord()
ArOrder(Counter) = ids(CurrentRecord)
CurrentRecord = CurrentRecord + 1
Counter = Counter + 1
For J = CurrentRecord To RecordCounter
If replyids(J) = CurrentRecord then
CurrentRecord = ids(J)
J = RecordCounter
End if
Next
End Sub

Sub FindRecord2()
ArOrder(Counter) = ids(CurrentRecord)
CurrentRecord = CurrentRecord + 1
Counter = Counter + 1
For J = CurrentRecord To RecordCounter
If replyids(J) = CurrentRecord then
CurrentRecord = ids(J)
J = RecordCounter
End if
Next
response.write Counter & ". Albert zegt: " & CurrentRecord & "<br>"
End Sub


For I = 1 To RecordCounter
If ReplyIDs(I) = 0 then FindRecord
If ReplyIDs(I) <> 0 then FindRecord2
Next


Please, WHO can help me setting up a forum like http://prikpagina****/list.php?f=446

Thanks in advance!
Reply With Quote
  #2 (permalink)  
Old 09-07-03, 01:25
unatratnag unatratnag is offline
Registered User
 
Join Date: Jul 2003
Location: Ohio/Chicago
Posts: 75
first link is broken and the last one requires windows basic authentication to view
Reply With Quote
  #3 (permalink)  
Old 09-07-03, 06:47
Sovetryne Sovetryne is offline
Registered User
 
Join Date: Sep 2003
Location: Denmark
Posts: 9
Quote:
Originally posted by unatratnag
first link is broken and the last one requires windows basic authentication to view

The first link appears with a comma at the end, so that is the reason to appear som broken link. The correct link is: http://testforum.franl.dk

The other link appears to work here....
Reply With Quote
  #4 (permalink)  
Old 09-07-03, 12:46
unatratnag unatratnag is offline
Registered User
 
Join Date: Jul 2003
Location: Ohio/Chicago
Posts: 75
if you go to tools->internet options->security and then see preferences, you can see that you have it set up to automatic login. My box nor anyone else's will have permission to that site without a log in and password. The first link is beta.prik with is not requiring windows authentication and has anonymous browsing turned on. If you would like us to view the third link you'll need to give us a login/password or turn on anonymous browsing. I also assume you didn't just download the real site and put it on another box for us to view because that will cause permission problems with IIS.
Reply With Quote
  #5 (permalink)  
Old 09-08-03, 02:41
Sovetryne Sovetryne is offline
Registered User
 
Join Date: Sep 2003
Location: Denmark
Posts: 9
Quote:
Originally posted by unatratnag
if you go to tools->internet options->security and then see preferences, you can see that you have it set up to automatic login. My box nor anyone else's will have permission to that site without a log in and password. The first link is beta.prik with is not requiring windows authentication and has anonymous browsing turned on. If you would like us to view the third link you'll need to give us a login/password or turn on anonymous browsing. I also assume you didn't just download the real site and put it on another box for us to view because that will cause permission problems with IIS.
OK, try this link: http://beta.prikpagina****/list.php?num=446

That forum on prikpagina**** isn't mine, and everybody can see it. I cannot change anything on it, because it is located on a server, owned by Startpagina BV in The Netherlands. I am from Denmark, so I have nothing to do with that forum, but I only want to remake it in ASP. If I had the code in PHP, I could simply translate it to ASP, couldn't I?

I am sure it is not my fault you cannot see that forum, I can, my dad can, my friends can, EVERYBODY can.

Sovetryne
Reply With Quote
  #6 (permalink)  
Old 09-08-03, 02:43
Sovetryne Sovetryne is offline
Registered User
 
Join Date: Sep 2003
Location: Denmark
Posts: 9
Quote:
Originally posted by Sovetryne
OK, try this link: http://beta.prikpagina****/list.php?num=446

That forum on prikpagina**** isn't mine, and everybody can see it. I cannot change anything on it, because it is located on a server, owned by Startpagina BV in The Netherlands. I am from Denmark, so I have nothing to do with that forum, but I only want to remake it in ASP. If I had the code in PHP, I could simply translate it to ASP, couldn't I?

I am sure it is not my fault you cannot see that forum, I can, my dad can, my friends can, EVERYBODY can.

Sovetryne
Oh eh.. the idea to remake this forum, is because this is the ONLY forum on the Internet I found, which does NOT require a log on, and THAT is what I want on own forum.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On