MUST HAVE FTP ACCESS
##############################################################
## MOD Title: Minimum posts to download attachment
## MOD Author: kber < webmaster@phpbbegypt.com > (kber) http://www.phpbbegypt.com
## MOD Description: This MOD Once installed Requires a Minimum posts to enable download attachment
## MOD Version: 1.0.0
## PHPBB versions: 3.0.x
## Installation Level: (Easy)
## Installation Time: 5 Minute
## Files To Edit: root/download/file.php
## language/en/viewtopic.php
## Included Files:
## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## simple and east way to increase your board post :)
##############################################################
## MOD History:
## 2007-12-11- virsion 1.1.0
## - first releaed
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
root/download/file.php
#
#-----[ FIND ]------------------------------------------
#
if ((!$attachment['in_message'] && !$config['allow_attachments']) || ($attachment['in_message'] && !$config['allow_pm_attach']))
{
trigger_error('ATTACHMENT_FUNCTIONALITY_DISABLED');
}
#
#-----[ AFTER, ADD ]------------------------------------------
# note : you may change( 10 ) to whatever you want
if ($user->data['user_posts'] < 10&& (!$auth->acl_get('a_')) )
{
trigger_error('ATTACHMENT_MINI_POSTS');
}
#
#-----[ OPEN ]------------------------------------------
#
language/en/viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
'ATTACHMENT_FUNCTIONALITY_DISABLED' => 'The attachments feature has been disabled.',
#
#-----[ AFTER, ADD ]------------------------------------------
# note : you may change( 10 ) to whatever you want
'ATTACHMENT_MINI_POSTS' => 'You need to make 10 posts before you are able to download files.',
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
