vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Require X Uploads Before Allowing Download (https://vborg.vbsupport.ru/showthread.php?t=77165)

Zero Tolerance 02-26-2005 10:00 PM

Require X Uploads Before Allowing Download
 
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

Quote:

Originally Posted by Joe Pimms
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 :)

Quote:

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


All times are GMT. The time now is 02:46 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.00970 seconds
  • Memory Usage 1,733KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (13)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete