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

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Permalinks in topic.asp
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 20 June 2008 :  10:54:45  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Yesterday evening I've added a simple feature to the forumtopics on oxle.com ; 'permalinks'.
Just click on the # shown in the reply-header, and your browser address bar will show the link.
example:

It'll make the page hop to that post (html bookmark) and in the address bar you'll see the address that links directly to that post.
You can use this to refer to a specific post in a topic. For consistency the link is also shown for the startingpost of a topic, but besides the # nothing is added to the address.

I am going to try and improve it a bit, to arrange that it actually is a real permalink (a link that never changes, even when the topic is split and the pagenumber the reply is on changes), but that'll take some time. I vaguely remember that someone else here has tried to make a function for that, but I cannot remember who that was.

For those who want to build this small feature into their own Snitz forum, here's the how to.
Topic.asp (version 3.4.06).
Find this code: (in a standard topic.asp you'll find it on line 585)
	' DEM --> End of Code added for moderation.
Response.Write " " & profileLink(getCurrentIcon(strIconProfile,"Show Profile","align=""absmiddle"" hspace=""6"""),Reply_MemberID) & vbNewLine
Insert the following line of code right inbetween those two lines:
	Response.Write	"<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """>nbsp;<b><a href=""#" & Reply_ReplyID & """ title=""permalink to this post"">#</a></b> </font>"

The end result is this:
	' DEM --> End of Code added for moderation.
Response.Write "<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """> <b><a href=""#" & Reply_ReplyID & """ title=""permalink to this post"">#</a></b> </font>"
Response.Write " " & profileLink(getCurrentIcon(strIconProfile,"Show Profile","align=""absmiddle"" hspace=""6"""),Reply_MemberID) & vbNewLine

Then, find this line: (around 790 in a standard topic.asp).
	Response.Write	"                       " & profileLink(getCurrentIcon(strIconProfile,"Show Profile","align=""absmiddle"" hspace=""6"""),TMember_ID) & vbNewLine

Directly above it, add this:
	Response.Write	"<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """> <b><a href=""#"" title=""permalink to this post"">#</a></b> </font>"

The endresult will look like this:
	Response.Write	"<font color=""" & strForumFontColor & """ face=""" & strDefaultFontFace & """ size=""" & strFooterFontSize & """> <b><a href=""#"" title=""permalink to this post"">#</a></b> </font>"
Response.Write " " & profileLink(getCurrentIcon(strIconProfile,"Show Profile","align=""absmiddle"" hspace=""6"""),TMember_ID) & vbNewLine
<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 20 June 2008 10:57:40

AnonJr
Moderator

United States
5768 Posts

Posted - 20 June 2008 :  11:06:20  Show Profile  Visit AnonJr's Homepage  Reply with Quote
Sweet. I think Shaggy was working on something similar.<
Go to Top of Page

Shaggy
Support Moderator

Ireland
6780 Posts

Posted - 24 June 2008 :  05:24:58  Show Profile  Reply with Quote
I was?

Sure you're not thinking of my "jump to last post permalink" included in v3.4.06?

<

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

MarcelG
Retired Support Moderator

Netherlands
2625 Posts

Posted - 24 June 2008 :  06:31:07  Show Profile  Visit MarcelG's Homepage  Reply with Quote
Yup, that was it.
The real permalink function is working now, however it's based on a custom 404.
My permalinks at oxle now look like this:
http://oxle.com/topic/5337 (for a topic)
http://oxle.com/reply/38648 (reply from a multipage topic).<

portfolio - linkshrinker - oxle - twitter

Edited by - MarcelG on 24 June 2008 06:31:24
Go to Top of Page

AnonJr
Moderator

United States
5768 Posts

Posted - 24 June 2008 :  06:36:51  Show Profile  Visit AnonJr's Homepage  Reply with Quote
quote:
Originally posted by Shaggy

I was?

Sure you're not thinking of my "jump to last post permalink" included in v3.4.06?

That could easily have been it. My memory is getting bad for a man of my young years. <
Go to Top of Page

bobby131313
Senior Member

USA
1163 Posts

Posted - 24 June 2008 :  09:17:03  Show Profile  Visit bobby131313's Homepage  Reply with Quote
quote:
My memory is getting bad for a man of my young years.

You do have it backed up on CD somewhere right?<

Switch the order of your title tags
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 24 June 2008 :  09:32:43  Show Profile  Reply with Quote
I backed mine up on a floppy (had plenty of room), then forgot where I put it.<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.16 seconds. Powered By: Snitz Forums 2000 Version 3.4.07