Versione: 1.2
Versione mybb compatibile: 1.4.x
Autore: MyBBoard Italia
Screenshot: none
Descrizione: Un plugin che riconosce in automatico i link ed2k, li rende cliccabili e aggiunge le relative informazioni
Demo: none
Istruzioni: caricare il file ed2k_parser.php nella cartella inc/plugins e attivare da ACP
Changelog:
- 18/08/2009: rilascio plugin.
- 01/01/2010: gli ed2k vengono parsati anche nel portale
- 02/01/2010: corretto un problema con la regexp di riconoscimento, per ed2k link privi di hash-set
volevo sapere come fare per fare in modo che quando dal mio sito viene cliccato un link ed2k venga aggiunto su emule
Nome del file+[www.ilmiositoweb.it]
come su alcuni siti di p2p...
??????
ciao kimi volevo chiederti se potevi controllare il codice
xke ci sono alcuni link ed2k che non li riconosce
The ed2k link doesn't get parsed as a "clickable link" when it gets displayed on the Portal Page in a post grabbed from a forums. It only shows the link as text instead only. And because the text (ed2k link) is long without any spaces in it, it breaks a narrow layout theme used on that Portal page as well.
You should know also that the STATS is not working either, it just leads to that website, but doesn't display any stats for the ed2k link submitted.
With version 1.1, ed2k links shown in portal page are correctly parsed.
For the stats problem, the links seem to work ( for example:
http://ed2k.shortypower.org/?hash=E775A3...4A7D541487 ), but i included an alternative server that you can use (just open the plugin file and search for ED2KPARSER_STATISTICSSERVER line)
mavericck
The stats don't work because no hash code is being submitted. You need to change this line below.
ED2KPARSER_STATISTICSSERVER . $hash
To this instead:
ED2KPARSER_STATISTICSSERVER . $match
Also the address of the stats site has changed now from: ed2k.shortypower.dyndns.org
To this: ed2k.shortypower.org
L'utente ha aggiunto in seguito...
I've attached the same file with the changes made
The issue was related with the regexp that didn't recognize ed2k links without hash-set. You don't need to pass the whole link to the statistic server (in this way you force a redirection). The new version fixes the issue.
mavericck
Well I tried using it with the way it is, and when the link is submitted to the stats site. No hash code is being submitted at all. That's why I changed "hash" to "match". If you use FireFox and hover your mouse over the stats link you can see at the bottom of the browser that no ed2k link is being listed in the link displayed after the hash=
Where if you use Match you can see the link then displayed. So, I'm not sure what your saying here. But I can tell you the new version doesn't work with stats using that hash in the code, no link is being submitted after hash=
L'utente ha aggiunto in seguito...
Sorry, I just downloaded and tried it again. And yes you are right. It is working fine. That's very strange because it wasn't before.
I have a question. Somehow a site called ShareReactor is able to add their own site TAG at the end of all ed2k links. Do you have any idea how they do that?
I'm referring to version 1.2 I uploaded half an hour ago. This should work for you.
mavericck
Yeah, that must be the version I just download and tried again about 5 minutes ago. Yes that version works fine now. I also noticed you fixed the Stats URL address also in it, so I knew you'd made some changes since.
Again though, do you have any idea how ShareReactor add their own site TAG to the end of ed2k links? As thats a very good thing for (site promotion) linkback in eMule - as you can imagine.
L'utente ha aggiunto in seguito...
Look at this link below to see how they added their ShareReactor TAG to it
Sorry, no illegal links on this forum. mavericck