PDA

View Full Version : Require X Uploads Before Allowing Download


Zero Tolerance
02-26-2005, 10:00 PM
This modification will allow administrators to set a limit for each usergroup, this limit is the number of uploads a user must have in order to download, otherwise an error message is returned. Very simple, yet effective, and good to stop members joining and just leeching all of your files.

Files To Edit: 2
Phrases To Add: 1
Templates To Add: 0
Templates To Modify: 0
Queries To Run: 1

Estimated Installation Time: 5 - 10 Minutes

Update:
Error message now shows how many files you need to upload before you can download, and how many files you have currently uploaded.
To update, edit the phrase added with the new text specified in the installation, and re-do the attachments.php file edit :)

Enjoy :)

- Zero Tolerance

Guest190829
02-27-2005, 10:55 PM
This is just what need, Thanks Zero!

/me clicks install

Joe Pimms
02-28-2005, 02:28 AM
oh thanks so much bro your the man.... just one thing in the vbphrase can there be a part where it tells the member who is trying to download the attachment that they have X amount of uploads before they can download and in the X amount it will display the amount left they need to upload ?

Polo
02-28-2005, 02:33 AM
excellent hack... I will not use it, but i'm sure that his will be really helpful to many... thanks for sharing Zero T.

Zero Tolerance
02-28-2005, 02:54 AM
oh thanks so much bro your the man.... just one thing in the vbphrase can there be a part where it tells the member who is trying to download the attachment that they have X amount of uploads before they can download and in the X amount it will display the amount left they need to upload ?
Updated, read my first post :)

excellent hack... I will not use it, but i'm sure that his will be really helpful to many... thanks for sharing Zero T.

Thanks =)

- Zero Tolerance

Joe Pimms
02-28-2005, 03:04 AM
works so good now thanks so much bro

DutchyNL
02-28-2005, 05:36 AM
Nice work gone try this one out, greath work Zero Tolerance

Deaths
02-28-2005, 05:47 AM
Great, this is just what I needed!

/me clicks install

Guest190829
02-28-2005, 05:51 AM
If you keep releasing hacks at this rate, you'll be a master coder in no time ;)

DataVampire
03-01-2005, 08:54 PM
Where do we edit the X to set the setting?

Zero Tolerance
03-01-2005, 09:05 PM
When you manage a usergroup, the setting is displayed, this allows you to only set limits for usergroups of your choice :)

- Zero Tolerance

LEAD_WEIGHT
03-12-2005, 12:32 AM
How do u do this part, the other steps are easier to do but I do not think I see this in my Admin.c/panel or at server area.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
STEP 1: - Run A DB Query
Run this query via your ACP, change "vb3_" to your table prefix.

------------------------
alter table vb3_usergroup
add `attachrequire` int(15) not null default '0';
------------------------
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Got it Config has to be edit back & forth

Hornstar
09-11-2005, 01:18 PM
Just wondering to anyone who has used this....Does this hack seem to coz any extra spam on the site with members posting fake and old stuff just so they can download files?

I am going to install this a little later on, once my site grows bigger, and set it to just one upload...I think that will make less leachers with minimal spam...What do you guys think

Thanks http://www.gamerzneeds.net/forums