Search found 5 matches

by Rattus Norvegicus
Fri Sep 16, 2011 9:56 pm
Forum: [3.0.x] MOD Requests
Topic: Poll Icon in search results
Replies: 1
Views: 236

Re: Poll Icon in search results

Hi Bleachh This solution worked for me (in Prosilver style): Open search.php Find: 'FORUM_TITLE' => $row['forum_name'], Add after: 'S_HAS_POLL' => ($row['poll_start']) ? true : false, Open /styles/prosilver/template/search_results.html Find (you will find 2 results, but we are looking for the last o...
by Rattus Norvegicus
Sat Apr 23, 2011 2:28 am
Forum: [3.0.x] MOD Requests
Topic: Auto lock topic
Replies: 44
Views: 26383

Re: Auto lock topic

Never mind... This code does the job :mrgreen: $excluded_forum_ids = array(149); if (in_array($forum_id, $excluded_forum_ids)) { $sql = 'SELECT topic_last_post_time FROM ' . TOPICS_TABLE . ' WHERE topic_id = ' . $topic_id; $result = $db->sql_query_limit($sql, 1); if ($row = $db->sql_fetchrow($result...
by Rattus Norvegicus
Fri Apr 22, 2011 9:33 pm
Forum: [3.0.x] MOD Requests
Topic: Auto lock topic
Replies: 44
Views: 26383

Re: Auto lock topic

I have been looking at the codes in this topic, and now i'm trying to make my own (I'm a complete newbie). My goal is to auto lock topics older than 90 days when users enters them, and only in a few specific forums. For that, I have put this code in the viewtopic.php: $excluded_forum_ids = array(149...
by Rattus Norvegicus
Thu Apr 21, 2011 11:13 am
Forum: [3.0.x] MOD Requests
Topic: Auto lock for old posts
Replies: 16
Views: 8254

Re: Auto lock for old posts

Thank you very much! If I would like to run it for test after 5 minutes, do I need to change the code to this - $lock=time()-300*1; $sql="update ".TOPICS_TABLE." set topic_status='".ITEM_LOCKED."' where topic_last_post_time<".$lock; $db->sql_query($sql); I have used this cron job for a few months n...
by Rattus Norvegicus
Wed Apr 20, 2011 9:18 pm
Forum: [3.0.x] MODs in Development
Topic: [Beta] Ward of Necromancy 0.1.0
Replies: 19
Views: 6112

Re: [Beta] Ward of Necromancy 0.1.0

Has the development of the mod stopped?

I've just installed it on my board, but sadly it doesn't actualy lock the expired topics, so mods like prime quick reply still show in the bottom and the topics looks like they're open.

Go to advanced search