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)
 Reply URL
 New Topic  Topic Locked
 Printer Friendly
Next Page
Author Previous Topic Topic Next Topic
Page: of 3

kwhipp
Junior Member

USA
407 Posts

Posted - 17 November 2003 :  19:20:40  Show Profile  Visit kwhipp's Homepage  Send kwhipp an AOL message  Send kwhipp an ICQ Message  Send kwhipp a Yahoo! Message
Title: Reply URL

Version: 3.4d

Tested on Snitz Forums version: 3.4.03

Database Tested on: MS Access 2000

Author: Kevin Whipp

Ease of Installation (1=easy, 10=hard): 1

Download: http://whipp.us/download.asp?t=file&f=reply_url_34.zip

Support: http://whipp.us/forum.asp?FORUM_ID=19

Demo: http://whipp.us/topic.asp?TOPIC_ID=42#51

Description:

Adds a link to each reply that identifies the direct URL of the reply. You nolonger have to say, "See the third reply of this topic." Just say, "Click here.

Screenshot(s):


Non-IE browser display this alert box

Development History:
November 17, 2003 - Initial release
November 18, 2003 - Added JavaScript for one-click copying
November 18, 2003 - No longer IE dependent
November 19, 2003 - One-click copy using IE, other browsers open a javascript alert box
November 26, 2003 - Better browser identification and pop up acknowledgment in IE (thanks dayve)

- Kevin

Edited by - kwhipp on 26 November 2003 10:48:59

Ryan
Average Member

USA
858 Posts

Posted - 17 November 2003 :  23:21:09  Show Profile  Visit Ryan's Homepage
I was thinking of doing this but in a different way. Great idea though! Now I won't need to do it.

The Poultry Link - "Serving the best of the fancy with the best of the web"
Forum Setup Help
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 17 November 2003 :  23:39:04  Show Profile  Visit dayve's Homepage
You were thinking of doing this Ryan? I didn't know you knew how develop mods around Snitz code.

Go to Top of Page

Ez4arab
Junior Member

479 Posts

Posted - 18 November 2003 :  06:41:37  Show Profile  Visit Ez4arab's Homepage
Demo does not work

Ez4arab web site Ez4arab |
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 18 November 2003 :  06:46:50  Show Profile
quote:
Originally posted by Ez4arab

Demo does not work
sure it does, just place your mouse pointer over the and then right click and choose "Copy Shortcut".

Functionality of the MOD has changed so the above is no longer applicable.
Go to Top of Page

DavidRhodes
Senior Member

United Kingdom
1222 Posts

Posted - 18 November 2003 :  06:57:17  Show Profile
Would it not be better to copy the URL to the clipboard as the image title suggests?

The UK MkIVs Forum
Go to Top of Page

kwhipp
Junior Member

USA
407 Posts

Posted - 18 November 2003 :  08:04:58  Show Profile  Visit kwhipp's Homepage  Send kwhipp an AOL message  Send kwhipp an ICQ Message  Send kwhipp a Yahoo! Message
quote:
Originally posted by DavidRhodes

Would it not be better to copy the URL to the clipboard as the image title suggests?

Yes it would. I'm not a programmer and I have not figured out how to do just that. Any suggestions are welcome.


- Kevin
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 18 November 2003 :  10:41:15  Show Profile  Visit dayve's Homepage
I think I have 2 ideas for this. Let me dig up my resources.

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 18 November 2003 :  13:31:38  Show Profile
quote:
Originally posted by DavidRhodes

Would it not be better to copy the URL to the clipboard as the image title suggests?

It can be done, but it's Internet Explorer specific, it wouldn't work in other browsers.

http://www.htmlgoodies.com/beyond/clipboard.html
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 18 November 2003 :  14:55:27  Show Profile  Visit dayve's Homepage
quote:
Originally posted by RichardKinser

quote:
Originally posted by DavidRhodes

Would it not be better to copy the URL to the clipboard as the image title suggests?

It can be done, but it's Internet Explorer specific, it wouldn't work in other browsers.

http://www.htmlgoodies.com/beyond/clipboard.html



DOH! I was going to try and impress everyone around here with what I was doing. Guess I was trying to reinvent the wheel. And yes, it is IE specific, but still worth implementing I think.

Here is the idea I was running with:


<html>
<head>
	<title>Untitled</title>
</head>

