Code: Select all
posting.php
Code: Select all
if ( $userdata['user_posts'] < $vote_posts && $userdata['user_level'] != (MOD || ADMIN) )
Code: Select all
if ( $userdata['user_posts'] < $vote_posts && $userdata['user_level'] == USER )
Code: Select all
## 2006-12-27 - Version 1.0.3
## - Removed backticks from SQL
## - Changed the first FIND action
## - Reduced value of the <input>'s maxlength attribute
## - All changes suggested by the MOD team, thanks
## - How about MODx?
Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/admin/board_config_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td class="row2"><input class="post" type="text" maxlength="255" size="3" name="vote_min_posts" value="{VOTE_MIN_POSTS}" /></td>
#
#-----[ REPLACE WITH ]------------------------------------------
#
<td class="row2"><input class="post" type="text" maxlength="10" size="3" name="vote_min_posts" value="{VOTE_MIN_POSTS}" /></td>
Code: Select all
SQL
INSERT INTO phpbb_config ( config_name , config_value ) VALUES ('vote_min_posts', '10');
Lektor wrote:MOD Description: Users need to have enough posts before they can Vote in a poll. This is useful if you don't want people registering accounts just for this. This MOD is based on a request by kber.
What about the users who have a few messages but they've registered enough time ago.