vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Attachment Download Restriction (https://vborg.vbsupport.ru/showthread.php?t=103809)

tnguy3n 12-26-2005 10:00 PM

Attachment Download Restriction
 
Author: tnguy3n
Support Site: ++++++.org

What this hack does is to disable new users with 0 posts to download attachments on the board. If the users join the board and do not post, they got to wait for 1 day (or whatever days as you assign) in order to download the attachment.

It's a simple, yet effective hack to force new users to post on your site.

Installation: 2-3 mins
Plugin: 1
New phrases: 1

##############################
# NEW PHRASE

Phrase Type: Error Messages
varname: hackdlrule
Text:
<font color=red>As of December 23, 2005, new user may not be able to download hacks or any attachment if you have 0 post and your registration is less than 1 day. You must either have one post or wait for 1 day to be able to download.</font> You currently have {1} post.

To change the download restriction, change value of 86400.

EasyTarget 12-27-2005 04:43 AM

nice idea to encourage participation.

Hornstar 12-27-2005 05:36 AM

Good idea. However spam will go up alot. What you need is for them to post and once they get the set amount that we set, Then they go in a cue, for the staff to accept once they take a look at a few of their posts to make sure there not spam. If it looks like they are just spamming then we can decline them from downloading from the site.

However I will give this a go, and see how it goes, as I do have the advanced warning system installed, anyone who spams will soon be banned anyway lol.

Nice work

pimpfelix 12-27-2005 05:38 AM

86400 to what if i want it 30 day?

tnguy3n 12-27-2005 06:08 AM

if they spam, ban them! simple as that!

for 30 days, multiply 86400 by 30 (or 3600*24*30).

sensimilla 12-27-2005 06:54 AM

Great hack, I was looking for something like that
I have been told it can be easily made trough promotion system and permissions
but thanks anyway

Snake 12-27-2005 11:16 AM

Excellent!

ahmed-samara 12-27-2005 12:06 PM

Excellent!

LincolnForums 12-27-2005 03:29 PM

Quote:

Originally Posted by hornstar1337
Good idea. However spam will go up alot. What you need is for them to post and once they get the set amount that we set, Then they go in a cue, for the staff to accept once they take a look at a few of their posts to make sure there not spam. If it looks like they are just spamming then we can decline them from downloading from the site.

However I will give this a go, and see how it goes, as I do have the advanced warning system installed, anyone who spams will soon be banned anyway lol.

Nice work

why not just have it moderate new posts for new members when they sign up, its already a vb function this way?

phonexpo 12-28-2005 09:55 PM

Can this code be edited to make it that members have to be registered 30 days and must have 10 posts ?

TIA

Robert Basil 12-29-2005 06:47 PM

This can all be done through user permissions WITHOUT a hack.

akanevsky 12-29-2005 07:01 PM

This could be done with simple usergroup promotions...

tnguy3n 01-04-2006 03:25 PM

Quote:

Originally Posted by Psionic Vision
This could be done with simple usergroup promotions...

I was aware of promotion system; however, I chose to add a few line codes (well, a plugin to be exact) rather then to add/manage an extra usergroup.

ConKien 02-22-2006 06:57 PM

Can this hack set to require last X day must have X post? Like

In the last 3 day you have to have 3 post to be able to download. You currently have {1} in the last 3 days.

bashy 02-25-2006 12:54 PM

Hi

I have installed and appears to be working well, thank you.. (clicked install)
How can i change the amoutn of posts please, i would like it set to 2 posts
and 2 days, I have changed the days already, just couldnt figure out how to
change the amount of posts?
TIA

tnguy3n 02-26-2006 06:13 PM

Open Attachment Download Restriction plugin,

Change the value of 86400 to (3600*24*2) , 86400 = 1 day

kartik786 04-15-2006 12:02 PM

Quote:

Originally Posted by bashy
Hi

I have installed and appears to be working well, thank you.. (clicked install)
How can i change the amoutn of posts please, i would like it set to 2 posts
and 2 days, I have changed the days already, just couldnt figure out how to
change the amount of posts?
TIA


Me too.. How to change the minimum number of posts required ???

Eagle Creek 05-04-2006 06:08 PM

Quote:

Phrase Type: Error Messages
I don't have that phrase type at all, hu??

board.trash 06-04-2006 12:37 AM

Quote:

Originally Posted by kartik786
Me too.. How to change the minimum number of posts required ???

same question here... we need more posts. :banana:

julia27 02-02-2007 04:02 AM

is this hack for 3.6.4 as well?
If you do want to make a promotion how? I just want whatever is the easier.


All times are GMT. The time now is 04:57 PM.

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.01079 seconds
  • Memory Usage 1,752KB
  • 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
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (20)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