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?


All times are GMT. The time now is 12:34 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.01165 seconds
  • Memory Usage 1,728KB
  • 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)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete