############################################################## ## MOD Title: Minimum posts before new topic ## MOD Author: expanoncolin < colin@experimentalistsanonymous.com > (Colin Raffel) http://www.experimentalistsanonymous.com ## MOD Description: Users need to have enough posts before they can ## create a new topic. This prevents spam bots from registering ## posting right away. ## ## MOD Version: 1.0.0 ## ## Installation Level: Easy ## Installation Time: 5 Minutes ## Files To Edit: posting.php ## admin/admin_board.php ## templates/subSilver/admin/board_config_body.tpl ## language/lang_english/lang_admin.php ## language/lang_english/lang_main.php ## ## Included Files: n/a ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## Author Notes: ## Change "You need %s posts to create a new topic." to a message of your choice. ## Thanks to eVil3 for the min posts before vote mod this one is based on. ## ############################################################## ## MOD History: ## ## 2006-11-19 - Version 0.1.0 ## - First Attempt :) ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ SQL ]------------------------------------------- # INSERT INTO `phpbb_config` ( `config_name` , `config_value` ) VALUES ('topic_min_posts', '10'); # #-----[ OPEN ]------------------------------------------ # posting.php # #-----[ FIND ]------------------------------------------ # else if ( $mode != 'newtopic' && $post_info['topic_status'] == TOPIC_LOCKED && !$is_auth['auth_mod']) { message_die(GENERAL_MESSAGE, $lang['Topic_locked']); } # #-----[ AFTER, ADD ]------------------------------------------ # // Minimum posts before New Topic // Check if user has enough posts $topic_posts = $board_config['topic_min_posts']; if ( $mode == 'newtopic' && $userdata['user_posts'] < $topic_posts && $userdata['user_level'] != (MOD || ADMIN) ) { message_die(GENERAL_MESSAGE, sprintf($lang['Topic_min_posts_needed'], $topic_posts)); } # #-----[ OPEN ]------------------------------------------ # admin/admin_board.php # #-----[ FIND ]------------------------------------------ # "L_SYSTEM_TIMEZONE" => $lang['System_timezone'], # #-----[ AFTER, ADD ]------------------------------------------ # // Minimum posts before Vote "L_TOPIC_MIN_POSTS" => $lang['Topic_min_posts'], # #-----[ FIND ]------------------------------------------ # "TIMEZONE_SELECT" => $timezone_select, # #-----[ AFTER, ADD ]------------------------------------------ # // Minimum posts before New Topic "TOPIC_MIN_POSTS" => $new['topic_min_posts'], # #-----[ OPEN ]------------------------------------------ # templates/subSilver/admin/board_config_body.tpl # #-----[ FIND ]------------------------------------------ #