Torrent Trader Joomla Package

April 8th, 2009 | Categories: Downloads, Joomla, Software | Tags: , , ,

Current Version: 1.5

This is the component and module that came from the original Torrent Tracker component. Because that component was not actually an ‘Torrent Tracker’, I have renamed the project, and recreated the component from scratch. This version is much faster, looks better, is easier to support, and I have also created an script to add to your crontab (cron job) to update ten random torrents at a time. You can then schedule the cron job to run at any time, or every so many minutes, or hours and keep the pages up-to-date with torrent statistics.

You can find both the component, module, and cron script in the zip file below. Please note that this is still beta software, I have it working on two of my own servers, and others are testing it.

If you would like to see this component in action, please create an account, and login. On your top right you will see Torrents. Please do not upload warez, you may upload Open Source, or Free stuff. Feel free to upload a torrent or two, and click on the stats icon for your torrent, you will see more information, and available actions.

Please note that this component will probably NOT work on shared hosting servers. This component uses fopen() for local files and remote URLs, fclose(), unlink(), curl() and more file system related actions.

Please be aware that this is BETA software for the moment. I have tried to find all possible bugs, but I am sure some exist. If you find any problems, please create an account, login to the forums, and post in the Joomla! Components section. Be descriptive about your problems, so that I may help you better and faster. Thank you.

CURRENT VERSION:

Torrent Trader 1.5 Download — All Files Included in This .ZIP

————————–
:: Note
————————–

This component was not meant, or programmed with the idea in mind that you will be allowing non-users (anonymous users) to use it. It has been programmed for USERS to login and use, and manage their own torrents.

Please be aware that I am NOT promoting piracy with this component, there are thousands of legit reasons to use Bittorrent to help the
internet and share bandwidth!

————————–
:: Requirements
————————–

1) An functioning Joomla! Installation
2) PHP & MySQL (Requirement for Joomla! anyway)
3) fopen() at least for local file (This is VERY important, as the component needs to open and read the .torrent files!)
4) curl() support (This is just as important, I have removed fopen() for URLs and use curl() now because more hosts support it!)
5) Some disk space to store the .torrent files.
6) Some database space to store the information for the files.
7) Some knowledge of graphics and html to make the component match your site better.

————————–
:: Component Installation
————————–

You should install the Torrent Trader component (com_torrenttrader.zip) as a normal Joomla! Component. After you have installed the
component, visit Torrent Trader inside the Components menu.

The top three settings are the most important.

Torrents Path: /torrents/ <- You can change this to where you want the torrents kept, the default is great as it will be easy to use for
future adjustments, and such. Remember what you put here, you will need this path for the module configuration later.

Rows Per Page: # <- How many torrents to show per page, when viewing an entire category, or the My Torrents page. Thirty (30) works
pretty good here.

Torrents to Show under each Category: # <- This limits the amount of torrents to show under each category on the FRONT PAGE COMPONENT only. You should play with this number to get what you like. Five (5) works good here.

RSS Entries: # <- This is for future versions, that will support RSS.

Language: english <- Put the filename of the language file you wish to use here, do not include the .php extension. Languages can be found in components/com_torrenttrader/languages. English is included and is defaulted.

While you are here, go ahead and make a category, or a few. When done, click Save at the bottom of the page.

————————–
:: Add Component to a Menu
————————–

Now, you should add the Torrent Trader component to a menu. Most popular is the Main Menu. When adding a component to the menu, take note of the ItemID that was automatically assigned to the item. You will need this for the module installation.

————————–
:: Module Installation
————————–

You should install the Torrent Trader module (mod_torrenttrader.zip) as a normal Joomla! Module. After you have installed the module,
visit the Site Modules page, and find Torrent Trader Upload in your module list. Click on the name to configure the module. Here are
some default values, and a brief description.

ItemID: #  <- This number should be set to the same ItemID that was assigned to the component Torrent Trader when you installed, and added the component to your menu.

Torrent Folder: /torrents/ <- This should be set to the same folder you configured in the component setup. This is where the torrents
will be stored.

Torrent File Length: 200 <- This should be a good number to start out with. This field will limit the amount of characters allowed in
the file name of the uploaded torrent. If the uploaded filename is longer then this, the upload will fail, and not be added to the
storage folder, or database.

Field Size: # <- This will set the width of the upload file field. You should play with this until the upload field looks like it fits
your site well.

