Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
eD2K Links Hack Details »»
eD2K Links Hack
Version: 1.00, by MRGTB MRGTB is offline
Developer Last Online: Dec 2014 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.6.0 Rating:
Released: 09-12-2006 Last Update: 09-16-2006 Installs: 52
Uses Plugins Template Edits
Code Changes  
No support by the author.

This will let you add ed2k links to your site. The hack does require ONE manual edit to a PHP file, but no vBulletin code is altered, just some code added to the file. Please follow the instructions in the download carefully.

Check the images out below as to what it looks like once installed. The hack "counts file size", can add "multiple ed2k links" in one go. All ed2k links opened in the "same browser window" (no more blank browser windows left open) when clicking ed2k links posted on your board. It also shows the proper "ed2k file" link file name. I've also validated the code so it's W3C and CSS valid.




What are ed2k links?

eD2k links are downloads that are advertised in file sharing programs like eMule:www.emule.net.

To download the ed2k links, you "must" have an ed2k link client program installed like the above. What this hack does is it lets you search programs like eMule for files being shared over the ed2k network. Giving you the option to copy and paste the ed2k link on your forum. When clicked by a person visiting your board, who has an ed2k link client program installed like eMule. The link will be added to his download list in emule, it will also start the program automatically for him if he has it configured to take ed2k links while the program is not running.


Features & Notes:

[1] W3C & CSS Valid
[2] All templates are cached in the plug-in
[3] Only one PHP file edit is required, (No vBulletin code is changed)
[4] ed2k links can be added singly or multiply
[5] All ed2k links open in the same browser window (no more blank pages to close)
[6] File sizes are shown and calculated
[7] ed2k link names are displayed correctly
[8] Uses a box to contain all the ed2k links in neat
[9] Links also get displayed and work correctly in Printthread

Feature Plans
"CUSTOM TAG" feature planned, were all ed2k links posted will contain a custom tag of your choice. Like adding your site address for example to the ed2k file name. Which would mean your site would be advertised for free in every ed2k link added to eMule.

PLEASE CLICK: INSTALL
if you use the hack.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #52  
Old 01-06-2007, 07:26 AM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

uups
where you find your picture saying "Anzahl der Zeichen bevor ein Zeilenumbruch erfolgt", that's where you have to change the value to Zero (0 instead of the 50 that's in your picture) to avoid automated text-wrapping.

'sid
Reply With Quote
  #53  
Old 01-09-2007, 07:55 PM
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Posts: 548
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Look for this setting and change it to "0". This setting has to be set to "0", otherwise spaces will be inserted into your ed2k links and (they won't work).

As a side note, has anybody looked at the code and figured out, why when you "Rebuild Post Cache" in the admin settings, all the ed2k links vanish from the threads there posted in. And will only come back if you edit the threads and save them again - to get them to reappear again.

Check the image out.
Reply With Quote
  #54  
Old 01-14-2007, 03:28 PM
itsid itsid is offline
 
Join Date: Oct 2006
Posts: 253
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

well...
looks like the javascript will cease to work if post is trying to be rebuild,
the output is generated within the browser (that's what javascript is made for)
so it can't be called by the server itself afaik...

No javascript no output... that's it,
If a post is called from cache all bbcodes are stripped out or will be ignored;
so I think you'll have to disable cache

btw, you don't have to edit the posts.. you'll just have to wait that the posts are cleared from cache then they'll be rebuild by the users browser.

to be honest, i just took a very short look at the xml... maybe I'm wrong

'sid

ps that was a screenshot of his very own board, so I think he already understood
Reply With Quote
  #55  
Old 02-08-2007, 06:30 AM
CarpHunter CarpHunter is offline
 
Join Date: Apr 2005
Location: Netherlands
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

First of sorry for this bump.

I was looking for something like this so I downloaded and installed it.
All works fine.

The problem some of you have with links dissapearing, I havent had em (also rebuilded cache and stuff like you said)

Als o took a look at the code.
The javascript is there for a couple of reasons:

The download function is for the downloading action (duh).
Then there is the checkAll. This only makes that the bottom checkbox, when activated, checks or unchecks all other boxes.

Last but not least there are the size functions. The are there to update the total amount when you check/uncheck items.

The rest of the table is created in the code itself (the code you added in the bbparse file).
The functions made in there are called on by hook (havent looked where the hook is at but he seems to be ok because it functions normally)

First of I thought that the problem was located in the caching of the templates but after a check on the call it appears that also this is done correctly.

I will be running this code for a test period to just make sure everything is ok.

If ppl still experience problems like this pls let us know so that we can find a sollution for it.
It would be a shame to let this nice hack go to waste.

[EDIT]
Just reloaded cache and idd they disapeared.
Does anyone have a clue yet how this is possible????
Reply With Quote
  #56  
Old 03-03-2007, 10:10 AM
Roonie Roonie is offline
 
Join Date: Dec 2005
Location: Sevilla
Posts: 38
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This Hack doesn´t work with vb 3.6.5
Reply With Quote
  #57  
Old 03-09-2007, 01:03 AM
CarpHunter CarpHunter is offline
 
Join Date: Apr 2005
Location: Netherlands
Posts: 42
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hack works fine under vb 3.6.5. You need to do all file edits over again.

I made an alteration in the plugin to go around "the max char before wordwrap" and included in this post. Just overwrite the old plugin with this one. Now it won't add spaces in long urls even if you have a max chars set in the options.

I also have an update on the disapear issue.
I've searched all over the vB forums and found that it has something to do with the "postparsed" table in the database.
Because vB automaticly caches all tags standard in vB and excludes none standard bbcodes.
I also found some workarounds to exclude certain bbcode from the cache rebuild but none seem to work.

Maybe someone here knows how we can work around this??
Reply With Quote
  #58  
Old 04-01-2007, 07:48 AM
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Posts: 548
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you say there are certain vB codes in the database that are listed as postparsed to cache. Could you not add a query to the database to include the ed2k vbcode so that is parsed also to the list in the database by running a query to it. It may also mean having to edit the right php file also to add the ed2k code to the list of other vbcodes that are parsed as well.

Would that not do it?
Reply With Quote
  #59  
Old 04-05-2007, 07:24 PM
DiSpy's Avatar
DiSpy DiSpy is offline
 
Join Date: Feb 2007
Location: South Florida!!
Posts: 107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I hope you guys can find a workaround for this... I'm sorry I can't help, tried to figure it out and failed.
Reply With Quote
  #60  
Old 04-09-2007, 09:44 AM
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Posts: 548
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CarpHunter View Post
Hack works fine under vb 3.6.5. You need to do all file edits over again.

I made an alteration in the plugin to go around "the max char before wordwrap" and included in this post. Just overwrite the old plugin with this one. Now it won't add spaces in long urls even if you have a max chars set in the options.
The code you added to the XML file to disable Smiles and Wordwrap causes errors with the class_bbcode.php file when you view a thread. You get an error message displayed like this below: (This error is not shown if you install the plug-in without your changes made to the XML plug-in file).

Quote:
Parse error: syntax error, unexpected ')' in /home/xxxx/public_html/forum/includes/class_bbcode.php(2413) : eval()'d code on line 8
All I can think is you must have to also add some extra code to the class_bbcode.php file when you do the ed2k edits in it. To compansate for the changes you made in the XML plug-in regarding smiles being disabled and wordwrap
Reply With Quote
  #61  
Old 04-16-2007, 04:22 PM
MRGTB MRGTB is offline
 
Join Date: Dec 2004
Posts: 548
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just an update here:

I have fixed some problems and also added a few more features to make the hack a little better. Here are a list of things I have changed:

[1] I have now added instructions on how to create a "Template Group", so your two ed2k templates added, are situated in there very own ED2K Template group.

[2] Instructions have also been added, so you can display the ed2k link editor icon image in both the "Quick Edit" and "Quick Reply" pages on your forum. No need to go "Advanced" anymore to use the ed2k link editor icon.

[3] The "Word Wrap" and "Disable Smilies" has been fixed now in the XML code, there was an error in the code that CarpHunter posted earlier in this thread. That's been fixed now and was a simple mistake he made). Meaning there is no need to change the "Word Wrap" settings in the AdminCP options anymore. The instructions in the download have been edited to reflect this, along with some other changes as well. Smilie code will also not effect ed2k links posted now. If an ed2k link has a smilies code in it by accident like:

Code:
:)
for example. It won't be displayed in the ed2k link as a smilie image. While still working as normal in your threads.

[4] I've also changed the link at the bottom of the ed2k link box, so it now leads to eMules own site, instead of ed2k.biz. And the text before the link explains they need eMule installed to download the links (quick reminder with a link for them).


Unfortunately, I've not had the time so far to look into the cache problem posted in a few threads above above. I'll take a look at this later (but I'm not hopeful I can fix this problem). Would be nice if some clever coder could also try and find a solution to that problem to stop all ed2k link disappearing when you re-build the cache in the AdminCP.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:41 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.11309 seconds
  • Memory Usage 2,315KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)bbcode_code
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete