Rispondi 
 
Valutazione discussione:
  • 0 voti - 0 media
  • 1
  • 2
  • 3
  • 4
  • 5
[plugin] ed2k parser
Autore Messaggio
mavericck Offline
Amministratore
Amministratori

Messaggi: 1.657
Registrato: Sep 2006
Reputazione: 21
Versione: MyBB 1.6.5
Messaggio: #11
RE: [plugin] ed2k parser
You could change line 54
Codice PHP:
$name  $link[1]; 
with:
Codice PHP:
$name  $link[1] . 'yoursite.com'

and line 67
Codice PHP:
$text str_replace($match'ed2k file: <a href="' $match '">' $name '</a> [' $size ', <a target="_blank" href="' ED2KPARSER_STATISTICSSERVER $hash '">' ED2KPARSER_LANGSTATISTICS '</a>]'$text); 
with:
Codice PHP:
$text str_replace($match'ed2k file: <a href="ed2k://|file|' $link[1] . '.yoursite.com|' $link[2] . '|' $hash '|/">' $name '</a> [' $size ', <a target="_blank" href="' ED2KPARSER_STATISTICSSERVER $hash '">' ED2KPARSER_LANGSTATISTICS '</a>]'$text); 

But you know, the "spreading factor" of these backlinks depends on how many users add files directly from your site.

mavericck

- The quiter you become, the more you can hear -
03-01-2010 08:58
Visita il sito web di questo utente Trova tutti i messaggi di questo utente Cita questo messaggio nella tua risposta
mrgtb Offline
Novizio
*

Messaggi: 7
Registrato: Dec 2009
Reputazione: 0
Versione: MyBB 1.4.11
Messaggio: #12
RE: [plugin] ed2k parser
I have another question. When you copy ed2k links from eMule. They all have this code in them to create a space "%20".

Like this for example: Bruce%20Lee%20Movie

The trouble is, this also gets displayed in the File Name Displayed as the link title. Is there anyway to get this mod when creating the title of the ed2k link, to replace all %20 with an UNDERLINE:

So this below:

Bruce%20Lee%20Movie.rar

Become this instead:

Bruce_Lee_Movie.rar

Or better still, just create space like this:

Bruce Lee Movie.rar
(Questo messaggio è stato modificato l'ultima volta il: 08-01-2010 02:57 da mrgtb.)
08-01-2010 00:31
Trova tutti i messaggi di questo utente Cita questo messaggio nella tua risposta
mavericck Offline
Amministratore
Amministratori

Messaggi: 1.657
Registrato: Sep 2006
Reputazione: 21
Versione: MyBB 1.6.5
Messaggio: #13
RE: [plugin] ed2k parser
Just change
Codice PHP:
$name  $link[1] . 'yoursite.com'
with
Codice PHP:
$name  str_replace('%20''_'$link[1] . 'yoursite.com'); 

Plain whitespaces cannot be used because they are not considered safe in urls.

mavericck

- The quiter you become, the more you can hear -
08-01-2010 10:47
Visita il sito web di questo utente Trova tutti i messaggi di questo utente Cita questo messaggio nella tua risposta
mrgtb Offline
Novizio
*

Messaggi: 7
Registrato: Dec 2009
Reputazione: 0
Versione: MyBB 1.4.11
Messaggio: #14
RE: [plugin] ed2k parser
Thanks for that, it works great and I've applied all the changes mentioned to this mod.

That being the TAG and replacement of %20 with Underscores.

I've also created two little eMule images, one Blue for ed2k links, and one Red for eMule Server links. I've added some top transparent blank space to them as well to create create a small (line gab) between each link posted so they look better spaced out better without having to a <br /> in the code for link spacing.
L'utente ha aggiunto in seguito...
Hopefully the attachment will work this time below.

[attachment=668]
L'utente ha aggiunto in seguito...
Just a little heads-up here. I've moved the TAG to the very begining of the ed2k link file name. The reason being, if you lets say have an file called:

james_bond.rar

And your tag gets added at the end making it.

james_bond.rar.yousite.com

That file is an invalid RAR file once downloaded because the RAR extension is no longer the last thing displayed in the file.

Just thought you should know.
(Questo messaggio è stato modificato l'ultima volta il: 08-01-2010 16:21 da mrgtb.)
08-01-2010 14:44
Trova tutti i messaggi di questo utente Cita questo messaggio nella tua risposta
DarkJ Offline
Appena arrivato

Messaggi: 2
Registrato: Aug 2010
Reputazione: 0
Versione: MyBB 1.6.0
Messaggio: #15
RE: [plugin] ed2k parser
Segnalo un problema: effettuando una ricerca in cui compaia il testo cercato all'interno del link, questo non funziona perchè viene aggiunto al suo interno uno <span per l'highlight..

Esiste un fix?
07-09-2010 12:11
Trova tutti i messaggi di questo utente Cita questo messaggio nella tua risposta
DarkJ Offline
Appena arrivato

Messaggi: 2
Registrato: Aug 2010
Reputazione: 0
Versione: MyBB 1.6.0
Messaggio: #16
RE: [plugin] ed2k parser
Nessuno che sappia qualcosa?
12-10-2010 20:49
Trova tutti i messaggi di questo utente Cita questo messaggio nella tua risposta
mrgtb Offline
Novizio
*

Messaggi: 7
Registrato: Dec 2009
Reputazione: 0
Versione: MyBB 1.4.11
Messaggio: #17
RE: [plugin] ed2k parser
What the poster is trying to say above, there is a problem with two things in this mod. Both of which I've been trying to get some help to solve. The biggest problem is the "Search Highlight" colour function in MyBB. If you post an ed2k link that contains keywords being search for, the colour SPAN tag gets added to them breaking the links when viewed as a search result.

I've yet to find a solution to that problem.

Another problem is the "WordWrap" feature in MyBB. If you set it to about 80 characters before inserting a space, many ed2k links will be broken because they are longer than 80 characters. Meaning a space gets inserted into the ed2k link by the WordWrap feature (if activated). The only work-around for that is to set wordwrap to about 110 characters long, then most ed2k links posted won't be effected by it. Seeing as most are generally less than 110 characters long (but not all of course), so it still does pose a problem.

But the biggest issue by far is that dam colour "Search Highlighting" problem MyBB uses, is there any way to stop ed2k links getting the colour SPAN tag added to them by the Search Engine?

The reason these two problems happen, is because the ed2k links are displayed (inside post content). So both "Word Wrap" and "Search Colour Highlighting" take effect on them. Both problems could be avoided if somehow the ed2k links were displayed (outside posted content), then neither search highlighting or wordwrap would take effect on them. That's seems the easy solution, but how I'm not sure?
(Questo messaggio è stato modificato l'ultima volta il: 05-02-2011 12:02 da mrgtb.)
05-02-2011 11:43
Trova tutti i messaggi di questo utente Cita questo messaggio nella tua risposta
007combatant Offline
Appena arrivato

Messaggi: 1
Registrato: Apr 2011
Reputazione: 0
Versione: MyBB 1.6.1
Messaggio: #18
RE: [plugin] ed2k parser
Help Biggrin

http://community.mybb.com/thread-109602.html
18-12-2011 16:29
Trova tutti i messaggi di questo utente Cita questo messaggio nella tua risposta
Rispondi 


Vai al forum:


Utente(i) che stanno guardando questa discussione: 1 Ospite(i)