Torrent File Size: 250 <- This number is multiplied by 1024 to set how large in KB the uploaded torrent file can be, anything larger
then this will fail, and not be added to the storage folder, or database.

CSS Class (Input Field): inputbox <- If you want to use CSS for customizing the module, you can enter the class for the upload     file
field to use here. Sometimes, you may wish to blank this, and save, and check the results, as they might appear better.

CSS Class (Upload Button): button <- If you want to use CSS for customizing the Upload! button, enter the class here. The default
‘button’ is a Joomla! default.

Textarea Rows for Description Field: # <- How many rows should the description field have? Play around with this, and the Cols for the
description field, so that it looks well in your site.

Textarea Cols for Description Field: # <- How many cols should the description field have? Play around with this, and the Rows for the
description field, so that it looks well in your site.

Language: english <- Put the filename of the language file you wish to use here, do not include the .php extension. Languages can be found in components/com_torrenttrader/languages. English is included and is defaulted.

Debug Mode: no <- Change to yes, to stop the module from refreshing the torrent page. When refresh is off, you will be able to see any
errors, and warnings produced by the upload, torrent parse, and database entry functions.

————————–
:: My Torrents Page
————————–

If you look around you will see no mention of a My Torrents page. This is because there is no hard coded link to it in the component or
module. If you would like to allow users to see all of the torrents they have uploaded, add a URL item to a menu, or the user menu. To
get the correct URL (because some people use SEF Components, while others do not) visit your Torrent Trader page and copy the URL. Make the URL on the menu point to that URL with the added option of ” action=mytorrents “. If you use SEF stuff, it might look like ”
action,mytorrents ” instead. This page will show all uploaded torrents by the currently logged in user.

————————–
:: Deleting Torrents
————————–

Users will be able to remove the torrents that they have uploaded under their user name. Super Administrators and Administrators will be able to remove ANY torrent from the front end. To remove a torrent, just click on the red X on the right hand side of the torrents list,
under Delete.

————————–
:: Security
————————–

It is recommended that you place an .htaccess file inside the Torrent Storage folder. This will prevent people from going to your site,
modifying the URL with /torrents/ at the end, and leeching your .torrent files. An .htaccess file can prevent this, or in your servers
main configuration file, something along the lines of Directory Listing. Please refer to your server documentation about this.

————————–
:: Feature Requests / Suggestions / Comments / Bugs
————————–

Please post all of these in the forums here on Archaic Binary, I will be able to read them and work on them when I get the time! :-)

————————–
:: Support
————————–

Because I work on this in my spare time, please ask support questions in my forums, here on Archaic Binary. Thank you.

  1. April 25th, 2009 at 08:49
    Reply | Quote | #1

    Oh man, it’s perfect! Really, it’s very good! Thank you!

  2. gringo
    May 2nd, 2009 at 18:36
    Reply | Quote | #2

    Will be developed also for Joomla 1.5? thanks

  3. May 3rd, 2009 at 00:32
    Reply | Quote | #3

    @gringo
    Sorry, at the moment I have stopped work on this software. You (or anyone) is free to take the code and modify it to work for Joomla 1.5.

    I do not even run Joomla anymore on this site, the site has become too simple.

    Again, sorry about this.

  4. gringo
    May 3rd, 2009 at 09:04
    Reply | Quote | #4

    Thanks for the quick response. :)

  5. June 24th, 2009 at 08:41
    Reply | Quote | #5

    nice one. I tried to install it but…

    * JInstaller::install: There is already a folder called ‘/var/www/vhosts/dzineit.gr/subdomains/tracker/httpdocs/administrator/components/com_torrenttrader/’. Please initially check whether:
    • the Extension is already installed
    • the file names in the XML file are spelled correctly
    • there are no XML files listed inside the extension.xml file
    • all of the files (not including XML files) are correctly listed in the extension.xml file and there are no duplicate entries
    • there is an empty folder listed from a previous installation attempt
    * Component Install: Could not copy PHP install file.

    I cant solve it… :(

  6. June 25th, 2009 at 11:25
    Reply | Quote | #6

    @nick
    First of all, remember this is unsupported with Joomla 1.5+ and it’s here for source code only.

    Make sure the folder does not exist com_torrenttrader.

    Looking at it, seems you probably have Joomla 1.5 or newer.

TOP