Plugins item #1026860, was opened at 2004-09-12 15:20
Message generated for change (Comment added) made by duerra
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=390395&aid=1026860&group_id=235

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: David Perry (perryda)
Assigned to: Nobody/Anonymous (nobody)
Summary: Linkify - perl plugin to linkify text

Initial Comment:
ABOUT

ChatZilla (a part of Mozilla) had a neat feature that I
missed in GAIM:
whenever someone typed something like "bug 1234", it
would wrap it in
a link to http://bugzilla/show_bug.cgi?id=1234 , so I
could just click on
it to see the relevant bug.  I liked the feature enough
that I decided
to write a plugin for GAIM to do it.  Of course,
there's no challenge in
just creating bugzilla links, so I spent too much time
making a general-
purpose user-definable link-wrapping script. (:

HOW TO USE IT

Create a text file in ~/.gaim called linkify.cfg . 
Within it, put
regexp-URL pairs like this:

    # Lines with '#' are comments
    bug\s+([0-9]+)   http://bugzilla/show_bug.cgi?id=$1

Backreferences to the regexp are substituted into the
URL as needed.
Only you (and your GAIM logs, if you use them) will see
the linkified text;
other people in the conversation won't get the extra
link garbage
on their screen.  (Which is just as well, since it's
probably text they
typed which is being linkified!)  This also means that
you get handy links
even in IRC chats, where HTML is meaningless.

Linkify won't linkify text that's already in an <a>
tag, or text that's
part of an HTML tag.  Linkified text is given the class
"gaim-linkify"
to distinguish it from other links.

CREDITS

Thanks to Nicholas Killewald for help allowing
user-definable backreferences.
Thanks to the GAIM team for making such a useful program!

----------------------------------------------------------------------

Comment By: Anthony (duerra)
Date: 2007-03-20 18:19

Message:
Logged In: YES 
user_id=924757
Originator: NO

I am running Gaim 2.0b6, and would like to note that messages that I send
to others are not linkified in my window, in either IRC chats or IM
messages.  In the perl script, the following lines can be found:

# Attached to receiving-chat-msg, so chat messages you receive
# (including those you type yourself) are linkified.
sub linkifyChat {

and

# Attached to displaying-im-msg, so IMs you type are linkified.
sub linkifyMyIM {

However, this is not working in the latest release (I am unsure about
previous releases).  It would be wonderful if this did indeed work for
messages that I send out.

----------------------------------------------------------------------

Comment By: Kousik Nandy (kousik)
Date: 2006-01-30 02:23

Message:
Logged In: YES 
user_id=147877

linkify 0.0.7
gaim 2.0.0beta2
fedora core 3

perl: Loading perl script
linkify: Reloading /home/username/.gaim/linkify.cfg
perl: Perl function Gaim::Script::linkify::plugin_load
exited abnormally: Undefined subroutine
&Gaim::Conversation::gaim_conversations_get_handle called at
(eval 3) line 201.



----------------------------------------------------------------------

Comment By: Omegatron (omegatron)
Date: 2006-01-07 22:03

Message:
Logged In: YES 
user_id=1069357

Using Windows XP
Gaim 2.0.0beta1 (debug)
Activeperl 5.8.7
Linkify 0.007

Example linkify.cfg

It gives the error:

Use of uninitialized value in concatenation (.) or string at
C:\Program Files\Ga im\plugins\linkify.pl line 60. 
Use of uninitialized value in concatenation (.) or string at
(eval 2) line 60. 



----------------------------------------------------------------------

Comment By: David Perry (perryda)
Date: 2005-12-19 21:38

Message:
Logged In: YES 
user_id=77962

It seems like there was only one minor fix needed to support
gaim 2.0.  Let me know if it acts flaky for you once you get
it installed properly.

----------------------------------------------------------------------

Comment By: David Perry (perryda)
Date: 2005-12-19 14:43

Message:
Logged In: YES 
user_id=77962

I need to research the perl API to see if anything's
changed, but I do plan to make this plugin compatible with
gaim 2.0.

----------------------------------------------------------------------

Comment By: Luke Schierer (lschiere)
Date: 2005-12-19 14:25

Message:
Logged In: YES 
user_id=28833

A new version of gaim has been released. It is likely that your
plugin will crash in the new gaim.  As per our standard policy,
we are only including plugins that we write, being unable to
maintain hundreds of plugins as we develop gaim, if you want to
continue making your plugin available, please update your plugin
and reopen it. If not updated, this will close in 14 days. 

----------------------------------------------------------------------

Comment By: David Perry (perryda)
Date: 2005-09-02 19:13

Message:
Logged In: YES 
user_id=77962

Version 0.005 URL-encodes non-alphabetical characters, for
safer URLs (particularly when using them with a command-line
utility).  Also takes care of problems when ' or $ were in
text to be linkified.

!!NOTE!! Because of this URL-encoding, linkify now requires
URI::Escape and Encode in order to function.  I believe
Encode is in Perl by default, and that URI::Escape is in
perl-URI.

----------------------------------------------------------------------

Comment By: David Perry (perryda)
Date: 2005-09-01 20:51

Message:
Logged In: YES 
user_id=77962

Linkify doesn't properly URL-encode non-alphabetical
characters.  This can cause problems with quotes or if used
for Wikipedia links.  I'm investigating possible solutions.

----------------------------------------------------------------------

Comment By: David Perry (perryda)
Date: 2005-01-08 10:05

Message:
Logged In: YES 
user_id=77962

spam3234: the current version works fine for me in gaim
1.1.1.  Do you get any messages on the console or the debug
window when you see this freeze?

----------------------------------------------------------------------

Comment By: Spam3234 (spam3234)
Date: 2004-12-24 17:45

Message:
Logged In: YES 
user_id=1027350

Gaim seems to freeze every time I try to enable this plugin.
 Is there a newer version out?

----------------------------------------------------------------------

Comment By: David Perry (perryda)
Date: 2004-09-16 14:13

Message:
Logged In: YES 
user_id=77962

Version 0.004 adds an explicit 'returnj' to each callback so
they don't eat messages.

----------------------------------------------------------------------

Comment By: David Perry (perryda)
Date: 2004-09-14 13:24

Message:
Logged In: YES 
user_id=77962

Version 0.003 fixes a bug where already-linkified text could
get re-linkified (possibly even corrupting the tags) if
multiple rules applied to the same chunk of text.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=390395&aid=1026860&group_id=235

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Gaim-plugins mailing list
Gaim-plugins@lists.sourceforge.net
Has you: Yes
https://lists.sourceforge.net/lists/listinfo/gaim-plugins

Reply via email to