mIRC Home    About    Download    Register    News    Help

Print Thread
Short links #125340 17/07/05 05:16 AM
Joined: Apr 2004
Posts: 218
P
PhantasyX Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
I searched the forum for "link" to see if there was topic already started like this. I'm pretty sure it has been suggested already a million times.

mIRC short links.

Example:

Instead of

http://www.website.com/verylong/link/wit...tknowjusttyping

in the mIRC windows, the link would appear as

A Long URL

That leads to that long url, a simple option in mIRC could be "show full urls" if you don't want short links enables, also could have a tooltip type thing, move your mouse over the link and a little thing comes up with the url.

Sort of like in AIM.
Would make chatting alot easier blush

Maybe like:

//say $url(Title,URL)
or [url="url"]Title[/url] like in UBB =z
or [url=url]title[/url] also? >.>

Just think mirc is getting too old to not have short links.. :|

Last edited by PhantasyX; 17/07/05 05:18 AM.

Live to Dream & Dream for Life
Re: Short links #125341 17/07/05 09:15 AM
Joined: Dec 2002
Posts: 208
H
Hrung Offline
Fjord artisan
Offline
Fjord artisan
H
Joined: Dec 2002
Posts: 208
If you think it's already been suggested, why not post on one of those threads, instead of creating a new one? I did find that there was something similar to this suggested here, along with reasons not to include it.


If I knew now what I will know then... maybe things will have been different...
Re: Short links #125342 17/07/05 06:19 PM
Joined: Apr 2004
Posts: 218
P
PhantasyX Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
[b]Evidently my [URL]'s did not work, so please excuse them. Sort of like the hotlink <a href="URL">Title</a> tags >.>


Live to Dream & Dream for Life
Re: Short links #125343 18/07/05 12:09 AM
Joined: Jul 2003
Posts: 77
B
bamaboy1217 Offline
Babel fish
Offline
Babel fish
B
Joined: Jul 2003
Posts: 77
the only real issue i can come up with here is that other clients that arent mIRC would see the syntax to show that is is a url which would clutter there screens so if it was like

[aLink=www.mirc.com]mIRC HomePage[aLink]

The problem is that would show up on like xchat not that that concerns any mIRC users just something to think about...


hmmm signed by me
Re: Short links #125344 19/07/05 03:46 AM
Joined: Apr 2004
Posts: 218
P
PhantasyX Offline OP
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
Yes, that would be a concern. Though if this feature was added maybe the people who created xChat and other chat programs would soon add the same feature? Giving them sort of a "push" towards adding it.

Could happen? :tongue:


Zach~


Live to Dream & Dream for Life
Re: Short links #125345 19/07/05 11:55 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
It can, and it can't. other irc client authors dont just go around implementing mIRC's every feature addition (see DCC fastsend, and other stuff). There is usually a hint of animosity in the irc client community when one powerful client circumvents protocol establishment and simply implements features for their proprietary software (look at microsoft if you need an example). It is not nice, not fair, and completely unnecessary. Are you _that_ annoyed by a long link every now and then? And if so, write a script to shorten it on _your_ end

Code:
on ^$*:TEXT:/\b(http\x3A\/\/\S+|www\.\S+)\b/g:*: { 
  if ($len($regml(1)) &gt;= 50) { 
    var %win = $iif($me ison $target, #, $nick) 
    echo -mbflirt %win &lt; $+ $nick $+ &gt; $replace($1-, $regml(1), $left($regml(1),20) $+ ... $+ $right($regml(1),20)) 
    hadd -m linktable $+(%win,.,$cid,.,$line(%win,0)) $regml(1) 
    haltdef 
  }
}
on ^$*:HOTLINK:/\b(http\x3A\/\/\S+|www\.\S+)\b/g:*:{
  if ($hget(linktable,$+($active,.,$cid,.,$gettok($hotlinepos,2,32)))) return
  halt
}
on $*:HOTLINK:/\b(http\x3A\/\/\S+|www\.\S+)\b/g:*:{
  if ($hget(linktable,$+($active,.,$cid,.,$gettok($hotlinepos,2,32)))) url -an $v1
}


note that the script can only print 1 longurl per line but hey, im not trying to write the script for you, im just proving the concept is possible and easy.


also note that mIRC isnt a bb

also... what do you do when you want to actually type the text:
[aLink=WHATEVER]BLAH[/aLink]?

Anyway, I think someone mentioned this was a repost.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: Short links #125346 19/07/05 11:58 PM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Quote:

Just think mirc is getting too old to not have short links.. :|


...... by the way... mIRC isn't "too old" for shortlinks.. _IRC_ is too old for short links. If you absolutely need new features like emoticons and "short links" in your chat, then use a newer protocol, irc just isn't for you.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"