|
#1
|
|||
|
|||
Forums..
So i added to my forums locked reason and unlock reason... when i lock topic it posts new post - And there writes reason and who locked topic....
But i want to ask you how to do this- When i unlock topic the post that was posted with reason why locked automaticly removed ? what code i need to put? Heres the code - Code:
///// Add reason to locked code - TBDev - Dokty ///// if ($action == "setlocked") { $topicid = 0 + $_POST["topicid"]; if (!$topicid || get_user_class() < UC_MODERATOR) die; $res2345 = mysql_query("SELECT locked FROM topics WHERE id = " . $topicid) or sqlerr(__FILE__, __LINE__); if (mysql_num_rows($res2345) != 1) die("Error - No topic with this ID."); $arr2345 = mysql_fetch_assoc($res2345); $locked = sqlesc($_POST["locked"]); mysql_query("UPDATE topics SET locked=$locked WHERE id=$topicid") or sqlerr(__FILE__, __LINE__); if (($locked != $arr2345["locked"]) && ($_POST["locked"] == "yes")) { $body = sqlesc(" Sorry my english is terrible :D |
#2
|
|||
|
|||
so when u unlock the topic u want the
Topic Locked by ".$CURUSER['username']."\nReason: ".$_POST["lockreason"].". post to be removed automatically? |
#3
|
|||
|
|||
Yap that is what i want :)
Bump: I thought that in this forum is wery helpful peaople... Great coders why don't you help me Bump: Thanks for no help :sorry: |
Tags |
forums |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[TT 2.x] Forums | adrian21 | Mods & Themes | 2 | 26th October 2014 20:03 |
Forums Not Working | pwnage | BT.Manager (phpMyBitTorrent) | 1 | 1st February 2010 05:06 |
forums.php | ocha | Yuna Scatari Edition (YSE) | 2 | 26th April 2009 21:06 |
Internal forums | ocha | Torrent Strike | 1 | 29th March 2009 20:43 |
TS 4.3 Forums | Aeron | Template Shares | 10 | 31st May 2008 12:41 |