Add thread title to post tag

Posted by David Haley on Sat 13 Feb 2010 12:37 AM — 5 posts, 35,283 views.

USA #0
This is pretty useful:
Template:post=10067
Please see the forum thread: http://gammon.com.au/forum/?id=10067.

but, I'm not very good at remembering which thread is which by the numbers :) I often know what is being referred to if I see the thread title. So, would it be possible to have this output the title of the thread next to the link?

E.g.,

Please see the forum thread: http://gammon.com.au/forum/?id=10067 (MUSHclient: Lua: Nested Tables)


This saves me from having to go see the thread if I knew what it is from the title.
Australia Forum Administrator #1
It's a nice idea, but the problem is the code for translating forum codes is basically find/replace, it doesn't know about the semantics of what 10067 means. That would mean, for each time it found [post=10067] it would have to lookup 10067 on the database to work out which thread it was.

Or in your example, 3 lookups, once for the subject (Nested Tables), once for the topic (Lua) and once for the section (MUSHclient).
Amended on Sat 13 Feb 2010 12:56 AM by Nick Gammon
USA #2
On sort of the same subject, is it possible for you to setup robots.txt (or something) to stop Google/etc from indexing reply pages? For example, Google indexed this:
Quote:
Gammon Software Solutions forum
Yes, regular expressions are meant to be for syntax, not semantics. Think about what it means to capture a number between 0 and 300, using only syntax. ...
ftp.gammon.com.au/forum/bbshowpost.php?action=quote... - Cached -

The link being: http://ftp.gammon.com.au/forum/bbshowpost.php?action=quote&bbpost_id=57747&page=1

Which brings up a page with a reply box.
Australia Forum Administrator #3
OK I have attempted to fix that. May take a while to filter through.
USA #4
Quote:
That would mean, for each time it found
Template:post=10067
Please see the forum thread: http://gammon.com.au/forum/?id=10067.
it would have to lookup 10067 on the database to work out which thread it was.

Or in your example, 3 lookups, once for the subject (Nested Tables), once for the topic (Lua) and once for the section (MUSHclient).

Well, I don't really care about the forum/section as much as the thread title. But yeah, I guess I see that it's complicating the translation process because it makes it more than just regular expressions.