Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: General / Classic ASP versions(v3.4.XX)
 Linking directly to a post, w/o topic ID# or page#
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

jdmc
Starting Member

2 Posts

Posted - 31 December 2005 :  13:03:54  Show Profile
Suppose I'm writing something to be displayed somewhere on the Web, and I want to make reference to a particular post on a Web-forum that's running the Snitz software. And suppose further that I have the serial number (REPLY_ID) of that particular post, but I don't know the serial number (TOPIC_ID) of the topic thread it's in, nor which page of that topic it's on. Is there some way to structure a URL so that it will link directly to that individual post?

The only way I've found (so far) to do this requires all three of the REPLY_ID, TOPIC_ID, and "whichpage" -- for example:
    http://www.foobar.com/forum/topic.asp?TOPIC_ID=997&whichpage=2#10023
...where "10023" is the REPLY_ID, or serial number, of the desired post.

If I omit the "whichpage" parameter, Snitz assumes a value of 1; if the desired post isn't on the first page of the topic, then the link fails to show the desired post.

If I omit the "TOPIC_ID" parameter, Snitz returns only an error message.

One thing that would be helpful is a way to tell Snitz to display the entire contents of a topic on a single page, regardless of its length -- such as "whichpage=all". Then at least you would know that the desired post was going to be displayed on the page, and therefore that the "#10023" anchor (in the example) would work.

But it would be much better if Snitz could correctly interpret a URL with only the post serial number as a parameter, like this:
    http://www.foobar.com/forum/topic.asp?REPLY_ID=10023
...or...
    http://www.foobar.com/forum/topic.asp?POST_ID=10023
Upon receiving such a URL, Snitz could first figure out which topic the post was posted in, and then what page of that topic the post appears on (unless the URL also contained a "whichpage=all" parameter)... and then display the results as if those parameters had been explicitly specified in the URL.

If there's already a way to do this, of which I'm not aware, please enlighten me.

Edited by - jdmc on 31 December 2005 13:09:15

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 31 December 2005 :  13:06:01  Show Profile  Send ruirib a Yahoo! Message
There is no way to get to the reply without the topic_id. You can use pagenumber -1 if you don't know the page, though.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

jdmc
Starting Member

2 Posts

Posted - 31 December 2005 :  13:33:12  Show Profile
quote:
Originally posted by ruirib

There is no way to get to the reply without the topic_id.

It's very easy to do this with phpBB forums. For the example above, the URL to display whichever topic contains post #10023 looks like this:
    http://www.foobar.com/phpBB/viewtopic.php?p=10023
And adding an anchor specifier on the end of the URL, like this...
    http://www.foobar.com/phpBB/viewtopic.php?p=10023#10023
...displays the topic and scrolls the page down to where the individual post appears.

Why can't Snitz do that?

_ _ _ _ _
quote:
You can use pagenumber -1 if you don't know the page, though.

Well, I just tried that, and it didn't work. I got the following error message:
quote:
ADODB.Recordset error '800a0bb9'

Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

/forum/topic.asp, line 383


Any other ideas?

Edited by - jdmc on 31 December 2005 13:39:27
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 31 December 2005 :  13:56:35  Show Profile  Send ruirib a Yahoo! Message
What syntax did you use?
Have a look at the last post link, in default.asp or forum.asp, and you'll see the syntax to be used.


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

laser
Advanced Member

Australia
3859 Posts

Posted - 31 December 2005 :  15:24:16  Show Profile
quote:
Why can't Snitz do that?
Because it's never been a requirement, but you could always code something that works that way
quote:
It's very easy to do this with phpBB forums.
Doea phpBB do Active Topics just like Snitz ? All forum software is a little bit different.
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 02 January 2006 :  06:28:33  Show Profile
What you could do is create a new page (or modify the now-redundant link.asp) to determine the TOPIC_ID and page number of a reply posted through the querystring and redirect to topic.asp accordingly. Post back if you need help with something like that and I'll throw something together for you tomorrow.


Search is your friend
“I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Go to Top of Page

Ranko
Junior Member

400 Posts

Posted - 02 January 2006 :  08:15:56  Show Profile
Or you could add the reply id as an anchor to the top of each reply and use that
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.31 seconds. Powered By: Snitz Forums 2000 Version 3.4.07