UBB.Dev
Posted By: JoshPet Finished-[6.2-6.3-6.4] Download Restriction 1.0 - 06/14/2003 10:29 AM
Mod Name / Version: Download Restriction 1.0

Description: Very simple mod which requires users to be logged in to download files. This allows you to have forums visible to unregistered users (for searchability and search engine spiders) but still requires registration for downloads. <img src="/forum/images/graemlins/wink.gif" alt="" />

Working Under: UBB.Threads 6.2-6.3

Mod Status: Finished

Any pre-requisites: none

Author(s): JoshPet

Date: 06/14/03

Credits: Needed for ThreadsDev

Files Altered: downloads.php

New Files: none

Database Altered: none

Info/Instructions: Very easy mod.

Disclaimer: Please backup every file that you intend to modify.
If the modification modifies the database, it's a good idea to backup your database before doing so.

Note: If you modify your UBB.Threads code, you may be giving up your right for "official" support from Infopop.If you need official support, you'll need to restore unmodified files.




Attached File
Thx, Josh. Very Useful!
Posted By: Ian_W Re: Finished-[6.2-6.3] Download Restriction 1.0 - 06/14/2003 2:20 PM
Nah - far too complicated
I agree, probably one of the hardest hacks to date Thanks Josh, considering I have an MP3 download site this will be very handy and save tons on bandwidth.
Posted By: AKD96 Re: Finished-[6.2-6.3] Download Restriction 1.0 - 07/10/2003 4:33 AM
As usual....
he he

Yeah, you better clear the weekend if you want to install this mod. LOL
Posted By: AKD96 Re: Finished-[6.2-6.3] Download Restriction 1.0 - 07/11/2003 12:20 AM
LOL. I'm catching up on my naps to prepare myself.
Josh,
There appears to be a fault in how the link is created in printthread.php which would still allow this to be circumvented. For those concerned with this:

printthread.tmpl:

Lines 40 - 44 should be removed.

<tr>
<td class="small">
{$postrow[$i]['fileurl']}
</td>
</tr>
One thing I have noticed about this, if you use the inline hack, unregistered users can still see the image.
Yes - but the inline image hack has it's own setting so that you can prevent anonymous users from seeing the images inline in the config file.
Posted By: ericgtr Re: Finished-[6.2-6.3] Download Restriction 1.0 - 07/27/2003 12:35 AM
Doh
This one also works on 6.4!
© UBB.Developers