- 1 Ağu 2007
- 5,470
- 41
Açıklama : Adminlerin yazdığı tek bir mesajla topic otomatik kilitlenir..Örnek olarak : " -kilitlendi- " yazdığınız taktirde , topic kilitlenir..
Lütfen Dikkat : Mod bu haliyle -kilitlendi- yazıldığında çalışmaktadır..Yazının yerini bulup dilediğinizce değiştirebilirsiniz..
Lütfen Dikkat : Mod bu haliyle -kilitlendi- yazıldığında çalışmaktadır..Yazının yerini bulup dilediğinizce değiştirebilirsiniz..
Kod:
##############################################################
## MOD Title: Close Topic with Post
## MOD Author: BLooDLusT < TurkHackTeam> (BLooD) [url]https://tik.lat/0EL29[/url]
## 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: [url]http://www.phpbb.com/mods/[/url] 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: [url]http://www.phpbb.com/mods/[/url]
##############################################################
## 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