You are here: TWiki> Codev Web>RenderIrcAsURL (2003-12-17, PeterThoeny)
Tags:
create new tag
, view all tags

Implemented: Render IRC and NNTP as a URL

irc://what.ever/#chan, [[irc://foo.bar/#baz][this is an IRC URL]] and nntp://any.server/name/of/newsgroup/article-number are now recognized as URLs.

Contributors:
-- HarlanStenn - 25 Nov 2003
-- PeterThoeny - 01 Dec 2003
-- TomKagan - 01 Dec 2003

Discussions and feedback

And this patch is from Steve Kostecke.


--- /tmp/TWiki.pm-      Tue Nov 25 16:06:04 2003
+++ TWiki.pm    Tue Nov 25 15:52:05 2003
@@ -178,7 +178,7 @@
 $noAutoLink = 0;
 $viewScript = "view";
 
-$linkProtocolPattern = "(http|ftp|gopher|news|file|https|telnet)";
+$linkProtocolPattern = "(http|ftp|gopher|news|file|https|telnet|irc)";
 
 # Header patterns based on '+++'. The '###' are reserved for numbered headers
 $headerPatternDa = '^---+(\++|\#+)\s*(.+)\s*$';       # '---++ Header', '---## Header'

-- HarlanStenn - 25 Nov 2003

Might as well cross reference the $linkProtocolPattern against the complete list to see what other schemes TWiki might want to parse out of the URI : http://www.w3.org/Addressing/schemes

-- TomKagan - 26 Nov 2003

I looked through the schemas and did not find any common ones worth adding. Let us know if you know of any.

I changed this from a BugReport to a Feature request.

Change is now in TWikiAlphaRelease and at TWiki.org.

-- PeterThoeny - 01 Dec 2003

>looked through the schemas and did not find any common ones worth adding. Let us know if you know of any.

How about "nntp" ??

-- TomKagan - 01 Dec 2003

OK, added nntp.

-- PeterThoeny - 01 Dec 2003

Topic revision: r7 - 2003-12-17 - 17:27:55 - PeterThoeny
Codev.RenderIrcAsURL moved from Codev.IrcUrlNotRecognized on 2003-12-01 - 07:09 by PeterThoeny - put it back
 
TWIKI.NET
This site is powered by the TWiki collaboration platform
Ideas, requests, problems regarding TWiki? Send feedback
Copyright © 1999-2009 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.