Link to Paticular Post

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/67453?pagenum=1
05 November 2025, 14:11

Topic


ChasLaser
Link to Paticular Post
12 July 2008, 11:07




I'd like to turn this icon...

into a link that can be used to link back to this paticular post.

A link simalar to this format....
topic.asp?whichpage=-1&TOPIC_ID=643&REPLY_ID=3766



I believe the code to modify is ... topic.asp ...around line 580.
Response.Write " " & getCurrentIcon(strIconPosticon,"","hspace=""3""") & ....

Perhaps someone more experienced could correct my mistakes below...Thanks!


Response.Write " " & <a href=""" & topic.asp?whichpage=-1 & TOPIC_ID=" & TopicID & " REPLY_ID= " & Reply_TopicID & "">" & getCurrentIcon(strIconPosticon,"","hspace=""3""") & "</a>" & ........



<

 

Replies ...


SiSL
12 July 2008, 13:09


There are two places you need to change...
First post and replies... You may be possibly changing first post where there is no Reply Id<
weeweeslap
12 July 2008, 13:15


I believe you can use this mod:
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=67337

Edit it a bit so that the icon you point to is the hyperlinked one instead of having a new icon altogether.<
RichardKinser
12 July 2008, 13:23


There is actually 2 places where you will need to edit.
First one:

replace:
Code:
Response.Write  "                      " & getCurrentIcon(strIconPosticon,"","hspace=""3""") & ...
with:
Code:
Response.Write  "                      " & "<a href=""topic.asp?" & ArchiveLink & "whichpage=-1&TOPIC_ID=" & Topic_ID & "&REPLY_ID=" & Reply_ReplyID & """>" & getCurrentIcon(strIconPosticon,"","hspace=""3""") & "</a>" & ...

Second one (in the GetFirst() Sub):

replace:
Code:
Response.Write  "                      " & getCurrentIcon(strIconPosticon,"","hspace=""3""") & ...
with
Code:
Response.Write  "                      " & "<a href=""topic.asp?" & ArchiveLink & "TOPIC_ID=" & Topic_ID & """>" & getCurrentIcon(strIconPosticon,"","hspace=""3""") & "</a>" & ...

<
ChasLaser
12 July 2008, 14:28


Originally posted by RichardKinser
There is actually 2 places where you will need to edit. ....

PERFICT!tongue Thanks!!
Here's a Video of how we're using it. Thanks Again!<
leatherlips
16 July 2008, 14:59


I'm trying to get this to work with a pop up. I want that when the icon is clicked a pop up page will appear with the link in it.
I kind of have it working here:

http://www.mangionemagic.com/forumbeta/topic.asp?TOPIC_ID=900

click the to see how it is currently working.
Right now it only shows the topic and not the reply link. Here is what I have in my pop_replylink.asp file:
Code:
<!--#INCLUDE FILE="config.asp" -->
<!--#INCLUDE FILE="inc_header_short.asp"-->
<%
ThePage = Request.ServerVariables("HTTP_REFERER")
Response.Write ThePage

WriteFooterShort
%>
<
texanman
16 July 2008, 15:11


Syntax error
topic.asp?TOPIC_ID=900 ??!<
leatherlips
16 July 2008, 15:20


Originally posted by texanman
Syntax error
topic.asp?TOPIC_ID=900 ??!
What are you referring to?<
leatherlips
16 July 2008, 16:03


I noticed the Send To Friend Link inputs the topic url into the pop up. I've tried looking at that code to get it to work with the reply id but I'm not having any luck.<
leatherlips
17 July 2008, 22:23


I have ended up doing this for the time being, (although I just discovered that it doesn't seem to work in Opera).
You can see what it does here:

http://www.mangionemagic.com/forumbeta/topic.asp?TOPIC_ID=915

Just hover over the icon to see it "in action".
I'd still rather have the link appear in a pop up window if anyone could tell me how to do that. smile<
leatherlips
19 July 2008, 13:24


I am using a different tooltip now. I almost have it working but need help with a little thing.
In the javascript I am using I need to rewrite the URL from this:
Code:
a href=""topic.asp?" & ArchiveLink & "whichpage=-1&TOPIC_ID=" & Topic_ID & "&REPLY_ID=" & Reply_ReplyID & """
To This:

Code:
a href=\'\'topic.asp?\' & ArchiveLink & \'whichpage=-1&TOPIC_ID=\' & Topic_ID & \'&REPLY_ID=\' & Reply_ReplyID & \'\'\'
The problem is the URL breaks at the hash mark that appears in the url. How would you escape the # to get it to show the reply id in the url? In the code above the # doesn't appear.<
leatherlips
21 July 2008, 13:26


I'm still trying to work this out. bigsmile
What if I were trying to change the "Send Topic to A Friend" pop up to "Send Reply To A Friend"? Is there a way to get the pop up to reveal the entire URL including the reply id?<
leatherlips
23 July 2008, 11:50


I'm just bumping this to hopefully get a reply. smile
Is it at all possible to get the url of the reply to display
on a page?<
HuwR
23 July 2008, 13:26


How would you escape the # to get it to show the reply id in the url?

use &amp;# (you escape the & not the #)<
leatherlips
23 July 2008, 15:05


Thanks HuwR. That didn't do anything for me though.
I actually want to get away from the tooltip I am currently using. What I really want to do is have the URL be displayed in a pop up window. But no matter what I try, the url stops after the topic id. The reply id never shows.
My ideal scenario would be that a user clicks on the link to reply icon and a pop up page appears saying:

To link directly to this reply, copy and paste the link below

ww w.domain.com/forum/topic.asp?TOPIC_ID=1#1

If I could get the link above to show then I could work out the rest. smile <
MaD2ko0l
23 July 2008, 21:16


u need to look at sending things to the clipboard rather than telling the user to copy n paste.
example. click on the pic below


then click on "Link to this Photo" thsi will give u 2 textbox that when u click on will copy the contents to the clipboard ready for you to paste into whatever.
does that make any sence?<
leatherlips
23 July 2008, 21:41


When I click on your picture there is no option to "Link To This Photo". Perhaps I need to be a member to see that link?
Anyway, I think I know what you are talking about. I'll look into that.<
leatherlips
23 July 2008, 22:46


I think I finally got close to what I have been trying to do!
You can test it here:

http://www.mangionemagic.com/forumbeta/topic.asp?TOPIC_ID=915

I'm testing two versions of this so you'll see double icons:
Click on the second icon in any reply to see what it is doing.<
Carefree
24 July 2008, 03:38


Originally posted by leatherlips
I think I finally got close to what I have been trying to do!
You can test it here:

http://www.mangionemagic.com/forumbeta/topic.asp?TOPIC_ID=915

I'm testing two versions of this so you'll see double icons:
Click on the second icon in any reply to see what it is doing.
Your instructions for the new option are missing an apostrophe - should say "...browser's address bar." Alternatively, you should have it AUTOMATICALLY populate the clipboard and not require the pop-up window as Mad suggested. Unfortunately, a number of browsers (and a number of operating systems/service packs) will prevent that by default (just as they do popups).<
leatherlips
24 July 2008, 07:54


I've read that it is not good to automatically have contents copied to a users clipboard as it may erase whatever they may already have in it.
Is it just not possible to have the reply url show in a regular html or asp page? This is what I really want.<
MaD2ko0l
24 July 2008, 12:11


im just thinking about making it easy for everyone to use as not all types of people know the shortcuts or whatnot so may be confused...i know my parents arnt computer savy and dont know how to copy n paste, so putting stuff to the clipboard automatically makes sence and make its a bit more simpler for everyone.
and why cantu just use the send topic to a friend and add the reply id? but then again why dont u just link to a topic instead?
seems like you are makeing a solution to somthing that dont need 1<
leatherlips
24 July 2008, 13:05


Originally posted by MaD2ko0l
and why cantu just use the send topic to a friend and add the reply id? but then again why dont u just link to a topic instead?
Sometimes in the forum you want to link to a particular reply and not the whole topic. Other forums do this so I was trying to get my Snitz forum to do it too. I've tried adding the reply id but it never shows. That is what I have been having problems with.<
Carefree
24 July 2008, 16:07


The Permalink mod does what you want already:

See these:
Permalink 1 Permalink 2 SnitzBitz<
leatherlips
24 July 2008, 16:22


Originally posted by Carefree
The Permalink mod does what you want already:

See these:
Permalink 1 Permalink 2 SnitzBitz
Actually, those don't work for me. I posted my problems in one of those threads. Also, they do not provide the URL for the user in an obvious way. They assume the user knows to copy what is in the address bar.
I would like to have a page pop up and show them the URL they need to use.<
MaD2ko0l
24 July 2008, 18:37


could u not code it into topic.asp like the php boards do, where when you refeence a certain reply it will only show that reply? because sometimes when u click a link in ie anyway...it will open in a new window and it isnt maximized, sowhen i mazimize the window it will then lose the position of the reply so i have top scroll and look for it anyway, so maybe if u coudl filter out only that reply maybe that would be better?<
leatherlips
25 July 2008, 11:15


I'm so close... tongue I just need a little nudge...blush
Please go to my test site and click this icon on a reply :

http://www.mangionemagic.com/forumbeta/topic.asp?TOPIC_ID=915

The reply link does not finish. It only shows this much:

http://www.mangionemagic.com/forumbeta/topic.asp?whichpage=-1

Either my link on the icon is wrong, or the popup page is not correct.
Here is how I have the link for the icon:

Code:
Response.Write "           <a href=""JavaScript:openWindow10('pop_replylink.asp?url=" & strForumURL & "topic.asp?" & ArchiveLink & "whichpage=-1&TOPIC_ID=" & Topic_ID & "&REPLY_ID=" & Reply_ReplyID & "')"">" & getCurrentIcon(strIconLinkTo,"Link directly to this reply","align=""absmiddle"" hspace=""3""") & "</a>" & vbNewLine
This is a text version of my pop_replylink.asp page.
The topic link works just fine.<
MaD2ko0l
25 July 2008, 13:47


here u go..MaD2ko0l to the rescue ;-)

