Link to Paticular Post - Postet den (4479 Views)
Starting Member
ChasLaser
Innlegg: 9
9


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>" & ........



<
   
 Sidestørrelse 
Postet den
Average Member
SiSL
Innlegg: 671
671
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<
Postet den
Senior Member
weeweeslap
Innlegg: 1077
1077
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.<
Postet den
Snitz Forums Admin
RichardKinser
Innlegg: 16655
16655
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>" & ...

<
Postet den
Starting Member
ChasLaser
Innlegg: 9
9
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!<
Postet den
Senior Member
leatherlips
Innlegg: 1838
1838
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
%>
<
Postet den
Junior Member
texanman
Innlegg: 410
410
Syntax error
topic.asp?TOPIC_ID=900 ??!<
Postet den
Senior Member
leatherlips
Innlegg: 1838
1838
Originally posted by texanman
Syntax error
topic.asp?TOPIC_ID=900 ??!
What are you referring to?<
Postet den
Senior Member
leatherlips
Innlegg: 1838
1838
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.<
Postet den
Senior Member
leatherlips
Innlegg: 1838
1838
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<
Postet den
Senior Member
leatherlips
Innlegg: 1838
1838
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.<
Du må legge inn en melding