Do Not Bump and Last Poster


  -----  
Author Message

WileCoyote
Member

Mon Oct 09, 2006 11:32 am   Post subject: Do Not Bump and Last Poster
Hi Thoul, thanks for your great mod. It works like a charm. But i would prefer that also the last poster could not bump too. Is it possible to make this change in posting.php?

rgds
WileCoyote
 

Thoul
Administrator

Mon Oct 09, 2006 2:26 pm   Post subject: re: Do Not Bump and Last Poster
Sure, this should do it:

Code:

#
#-----[ OPEN ]--------------------------------------
#
posting.php

#
#-----[ FIND ]--------------------------------------
#

   if ( $mode == 'reply' && !$is_auth['auth_mod'] && $userdata['user_id'] == $post_info['topic_poster'] && $userdata['user_id'] != ANONYMOUS && !$post_info['allow_bump'] )

#
#-----[ REPLACE WITH ]--------------------------------------
#

   if ( $mode == 'reply' && !$is_auth['auth_mod'] && ($userdata['user_id'] == $post_info['topic_poster'] || $userdata['user_id'] == $post_info['last_poster_id']) && $userdata['user_id'] != ANONYMOUS && !$post_info['allow_bump'] )

#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
 

Page 1 of 1
Display posts from previous: