r7 - 17 Dec 2003 - 17:27:55 - PeterThoenyYou are here: TWiki >  Codev Web > RenderIrcAsURL
Tags:
, create new tag

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

Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r7 < r6 < r5 < r4 < r3 | More topic actions
Codev.RenderIrcAsURL moved from Codev.IrcUrlNotRecognized on 01 Dec 2003 - 07:09 by PeterThoeny - put it back
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback SourceForge.net Logo