T O P I C R E V I E W |
leatherlips |
Posted - 01 August 2008 : 13:08:42 I made a new little mod that I use on my forum. It is called Link To Reply.
This mod allows the users of your forum to click an icon that displays the link to any topic or reply which they can then copy and paste.
This gives your users the ability to link to the exact reply they were referring to rather than linking to the topic and then trying to explain which reply they were talking about.
If interested you can download it from SnitzBitz.< |
14 L A T E S T R E P L I E S (Newest First) |
leatherlips |
Posted - 03 August 2008 : 21:31:57 quote: Originally posted by Etymon
...I did not know that anything had happened until I pasted the link into notepad...
I have added a confirmation that the link was successfully copied.
In both pop_link_reply.asp and pop_link_topic.asp look for:
onclick=""copy(document.replylink.results.value);""> Add the part in red:
onclick=""copy(document.replylink.results.value);this.value='Successfully Copied!';""> What this does is change the text that appears on the button to say Successfully Copied! after the button is clicked.< |
leatherlips |
Posted - 03 August 2008 : 08:39:48 Thanks Carefree.
I'm a little confused though.
quote: my changes put the icon on the replies as well as topics
In my mod the icon was already added to the replies.
quote: Classic's changes added the javascript routine into the reply page so that it isn't necessary to add it to func_common in order for it to work
I did not add anything to inc_func_common.asp.< |
Carefree |
Posted - 03 August 2008 : 00:33:00 quote: Originally posted by leatherlips
What did your changes do?
Not sure who this question was addressed to, Leather. Me? Classic?
If me, my changes put the icon on the replies as well as topics, changed the query string to force it to include replies info, then parsed the query string (which doesn't seem to grab anything after the topic information) to get the pertinent data from which to build the link.
Classic's changes added the javascript routine into the reply page so that it isn't necessary to add it to func_common in order for it to work. He also changed the onclick routine to capture all the form information.< |
leatherlips |
Posted - 02 August 2008 : 08:21:27 quote: Originally posted by Etymon
I don't want to sound like a dufus here, but in your travels did you find whether or not it was possible to make the code do the visual cue of highlighting the link in the textbox. I ask because the MOD worked on your site (using FireFox) as it should, just I did not know that anything had happened until I pasted the link into notepad. Is it supposed to show the link as highlighted after you click the "Click To Select & Copy This Topic Link" button.
This was the only cross browser copy to clipboard script that I could find. It does not visually show the text as being selected. However it still DOES select and copy it.
There are other scripts I found that do visually select and copy but they are IE specific. I chose not to use them because I wanted it to be cross browser. The one I am using works in IE, FF, Safari and Opera. I haven't tested any other browsers.< |
leatherlips |
Posted - 02 August 2008 : 07:53:21 What did your changes do?< |
Carefree |
Posted - 02 August 2008 : 07:23:22 I don't mind at all, if you find a better way of making things work, feel free.
However, there's a better way of listing code here using just the code/code or just the scrollbox/scrollbox methods (which list the contents in a single line of type when you copy/paste).
Instead enclose the code within the scrollboxes. Like this: [ scrollbox ][ code ] blah blah blah [/ code ] [/ scrollbox ]. Then the code can be copied/pasted properly.< |
Classicmotorcycling |
Posted - 02 August 2008 : 07:13:01 Carefree,
I had to change your code a little for the pop_link_reply.asp, I hope that you don't mind.
Seems to work with a slight change.< |
Etymon |
Posted - 02 August 2008 : 04:31:23 Hi LL!
I don't want to sound like a dufus here, but in your travels did you find whether or not it was possible to make the code do the visual cue of highlighting the link in the textbox. I ask because the MOD worked on your site (using FireFox) as it should, just I did not know that anything had happened until I pasted the link into notepad. Is it supposed to show the link as highlighted after you click the "Click To Select & Copy This Topic Link" button.
Thanks for the MOD. I think it will be very useful! < |
Carefree |
Posted - 01 August 2008 : 23:23:55 topic.asp requires the code to be changed in two places (for topics and for replies). Here's what I did to make everything work.
Replace pop_link_reply.asp with this:
In topic.asp, look for the following lines (appx 585-586):
Between them, add the following:
< |
leatherlips |
Posted - 01 August 2008 : 19:20:04 It was very difficult to find a cross browser select and copy script. This was the only one I could find. It does it through the .swf file. All other scripts I found were only workable for IE. I wanted it to be easy for people to copy. This way lets them do it with one click. They don't have to first highlight it and then right click to select copy.
I thought this was the best and easiest way to do it. < |
MaD2ko0l |
Posted - 01 August 2008 : 15:36:30 swf file is needed to allow the website to send the contents of the text box to your clipboard.< |
Massimo |
Posted - 01 August 2008 : 15:16:12 The mods use .swf file? i use firefox and addon block flash if not autorizated< |
leatherlips |
Posted - 01 August 2008 : 14:28:48 No. His does not give you a pop up with the URL in it. Also, mine uses just the normal reply and topic links, not permalinks.
I could never get his to work on my forum.< |
HuwR |
Posted - 01 August 2008 : 14:20:35 isn't that the same as marcels permalink MOD ?< |
|
|