The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
eD2K Links Hack Details »» | |||||||||||||||||||||||||
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
|
Comments |
#22
|
||||
|
||||
To cache templates in a plugin use the cache_templates hook and this code ;
PHP Code:
|
#23
|
|||
|
|||
Quote:
|
#24
|
||||
|
||||
hey gary when i try to add a link i get this error
Fatal error: Call to undefined function: handle_ed2k_links() in /kunden/137092_81737/www.e-paylas.de/forum/includes/class_bbcode.php on line 1071 |
#25
|
|||
|
|||
check that you put the code in the class_bbcode.php file after this.
Code:
* Returns whether this parser is a WYSIWYG parser. Useful to change * behavior slightly for a WYSIWYG parser without rewriting code. * * @return bool True if it is; false otherwise */ function is_wysiwyg() { return false; } Code:
* Returns whether this parser is a WYSIWYG parser. Useful to change * behavior slightly for a WYSIWYG parser without rewriting code. * * @return bool True if it is; false otherwise */ function is_wysiwyg() { return false; } } Code:
|
#26
|
|||
|
|||
Quote:
|
#27
|
|||
|
|||
The hack has now been updated again.
All templates are "cached" now in the "plug-in", no need to edit the global.php file, instuctions have been updated in download to reflect this change. Please re-download and install the hack via the plug-in (remove the other version first). And remove all edits to your global.php file if you made any to cache templates. |
#28
|
||||
|
||||
Thanks
|
#29
|
||||
|
||||
So why, after i gave you the code have you created two cache_template plugins, and used array_merge .......
|
#30
|
|||
|
|||
Paul, not sure what you mean. You know a lot more than me and I had to look at another hack to see how they had cached the templates and followed there way. If you can do it a better way. Please feel to post the full plug-in code here with your cache template code added to do it a better way. And I will update the plug-in with your code posted.
Pretty new to this plug-in coding |
#31
|
||||
|
||||
That's not the way its done.
You create/edit plugins in your ACP and then export the product as an XML file afterwards, not try and add them directly to the XML file. If you look in your plugins for this product, you will find you now have two associated with the cache_templates hook. Delete one, edit the other to contain the two lines of code I gave you, and then re-export it. |
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|