Link to Mod (http://mods.simplemachines.org/index.php?mod=96)
Adds support for ed2k links in <a href> tags. It works regardless of the presence of the FasterParseCode mod, but if you intend to use both FPC must be installed first. Only tested with SMF 1.0.1.
how does this mod work??
i just added it to my forum i don't see nothing...
can u guide me?
The only thing the mod changes is links if and when "basic html" is enabled and you use <a href="....">...</a>.
-[Unknown]
Exactly, as I said in the readme this isn't even a mod, but as it's been asked about before..
work fine in 1.0.3
Any intention to implement other P2P's? Magnet links would be realyl useful ( could be used for torrents and basically every p2p out there), and of course the usual suspects: gnutella hashes/dc tiger hashes/fasttrack sig files/etc
Well I can't say there was (or is) an intention. This was just as adjustment that I needed for my forum and decided to share. I don't even know what those links look like, but since it is a one line change, I guess it can't take more then a few minutes... Maybe in a month or so I'll take the time to look at those and add them, but this is not the best time for me.
So, to post an ed2k I have to enable the html and write <a href="ed2k://|file|blablabla|4109788|E808990B6AA870DE2AD7E412FEE3321B|/">ed2k://|file|blablabla|4109788|E808990B6AA870DE2AD7E412FEE3321B|/</a> ? :-\ :-\
Can anyone please do a mod to work when I paste the ed2k link?
tl0z i had it workin' on previous versions of SMF (made it minutes ago)... but now, i've updated to 1.1 Beta 3 and it doesn't work the same way! :\
Can someone update this mod or put some code in here so i can add the cod emyself.. I know its 1 simple find/replace...
Because it deffinately doesnt work on 1.1 Beta 3 Public forums versions since the changes in this new release...
The mod dont find the the search string..
Added support for 1.1 Public Beta 3. If you find any bugs please drop me a line.
How work this mod? I did not understand very well...
I need a mod which allow to post ed2k link instead html link... is it?
In 1.0.5 version, this mod isn't works.
Any request?
This mod not work for 1.0.5 ? :'(
can anyone update this for 1.1 rc1?
Quote from: M3THOD on November 19, 2005, 07:08:53 PM
can anyone update this for 1.1 rc1?
Please please update to 1.1 RC1
I'm sorry but I haven't had the time lately, and now that the 1.1 final release is iminent I don't see the point in installing 1.0.5 or 1.1 RCs to add the support. As soon as 1.1 final is released I will update the mod, but until then, and if you really want to use it on an RC maybe it's just a matter of editting package-info.xml and adding the version with the same mod as the 1.1 betas. I don't suppose the parsing code was changed yet again, but I didn't look at it.
Quote from: Mindstorm on January 25, 2006, 03:50:22 PM
I'm sorry but I haven't had the time lately, and now that the 1.1 final release is iminent I don't see the point in installing 1.0.5 or 1.1 RCs to add the support. As soon as 1.1 final is released I will update the mod, but until then, and if you really want to use it on an RC maybe it's just a matter of editting package-info.xml and adding the version with the same mod as the 1.1 betas. I don't suppose the parsing code was changed yet again, but I didn't look at it.
not work :'(
Waiting for RC2 Support.
Thank YOu!
Quote from: ufuk.exe on February 07, 2006, 10:29:45 AM
Waiting for RC2 Support.
Thank YOu!
here's the ed2k-hack with rc2 support :)
http://www.e-sipa.de/download/mnd_ed2klinks.zip
good job man
Quote from: L.A. on February 10, 2006, 03:40:12 AM
Quote from: ufuk.exe on February 07, 2006, 10:29:45 AM
Waiting for RC2 Support.
Thank YOu!
here's the ed2k-hack with rc2 support :)
http://www.e-sipa.de/download/mnd_ed2klinks.zip
No download!! :'(
Quote from: allumius on February 18, 2006, 05:20:20 AM
Quote from: L.A. on February 10, 2006, 03:40:12 AM
Quote from: ufuk.exe on February 07, 2006, 10:29:45 AM
Waiting for RC2 Support.
Thank YOu!
here's the ed2k-hack with rc2 support :)
http://www.e-sipa.de/download/mnd_ed2klinks.zip
No download!! :'(
I updated the link: http://www.dorukestate.com/download/mnd_ed2klinks.zip
What's the code for post elinks please?
Hey there. Thanks L.A., you must be the reason why the PMs stopped. Anyway I finally took the time to update my forum to RC2, and so here is the updated mod version. It's identical to L.A.'s, as the source hasn't changed and it was only a matter of adding the version to the XML spec.
Now let's wait for the final, shall we?
what exactly DOES this mod do!?!
i have no idea, and i dont even know what ed2k is!
could someone please enlighten me?
thanks!
ed2k links are used by p2p file sharing programs (most notably eMule) to describe files. This way you can go to a web page, click on a link and get the file added to your ed2k client's download queue.
But what does that have to do with a forum and SMF ?
If you post an ed2k link in html link tags such as:
ed2k://|file|3-%20Koniloes%20-%20Batatriz.mp3|759951|00CACAF386D274340DC1459CC741AEB4|
it should get hyperlinked.
In a default SMF install it does not, and that makes it hard for people to share links on a SMF forum - the only option is to post them as text and copy/paste into the ed2k client.
PS: To any moderator reading this, the file above is public domain.
Works great in rc1.1, but can be possibl eto view the file size? and only the ed2k protocol?, like:
ed2k://|file|slackware-10.2-install-DVD.iso|2728298496|A5728E1226522E408AF04CD420E0FAAF|/
Converted to:
slackware-10.2-install-DVD.iso (2.54Gb)
Tnx!
Hey there,
It it possible, sure. The second part of the link (after the name) is the file size. It's just that I don't need it, and, as much as I'd like to do it for the rest of you, I really don't know a thing about php/perl regular expressions. It's probably something (the basics) that can be learnt in 30 minutes, but at this time I don't have the time to do it. As I noted from the beginning this was just meant to allow me to post standard links in SMF, nothing else.
If (and it's a big if) I can get some time (maybe after this term's exams), I might try to turn this into something useful, eg. catching ed2ks not in html link tags and presenting the file size. But please don't get your hopes up, I'm not promising anything.
Okay, anyway tnx for the answer.
Keep good work
Don´t work in SMF 1.1 RC2...
There´s any config to do before?
Or i just have to put the ed2k link to be hyperlinked?
regards
I made it works.
But the mod don´t clean the code after the first "|"...
the link appears like that:
ed2k://|file|blablabla%20Manual.zip|477647534|dd047dd335974016d37d7d7dd1dd42dd|/
Can we improve this mod to show an emule icon before the link and file size (like 466Mb) after the link?
Another good improvement would be one link where adds all ed2k links posted on same post.
Regards
I'm not sure what the problem is.. I have it running fine on a RC2 board, but I'll look into it and update it to RC3 too.
I'll also look into the icon thingy, but the "add to emule" link would have to be done in js and I don't really feel like doing it.
Ok there is now support for 1.1 RC3. I didn't find anything wrong with RC2, as I previously said it works fine for me (and a lot of users, I suppose).
Anyway, this new version adds support for stand-alone links (that is, links not enclosed in <a href> tags), but only for the 1.1 branch.
I've decided agains the icon and the size. This is meant to be a really simple mod, so I will not add control pannel options, and that being said, I'd rather not force everyone to use an icon and a size they might not want.
rgd
Mindstorm
Please is possible update mod for 1.1.1 version?
Sure, it's done :)
thanks
And.... It is possible to add a button like them of insert youtube, insert flash, insert images.......
And Is it possible to post the elink so that the name appears and the elink remains secret? In the same way as it happens with the url-link in this example:
QuoteSIMPLEMACHINES (http://www.simplemachines.org)
Sorry but my english is very bad
I have installed this mod in my SMF FORUM 1.1.1. but the emule icon doesn''t appear in the BCC Code. Can anyone tell me please what can I do to enable that option as i need this mod very bad in my forum. Thank you very much
P.s. Or is there another way to post an ed2k link without the emule icon appearing in the BCC Code?
Finally I was able to figure it out how this mod works. It was very simple, but I just didn''t think about it. All you could do was just copy and paste the ed2k link and post it as a normal post. The link will appear with the emule icon
Quote from: allumius on January 09, 2007, 04:53:07 AM
thanks
And.... It is possible to add a button like them of insert youtube, insert flash, insert images.......
I'm glad you find the mod useful. It would certainly be possible to add a button to the bcc table, it just wouldn't make sense as this doesn't involve any bcc code. It just changes the link handling feature of smf to also allow ed2k links.
Quote from: allumius on January 09, 2007, 04:53:07 AM
And Is it possible to post the elink so that the name appears and the elink remains secret? In the same way as it happens with the url-link in this example:
QuoteSIMPLEMACHINES (http://www.simplemachines.org)
You just have to paste an ed2k link as html. For instance:
<a href="ed2k://|file|test.test|712387712|7ADF882123231ABA285X38E70BF|h=GBASVUX5773PSNAXLKQG5KHVVWHSHS7K|/">Test link</a>
(This link is invalid, it's just meant as a demo)
Quote from: babjusi on January 16, 2007, 02:08:54 AM
Finally I was able to figure it out how this mod works. It was very simple, but I just didn''t think about it. All you could do was just copy and paste the ed2k link and post it as a normal post. The link will appear with the emule icon
Yes, it's just that simple! :)
Hi, first thanks for the mod/improvement!.
Well, I have a question (maybe a bug report), when you add two consecutive links, like:
ed2k://|file|test.test|712387712|7ADF882123231ABA285X38E70BF|h=GBASVUX5773PSNAXLKQG5KHVVWHSHS7K|
ed2k://|file|test.test|712387712|7ADF882123231ABA285X38E70BF|h=GBASVUX5773PSNAXLKQG5KHVVWHSHS7K|
The first link will get the emule icon, but the second will not :(.
Can something be done to improve/fix this?.
Thanks in advance. ;D
This mod not work for 1.1.2 ? :'(
Quote from: vladimir - sv on January 24, 2007, 10:26:38 PM
Can something be done to improve/fix this?.
I'll take a look at it.
Quote from: EleCMaNn on February 12, 2007, 11:41:02 PM
This mod not work for 1.1.2 ? :'(
It will in a few minutes.
Ok, I just submitted an updated version. As stated in the description this was NOT tested. The changes are of course minimal, but there can always be a problem. If the mod doesn't install or work, please send me a PM and I'll fix it ASAP.
Thanks Mindstorm!! This is just what I looking for.
I will try on my SMF 1.1.2 and tell you if it works correctly.
Salu2
thanks for the ed2k link support.
still it seems one bug is still left, maybe an SMF error.
if for whatever reason someone posts ed2k links inside code tags, only the first link is shown as plain text all others are parsed by your mod.
i mean, shouldn't the code tag prevent any parsing inside its tags ?
Mindstorm, thanks a lot for the mod, but i've just published another one (http://custom.simplemachines.org/mods/index.php?mod=716) based on your idea of rendering ed2k links and on your regexp to parse them. I had rewritten it from scratch since I had to implement some features i need.
Thanks again. Nice job.
PS If you would like to match your mod with mine and support it I would appreciate since I have no much time for maintenance. So, if you are then just let me know and keep me informed of any further support events. Thank you.
Hope your mod works tFF, it would be very useful... but it hasn't been approved yet. Would it be to much to ask you to send it to my email?
Just a few questions... Is it necessary to uninstall the old ed2k mod? Does it add an icon in reply mod, so you don't need to know the code?
Thx again!
EDIT: Great MOD tFF. Good job!
Deleted e-mail as per request - Iris.
Quote from: pulpi on May 03, 2006, 11:29:28 AM
Works great in rc1.1, but can be possibl eto view the file size? and only the ed2k protocol?, like:
ed2k://|file|slackware-10.2-install-DVD.iso|2728298496|A5728E1226522E408AF04CD420E0FAAF|/
Converted to:
slackware-10.2-install-DVD.iso (2.54Gb)
Tnx!
Mindstorm,
The information file size is very important for users. Do you can put this feature in the mod in the next version?
how to parsed magnet link magnet:?xt=urn:tree:tiger:3IOMMQTZCRKY72OUMQO2OCEYEGHFVGSY4XGEEQQ&xl=373608448&dn=Lost.S03E19.rus.LostFilm.TV.avi
Quote from: mercon on April 25, 2007, 11:55:53 AM
The information file size is very important for users. Do you can put this feature in the mod in the next version?
Ok, it's got file size now. Unfortunately, I couldn't get it to display it in a easily human readable format (GB, MB, KB, etc.), it always displays in bytes. I placed a function human_size on Subs.php, if anyone can tell me what's wrong with it I'd appreciate it.
Quote from: wizer on May 03, 2007, 04:33:33 PM
how to parsed magnet link magnet:?xt=urn:tree:tiger:3IOMMQTZCRKY72OUMQO2OCEYEGHFVGSY4XGEEQQ&xl=373608448&dn=Lost.S03E19.rus.LostFilm.TV.avi
I'm not even sure what a magnet link is, but this mod is only meant for ed2k links, sorry!
Hello there.
Thank you very much for this mod.
I would like to ask you something: is it possible to hide the ed2k from guests? If so, how?
There is currently no support for what you're asking, and since my time is very limited and I'm trying to keep this mod to a bare minimum I don't think there will ever be.
There are other mods which allow you to hide certain parts of the post from guests (e.g. http://custom.simplemachines.org/mods/index.php?mod=228 ). You can use them together, or, if you can work with php, you might try merging them so that every ed2k link is treated as a hidden part.
There is a mode which hides images from guests. Would it be posible to edit the php file so that it hides ed2k tags instead of img?
My english is very bad, but i can say: THANKS :D
I have this error
if Enable URL filters is not active, the ed2k mod work, but if the Enable URL filters is active, ed2k not work. look the examples
whitout:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg206.imageshack.us%2Fimg206%2F5713%2Fwithoutenableurlfiltersai4.jpg&hash=508945f70658b867ccfaf2e7ef08fc716a9bf14a)
with:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fimg526.imageshack.us%2Fimg526%2F5135%2Fwithenableurlfilterszl1.jpg&hash=f9eb6b4585aad013eab37946f5241ff4ce550ef7)
Any chance of adding ed2k stats support from this page?
http://tothbenedek.hu/ed2kstats/
Quote from: FragaCampos on December 20, 2007, 08:58:45 AM
Any chance of adding ed2k stats support from this page?
http://tothbenedek.hu/ed2kstats/
Is my doubt too!
Heres the code for PHPBB
can anyone migrate to smf?
<?php
/*
phpBB script for getting ed2k file/url list
It scans the phpbb database for ed2k links and if it finds one in a topic which can be read by an anonymous user it displays it.
Install:
Make sure you run phpBB version 2.0 or later
Simply copy the file to the phpbb root directory and rename it to listed2k.php
If you want your database to be present at the RB2M ed2k stats' "backlinking" database, please contact me!
more info and updates can be found at http://tothbenedek.hu/ed2kstats/
(c)2006 Benedek Toth
Licensed under GPL which can be found at http://www.gnu.org/licenses/gpl.txt
THERE IS ABSOLUTELY NO WARRANTY FOR THIS SCRIPT
(...altough I find it hard to believe it can damage anything... in the worst case it will simply not work)
*/
/*
If you want to define a password to not let anyone access your database, uncomment the next line and change yourpass to your password! Accessing the file will be available at the url listed2k.php?pass=yourpass
If your file is linked to the RB2M ed2k stats service don't forget to notify me before(!!!) doing so, or your files will disappear from the database.
*/
//if ($HTTP_GET_VARS[pass]!='yourpass') die();
set_time_limit(300);
function plog ($log) {
print "#COMMENT\t$log\n";
}
plog("running <pre>"); // for better HTML VIEW
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
if ($board_config[server_port])
plog("phpbb init done and okay");
$porta = $board_config[server_port]==80?"":":". $board_config[server_port];
$rooturl = "http://" . $board_config[server_name] . $porta . $board_config[script_path];
$sql = "SELECT count(*) FROM " . POSTS_TEXT_TABLE . " c , " . POSTS_TABLE . " d, " . FORUMS_TABLE . " f WHERE c.post_id=d.post_id and f.forum_id=d.forum_id and f.auth_read=0 and instr(c.post_text, 'ed2k://|file|')>0;";
if (!($result = $db->sql_query($sql))) die("#FATAL_ERROR\t SQL problem");
//plog("sql ok: ".$sql);
if ($row = $db->sql_fetchrow($result)) {
$lcount = $row[0];
plog("sum posts: ".$lcount);
}
for ($i=0;$i<=$lcount;$i+=100) {
plog("starting circle ".$i/100);
$sql = "SELECT c.post_id, c.post_text FROM " . POSTS_TEXT_TABLE . " c , " . POSTS_TABLE . " d, " . FORUMS_TABLE . " f
WHERE c.post_id=d.post_id and f.forum_id=d.forum_id and f.auth_read=0 and instr(c.post_text, 'ed2k://|file|')>0
ORDER BY c.post_id DESC LIMIT $i,100;";
if (!($result = $db->sql_query($sql))) die("#FATAL_ERROR\t SQL problem");
$rows = array();
while ($row = $db->sql_fetchrow($result)) {
$url = $rooturl.'viewtopic.' . $phpEx . '?' . POST_POST_URL . '=' . $row[0] . '#' . $row[0];
$pt = "nuku".strtolower($row[1]);
$ptt = explode('ed2k://|file|', $pt);
$elso = true;
while (list($k, $v) = each($ptt)) {
if (!$elso) {
$hasht = explode('|', $v);
$hash = strtoupper($hasht[2]);
$hash = substr($hash, 0, 32);
if (strlen($hash)==32 and strspn($hash, "0123456789ABCDEF")==32)
print $hash . "\t" . $url . "\n";
}
$elso = false;
}
}
}
$db->sql_freeresult($result);
plog("done");
?>
Quote from: FragaCampos on October 14, 2007, 04:14:52 PM
There is a mode which hides images from guests. Would it be posible to edit the php file so that it hides ed2k tags instead of img?
It's certainly possible and probably not that hard. As I've previously said my free time is running dangerously low, so I probably won't be doing it anytime soon.
Quote from: Ahriman on November 14, 2007, 02:38:23 AM
My english is very bad, but i can say: THANKS :D
You're welcome! :)
Quote from: allumius on December 13, 2007, 07:58:25 AM
I have this error
if Enable URL filters is not active, the ed2k mod work, but if the Enable URL filters is active, ed2k not work. look the examples
Hello. I suppose you're refering to the prettyurls mod, right? I'm not sure why it doesn't work... I'll try and look at it when I can find the time.
Quote from: FragaCampos on December 20, 2007, 08:58:45 AM
Any chance of adding ed2k stats support from this page?
http://tothbenedek.hu/ed2kstats/
Quote from: tckbm on March 31, 2008, 11:09:16 PM
Quote from: FragaCampos on December 20, 2007, 08:58:45 AM
Any chance of adding ed2k stats support from this page?
http://tothbenedek.hu/ed2kstats/
Is my doubt too!
Quote from: tckbm on March 31, 2008, 11:15:22 PM
Heres the code for PHPBB
can anyone migrate to smf?
I think I'm missing the purpose... That code prints a list of all links on the forum, right? What's it good for?
In any case, I'll probably reply with the standard line: this is supposed to be a minimal extension, and I don't have the time to create and maintain any others. I'm sorry!
Think about update to SMF 2.x ? when ?
I will update to 2.0 when it gets out of beta and I update my forums. I'm sorry, but I don't have the time to go look at it "just for fun".
I have SMF 1.1.6.
The mod works flawlessly, but Id need your help with something please!
The problem is that sometimes there are spaces in ed2k link names...
Example:
ed2k://|file|[some%20file%20with%20spaces.rar|101996469|FF7D18024C4C61716F2188568DECA73C|/
The result is:
some%20file%20with%20spaces.rar >:(
So i would like to take off %20 from the name, cose its ugly, and put spaces there instead, but in the link %20 MUST stay (otherwise link doesnt work).
How I want it:
some file with spaces.rar :)
(and the link is= ed2k://|file|[some%20file%20with%20spaces.rar|101996469|FF7D18024C4C61716F2188568DECA73C|/)
I tried to use:
$message=str_replace("%20"," ",$message);
It works with the name, %20 are gone...but the links are broken now because it put a space there too, so its not ok.
I was wondering if maybe there is an "if" to add to the function link_from_a_ed2k ($m)....?
Im not an expert at php...so Im just guessing...
Anyone?
Hi
Quote from: Mindstorm on October 11, 2008, 08:05:25 AM
I will update to 2.0 when it gets out of beta and I update my forums. I'm sorry, but I don't have the time to go look at it "just for fun".
SMF 2.0 RC1 is released ;)
I'm waiting for update ... thx ;)
Is it doable to somehow show the number of hits of an edk2?
Bump O:)
In attachment file I add support for SMF 2.0.* (code is equal to 1.1.*).
Hi! i installed the elink mod attached in smf 2.0.4 but i have problems displaying the emule gif.
I don't get problems in the preview, but after the post the url redirects to /forum/index.php/ed2k/emule.gif and the original file it's in /forum/ed2k/emule.gif
How i can fix it?
Thanks!
I don't know why, but I had the same problem and fixed it this way:
In Subs.php search src="./ed2k/emule.gif" and substitute the link by an external link, from imageshack or imgur, for example.
I use this MOD and works fine when I want see eLinks with icon-style but if I write more than one eLink on BBC code
Quote
ed2k://|file|file_name1.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/
ed2k://|file|file_name2.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/
<a href="ed2k://|file|file_name3.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/">file_name3.ext</a>
I want see source code but this MOD converts the second and next elinks to icon-style.
I think this is an error. Can you correct this?
I try this mod and works fine when I use editor in code mode, but when I use WYSIWYG the code changes and doesn't work any more.
For this code:
ed2k://|file|file_name1.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/
ed2k://|file|file_name2.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/
<a href="ed2k://|file|file_name3.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/">file_name3.ext</a>
And I clik preview. The code changes to this other:
[img alt=ed2k:]http://foro.tusproyectos.net/./ed2kfile/donkey.gif[/img] [url=http://foro.tusproyectos.net/ed2k://|file|file_name1.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/]file_name1.ext[/url] (117.74 MiB)
[img alt=ed2k:]http://foro.tusproyectos.net/./ed2kfile/donkey.gif[/img] [url=http://foro.tusproyectos.net/ed2k://|file|file_name2.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/]file_name2.ext[/url] (117.74 MiB)
<a href="ed2k://|file|file_name3.ext|123456789|123456789ABCDEFG123456789ABCDEFG|/">file_name3.ext
Can you helpme?
Thanks ;)