AutoLink

  1. 5 years ago

    ram

    30 Jan 2012 Moderator
    Edited 5 years ago by ram

    Hi,
    I have update an old plugin I made for esotalk beta1.
    When you post an URL, AutoLinks automatically:

    • Embeds images (PNGs, JPGs, GIFs, BMPs and some others)
    • Embeds MP3s with a nice flash streamer/player
    • Embeds videos (from several popular sites - see below)
    • Turns other URLs (including mailto:, ftp://, etc) in to a clickable link

    Video sites currently supported:

    • Youtube
    • Google video
    • Vimeo
    • metacafe
    • LiveLeak.com
    • Dailymotion
    • myspace video
    • Spike
    • Redlasso
    • onsmash.com
    • tangle

    You can also force an URL to become a clickable link (rather than becoming embedded) by putting a '!' at the beginning of the URL. For example, !http://www.example.com/video/1 will be a clickable link and won't embed video in the page.

    Download

  2. ram

    30 Jan 2012 Moderator
    Edited 5 years ago by ram

    Oh You need to modify the file ETFormat.class.php and comment line 73
    Because esotalk is a bit aggressive on converting links.

    72:	// Format links, mentions, and quotes.
    73:	//$this->links();
  3. @ram Hi,
    I have update an old plugin I made for esotalk beta1.
    When you post an URL, AutoLinks automatically:

    • Embeds images (PNGs, JPGs, GIFs, BMPs and some others)
    • Embeds MP3s with a nice flash streamer/player
    • Embeds videos (from several popular sites - see below)
    • Turns other URLs (including mailto:, ftp://, etc) in to a clickable link

    Video sites currently supported:

    • Youtube
    • Google video
    • Vimeo
    • metacafe
    • LiveLeak.com
    • Dailymotion
    • myspace video
    • Spike
    • Redlasso
    • onsmash.com
    • tangle

    You can also force an URL to become a clickable link (rather than becoming embedded) by putting a '!' at the beginning of the URL. For example, !http://www.example.com/video/1 will be a clickable link and won't embed video in the page.

    Download

    One of the best posts here, at EsoTalk! Congratulations ram!

  4. why i can't get this file on 2shared. retuning 403 null on url...
    help me please.... thanks

  5. ram

    31 Jul 2012 Moderator

    Don't know, the link is ok for me..
    http://www.sendspace.com/file/yaevt0

  6. Edited 5 years ago by vchezt

    @ram Don't know, the link is ok for me..
    http://www.sendspace.com/file/yaevt0

    thanks a lot @ram

  7. First of all, thank you very much for the work done.

    Second, on my forum (430d27f from esotalk/esoTalk on github ) plugin works with some errors:

    1. email addresses are not processed;
    2. Link processing with an error if it is after the point. For example:
    http://esotalk.org. ===> <a href="http://esotalk.org.">http://esotalk.org.</a>

    Also, can I configure the plugin so that links without the protocol were treated as http? For example:

    esotalk.org ===> <a href="http://esotalk.org">esotalk.org</a>
  8. @A044 Link processing with an error if it is after the point.

    The same with a comma and other symbols.

  9. ram

    7 Aug 2012 Moderator
    Edited 5 years ago by ram

    I know, but the point/comma may be part of the link. We have no way to know that, so space is the link terminator.

  10. Toby

    7 Aug 2012 Administrator
    Edited 5 years ago by Toby

    There's a good regular expression for picking up links automatically, and without the problem described above, in the default implementation - you could try that?

    /(?<=\s|^|>|\()(\w+:\/\/)?([\w\-\.]+\.(?:com|net|org|gov|edu|co|biz|info|tv|mil|cn|jp|ru|eu|nz|ca|uk|de)[^\s<]*?)(?=[\s\.,?!>\)]*(?:\s|>|\)|$))/i
  11. @A044 email addresses are not processed;

    I want to clarify: to plugin worked, how should I write the e-mail in post?

    mail@example.com

    or

    mailto:mail@example.com
  12. @A044 I want to clarify: to plugin worked, how should I write the e-mail in post?

    Figured out myself. I need to write the email with “mailto:”. Also, I change the line #110:

    return '<a href="'.$link[0].'" rel="nofollow external">'.$link[0].'</a>';
    return '<a href="'.$link[0].'" rel="nofollow external">'.$link[2].$link[3].'</a>';

    My version is more readable, I think.

    @ram I know, but the point/comma may be part of the link.

    True but the links with point/comma at the end are quite rare. I think it is right to process links without a point/comma at the end; in all other cases user can always use bbcode.

    And sorry for the spam, my hands are faster than my brain :)

  13. ram

    8 Aug 2012 Moderator

    Before someone see this. I know that youtube links do not always works if the v= parameter is not the first one. I'm on it.
    Short links also :-)

  14. ram

    8 Aug 2012 Moderator

    New version :-)
    Youtube links are fixed, it also handle short youtube link like http://youtu.be/jshdfiou

  15. 4 years ago

    @ram Hi,
    I have update an old plugin I made for esotalk beta1.
    When you post an URL, AutoLinks automatically:

    • Embeds images (PNGs, JPGs, GIFs, BMPs and some others)
    • Embeds MP3s with a nice flash streamer/player
    • Embeds videos (from several popular sites - see below)
    • Turns other URLs (including mailto:, ftp://, etc) in to a clickable link

    Video sites currently supported:

    • Youtube
    • Google video
    • Vimeo
    • metacafe
    • LiveLeak.com
    • Dailymotion
    • myspace video
    • Spike
    • Redlasso
    • onsmash.com
    • tangle

    You can also force an URL to become a clickable link (rather than becoming embedded) by putting a '!' at the beginning of the URL. For example, !http://www.example.com/video/1 will be a clickable link and won't embed video in the page.

    Download

    omg thx for this!!! i can add videos in my posts now :)

  16. Deleted 4 years ago by Toby
  17. None other than YouTube link does not open
    something wrong?

  18. [deleted]

    12 Oct 2012
    Deleted 4 years ago by Toby
  19. [deleted]

    14 Oct 2012
    Deleted 4 years ago by Toby
  20. ram

    23 Oct 2012 Moderator
    Edited 4 years ago by ram

    @forest : did you install it or trying on this forum ? Because it's not activated here.
    Also did you read the second post of this thread ?

  21. Newer ›
 

or Sign Up to reply!