From 3f1c279ce31ed9e70b85c62cf4dc7e58de2ad321 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Wed, 15 Feb 2012 20:11:09 +1100 Subject: experimental post editing (for mods) --- inc/config.php | 3 +++ inc/display.php | 8 ++++++++ 2 files changed, 11 insertions(+) (limited to 'inc') diff --git a/inc/config.php b/inc/config.php index 3dd770ab..c46b4fc9 100644 --- a/inc/config.php +++ b/inc/config.php @@ -712,6 +712,7 @@ $config['mod']['link_unlock'] = '[-Lock]'; $config['mod']['link_bumplock'] = '[Sage]'; $config['mod']['link_bumpunlock'] = '[-Sage]'; + $config['mod']['link_editpost'] = '[Edit]'; $config['mod']['link_move'] = '[Move]'; // Moderator capcodes @@ -827,6 +828,8 @@ $config['mod']['bumplock'] = MOD; // View whether a thread has been bumplocked ("-1" to allow non-mods to see too) $config['mod']['view_bumplock'] = MOD; + // Edit posts (EXPERIMENTAL) + $config['mod']['editpost'] = DISABLED; // "Move" a thread to another board (EXPERIMENTAL; has some known bugs) $config['mod']['move'] = DISABLED; // Post bypass unoriginal content check on robot-enabled boards diff --git a/inc/display.php b/inc/display.php index b8a91676..f307bb91 100644 --- a/inc/display.php +++ b/inc/display.php @@ -287,6 +287,10 @@ if(!empty($this->file) && hasPermission($config['mod']['deletefile'], $board['uri'], $this->mod)) $built .= ' ' . $config['mod']['link_deletefile'] . ''; + // Edit post + if(hasPermission($config['mod']['editpost'], $board['uri'], $this->mod)) + $built .= ' ' . $config['mod']['link_editpost'] . ''; + if(!empty($built)) $built = '' . $built . ''; } @@ -399,6 +403,10 @@ if(hasPermission($config['mod']['move'], $board['uri'], $this->mod)) $built .= ' ' . $config['mod']['link_move'] . ''; + // Edit post + if(hasPermission($config['mod']['editpost'], $board['uri'], $this->mod)) + $built .= ' ' . $config['mod']['link_editpost'] . ''; + if(!empty($built)) $built = '' . $built . ''; } -- cgit v1.3