Locking topics in trade section

KaiReborn

Youngster
Joined
May 17, 2012
Messages
1,037
Points
38
Website
theburningnotebook.tumblr.com
Seeing how some people are stupid and won't bother checking dates posts are made or the last time the original post was edited (or both), I'd like to suggest topics in trade section to be automatically locked after a certain time of inactivity (2-3 months) in order to avoid necroposting
 

Jinga

New Member
Joined
May 10, 2012
Messages
463
Points
16
+1, many people are stupid and don't even bother to look the time last post (especially in trades).
 

Jinji

PWO's Resident Gengar
Staff member
Administrator
Joined
Aug 15, 2011
Messages
7,421
Points
113
Website
jinji.gamescodex.net
Believe me, you guys would not be the first to ask for this. Even we Staff want it. But phpBB does not by default support an "auto-lock" feature.
 

Lutalica

New Member
Joined
Dec 16, 2012
Messages
142
Points
16
Ask Nikola, he did that on his froum. It needs to be coded though
 

Nikola

Youngster
Joined
Jan 8, 2012
Messages
1,762
Points
36
That's simple. You want to target certain forum ID and apply the code something like this below where before you need to determinate the value such as days before topic gets locked.
Code:
$sql = 'UPDATE ' . topics_tabel. "
         SET topic_status = 1
         WHERE topic_id = $topic_id";
      $db->sql_query($sql);
      
      add_log('mod', $forum_id, $topic_id, 'LOG_' . 'LOCK', $topic_titel);
      trigger_error('This thread is older than XX days, It's about to get locked. Please create your own topic and do not revive dead topics.');
   }
}

- This system can be applied on many ways such as "Shop" forums. You may want to give the ability to OP only to bypass the lock you are adding if time ran out, given that you don't want many duped topics especially in shop forum and so on.
 
Top