############################################################## ## MOD Title: Moderator Tools on Viewforum ## MOD Author: eviL3 < evil@phpbbmodders.org > (Igor Wiedler) http://phpbbmodders.org ## MOD Author: Afterlife(69) < afterlife_69.hotmail.com > (Dean Newman) http://www.ugboards.com/ ## MOD Description: This will add the standard moderator tools to authorized users on the right of the topic title as a floating div. ## MOD Version: 1.2.0 ## ## Installation Level: Easy ## Installation Time: 3 minutes ## Files To Edit: viewforum.php, ## templates/subSilver/viewforum_body.tpl ## ## Included Files: N/A ## ## License: http://opensource.org/licenses/gpl-license.php GNU 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: ## This was an old mod that i recovered out of boredom. (Afterlife) ## ############################################################## ## MOD History: ## ## 2006-07-28 - Version 1.0.0 ## - Released. ## ## 2006-10-10 - Version 1.1.0 ## - Overtaken by eviL ## - Added an modcp extension addon ## ## 2006-10-12 - Version 1.2.0 ## - Added some nice js stuff ;P ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]------------------------------------------ # viewforum.php # #-----[ FIND ]------------------------------------------ # # $row_class = ( !($i % 2) ) ? $theme['td_class1'] : $theme['td_class2']; # #-----[ AFTER, ADD ]------------------------------------------ # /** * Moderator Tools on Viewforum * @ Author : (1) Dean Newman * @ Author : (2) eviL3 */ /* --- ADD --- */ $topic_mod = ''; if ( $is_auth['auth_mod'] ) { $topic_mod .= '
'; $topic_mod .= ''; $topic_mod .= "' . $lang['Delete_topic'] . ' '; $topic_mod .= "' . $lang['Move_topic'] . ' '; $topic_mod .= ( $topic_rowset[$i]['topic_status'] == TOPIC_UNLOCKED ) ? "' . $lang['Lock_topic'] . ' ' : "' . $lang['Unlock_topic'] . ' '; $topic_mod .= "' . $lang['Split_topic'] . ' '; $topic_mod .= ''; $topic_mod .= '«'; $topic_mod .= '
'; } /* --- END --- */ # #-----[ FIND ]------------------------------------------ # 'LAST_POST_IMG' => $last_post_url, # #-----[ AFTER, ADD ]------------------------------------------ # /** * Moderator Tools on Viewforum * @ Author : (1) Dean Newman * @ Author : (2) eviL3 */ /* --- ADD --- */ 'TOPIC_MOD' => $topic_mod, /* --- END --- */ # #-----[ OPEN ]------------------------------------------ # templates/subSilver/viewforum_body.tpl # #-----[ FIND ]------------------------------------------ #
# #-----[ FIND ]------------------------------------------ # # #-----[ IN-LINE FIND ]------------------------------------------ # # #-----[ IN-LINE AFTER, ADD ]------------------------------------------ # {topicrow.TOPIC_MOD} # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM