Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/Code)
 Permalinks in topic.asp

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!
Before posting, make sure you have read this topic!

Screensize:
UserName:
Password:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert EmailInsert Image Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
MarcelG Posted - 20 June 2008 : 10:54:45
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
<
6   L A T E S T    R E P L I E S    (Newest First)
Carefree Posted - 24 June 2008 : 09:32:43
I backed mine up on a floppy (had plenty of room), then forgot where I put it.<
bobby131313 Posted - 24 June 2008 : 09:17:03
quote:
My memory is getting bad for a man of my young years.

You do have it backed up on CD somewhere right?<
AnonJr Posted - 24 June 2008 : 06:36:51
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. <
MarcelG Posted - 24 June 2008 : 06:31:07
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).<
Shaggy Posted - 24 June 2008 : 05:24:58
I was?

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

<
AnonJr Posted - 20 June 2008 : 11:06:20
Sweet. I think Shaggy was working on something similar.<

Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000 Version 3.4.07