ok this will be the link to use on topic.asp

Code:
Response.Write "           <a href=""JavaScript:openWindow10('pop_replylink.asp?TOPIC_ID=" & Topic_ID & "&REPLY_ID=" & Reply_ReplyID & "')"">Send Reply</a>" & vbNewLine

and thsi is the new pop_replylink.asp

try that and see what u think..might need a little tweaking on the copy/paste url bit but it does what u more or less want<
leatherlips
25 July 2008, 14:38


Thanks! It almost worked! I had to change the section you put in the pop_reply.asp file.
You had:

" & strForumURL & "topic.asp?TOPIC_ID=" & Topic_ID1 & "&REPLY_ID=" & Reply_ReplyID1 & "

The resulting link when copied and pasted did not take you to the reply.
However, I added this part in red and now it works fine:

" & strForumURL & "topic.asp?" & ArchiveLink & "whichpage=-1&TOPIC_ID=" & Topic_ID1 & "&REPLY_ID=" & Reply_ReplyID1 & "

Now I just need to tweak the look of my pop up page and I think I'll be done! smile<
MaD2ko0l
25 July 2008, 16:59


;_0 i knew i forgot to add somthign in there ;-)

anyway glad u got it sorted now<
leatherlips
25 July 2008, 17:59


If anyone wants to check out how it is working you can go here:

http://www.mangionemagic.com/forumbeta/topic.asp?TOPIC_ID=915

Click on this icon:
I added a button that will automatically copy the link to your clipboard. smile
Now if I could just get this to work with the permalink mod...<
ChasLaser
01 August 2008, 22:03


Originally posted by leatherlips
If anyone wants to check out how it is working you can go here:

http://www.mangionemagic.com/forumbeta/topic.asp?TOPIC_ID=915

Click on this icon:
I added a button that will automatically copy the link to your clipboard. smile
Now if I could just get this to work with the permalink mod...

This is what I get when clicking the permalink icon...
Const strIconEditorTags = "icon_editor_tag.gif|23|22"
Still working on it I presume and haven't given up? smile
<
leatherlips
01 August 2008, 22:10


Originally posted by ChasLaser
Still working on it I presume and haven't given up? smile
I've actually just today posted the mod that uses what I've finally worked out. You can see it here:

http://www.snitzbitz.com/mods/details.asp?Version=All&mid=282<
ChasLaser
01 August 2008, 22:39


Originally posted by ChasLaser
Still working on it I presume and haven't given up? smile
I've actually just today posted the mod that uses what I've finally worked out. You can see it here:

http://www.snitzbitz.com/mods/details.asp?Version=All&mid=282

Nice Job, Works great!!<
© 2000-2021 Snitz™ Communications