Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Current version:
0.43
About It:
Get it:
Rate it:
  • Helpful?
  • 2 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

smd_remote_file

NOTE: v0.4 is for TXP v4.0.6 and upward ONLY

Handle remote files on file sharing web sites such as fileden.com from within TextPattern’s Files tab. Insanely useful for offering media downloads that would otherwise consume a lot of your own server’s bandwidth.

Adds a single Upload URL field to the Files tab. From then on you can treat your remote URL as if it was in TXP; give it a description, category, status, etc. The download counters work for remote files too.

You can use file_download_list and the standard ‘files’ form to generate lists of downloads; both local and remote. If you upload the same file to more than one remote host, you can associate them with the same local file automatically. Without any mods to the core, file_download_link will then load-balance and randomly choose one of these files from the web each time a visitor downloads the file.

For finer (non-random) control over which download to choose, use tag smd_file_download_link as a direct replacement for the standard file_download_link. Adds smd_file_download_name as a direct replacement for file_download_name if you wish.

Also adds smd_file_download_image to help with assigning a related image to a download.

Many, many thanks to Ruud van Melick who put me on the right track towards creating this plugin. Genius.

Article Request Count:
Keywords/tags:
Initially released:
12th Nov 2007
Posted here:
12 Nov 2007

You know you want to visit the Archives.
Published with Textpattern