Lütfen Dikkat : Mod bu haliyle -kilitlendi- yazıldığında çalışmaktadır..Yazının yerini bulup dilediğinizce değiştirebilirsiniz..
Kod: Tümünü seç
##############################################################
## MOD Title: Close Topic with Post
## MOD Author: fishgod < fishgod@drugstar3.de > (Michael Wahlen) http://www.drugstar3.de
## MOD Description: Close a Topic when you write "-close-" in the posting-text while having admin-rights
## MOD Version: 1.0.0
##
## Installation Level: easy
## Installation Time: 1 Minutes
## Files To Edit: (1) functions_post.php
## Included Files: n/a
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
## testet on phpBB 2.0.8a
##
##############################################################
## MOD History:
##
## 2004-06-17 - Version 1.0.0
## - Initial Release :)
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
includes/functions_post.php
#
#-----[ FIND ]------------------------------------------
#
//
// Add poll
//
#
#-----[ BEFORE, ADD ]-----------------------------------
#
// close_topic_with_text_mod by fishgod start
if($userdata['user_level'] == ADMIN)
{
if(strstr($post_message, "-kilitlendi-"))
{
$sql = "UPDATE " . TOPICS_TABLE . "
SET topic_status = " . TOPIC_LOCKED . "
WHERE topic_id = $topic_id
AND forum_id = $forum_id";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not update topics table', '', __LINE__, __FILE__, $sql);
}
};
};
// close_topic_with_text_mod by fishgod end
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------
#
# EoM