Quote:
Originally Posted by RS_Jelle
You could edit the downloads_file template and add something like this:
HTML Code:
<tr>
<td class="alt1">Direct file link:</td>
<td class="alt2" colspan="3" valign="middle" align="left"><input type="text" class="bginput" name="directlink" size="50" value="<if condition="$file['link']">{$directlink}<else />http://www.yoursite.com/downloads/{$directlink}</if>" /></td>
</tr>
after:
HTML Code:
<tr>
<td class="alt1">{$vbphrase['ecdownloads_downloads']}:</td>
<td class="alt2" colspan="3" valign="middle" align="left">{$file['downloads']}</td>
</tr>
Change http://www.yoursite.com/downloads/ to your actual site/downloads folder url. Note that hotlinking can be problematic (everyone can link to the content on your server, so they are consuming your bandwidth).
Finally open downloads.php and find the second instance of:
PHP Code:
$downloads = vb_number_format($file['downloads']);
Add the following on the next line:
PHP Code:
$directlink = htmlspecialchars_uni($file['url']);
This is necessary for protection against an XSS security issue.
|
Thanks

I do have one issue with it though if you wouldn't mind taking a peek, I can set up an account for you with access to it. It's just showing up as "http://www.mysite.net/forum/downloads/" instead of "http://www.hostileint.net/forum/downloads/filename.ext" though.