<script type="text/javascript" language="JavaScript1.2">
<!--
function getIt(id){
alert(id);
}
// -->
</script>
</head>
<body>
<a href="http://www.somesite.com?blah=1&blah=2" id="site1" onclick="getIt(this.href); return false;">Cool Site</a><br>
<a href="http://www.somesite.com?blah=3&blah=4" id="site2" onclick="getIt(this.href); return false;">Cool Site2</a>
</body>
</html>


instead of alerting the value, I would use the IE specific code for placing the value in the clipboard.

Go to Top of Page

kwhipp
Junior Member

USA
407 Posts

Posted - 18 November 2003 :  17:28:14  Show Profile  Visit kwhipp's Homepage  Send kwhipp an AOL message  Send kwhipp an ICQ Message  Send kwhipp a Yahoo! Message
quote:
Originally posted by RichardKinser

http://www.htmlgoodies.com/beyond/clipboard.html

Okay, I've tried. I just cannot figure out how, using javascript, to copy the text that is currently in the link. I can do it if I output the link into a textbox. But you do not what that all over the topic page.

- Kevin
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 18 November 2003 :  18:13:13  Show Profile
found an easier way to do it from this page (I am only using the IE specific code):

http://www.krikkit.net/howto_javascript_copy_clipboard.html

<html>
<head>
	<title>Untitled Document</title>
<SCRIPT LANGUAGE="JavaScript">
function ClipBoard(cpyurl)
{
window.clipboardData.setData("Text", cpyurl);
}
</SCRIPT>
</head>

<body bgcolor="#FFFFFF">
<a href="Javascript:ClipBoard('http://forum.snitz.com/forum/topic.asp?TOPIC_ID=49278#266757');"><img src="http://forum.snitz.com/forum/icon_url.gif" /></a>
</body>
</html>
Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 18 November 2003 :  18:25:23  Show Profile
Hmm, I use a different javascript function to copy the data to the clipboard.
function copySel(field){
	field.focus();
	field.select();
	
	// The following code copies the selected text to the clip board
	// This only works in IE and will be ignored by other browsers
	txtRange = field.createTextRange()
	txtRange.execCommand("Copy")
}
This is used in conjunction with a text box. Of course it's IE only too. But I didn't know there were other ways of copying info to the clipboard.

Support Snitz Forums
Go to Top of Page

kwhipp
Junior Member

USA
407 Posts

Posted - 18 November 2003 :  19:24:39  Show Profile  Visit kwhipp's Homepage  Send kwhipp an AOL message  Send kwhipp an ICQ Message  Send kwhipp a Yahoo! Message
quote:
Originally posted by RichardKinser

found an easier way to do it from this page (I am only using the IE specific code):

http://www.krikkit.net/howto_javascript_copy_clipboard.html

<html>
<head>
	<title>Untitled Document</title>
<SCRIPT LANGUAGE="JavaScript">
function ClipBoard(cpyurl)
{
window.clipboardData.setData("Text", cpyurl);
}
</SCRIPT>
</head>

<body bgcolor="#FFFFFF">
<a href="Javascript:ClipBoard('http://forum.snitz.com/forum/topic.asp?TOPIC_ID=49278#266757');"><img src="http://forum.snitz.com/forum/icon_url.gif" /></a>
</body>
</html>


Thanks Richard. Nothing like having it spelled out for you. It works perfectly.
quote:
Originally posted by DavidRhodes

Would it not be better to copy the URL to the clipboard as the image title suggests?

It does now. Well, for IE anyway.

- Kevin
Go to Top of Page

kwhipp
Junior Member

USA
407 Posts

Posted - 18 November 2003 :  19:53:22  Show Profile  Visit kwhipp's Homepage  Send kwhipp an AOL message  Send kwhipp an ICQ Message  Send kwhipp a Yahoo! Message
I was just thinking. Since this only works for IE, should not even display in other browsers?

- Kevin
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 18 November 2003 :  20:10:04  Show Profile  Visit dayve's Homepage
quote:
Originally posted by kwhipp

I was just thinking. Since this only works for IE, should not even display in other browsers?



I would alert a message when the icon is clicked for Netscape users letting them know to right click and select copy shortcut.


Edited by - dayve on 18 November 2003 20:10:58
Go to Top of Page
Page: of 3 Previous Topic Topic Next Topic  
Next Page
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.25 seconds. Powered By: Snitz Forums 2000 Version 3.4.07