well in your newthread.template you will find lines like
<input type="checkbox" name="blabla"....>
just copy one of these lines and change the value after name into a hasdonesearch varname.
then in newthread.php you find this:
PHP Code:
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$forumid','1','0','".addslashes($postusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$iconid','$visible','$attachcount')");
$threadid=$DB_site->insert_id();
change it to:
PHP Code:
$DB_site->query("INSERT INTO thread (threadid,title,lastpost,forumid,open,replycount,postusername,postuserid,lastposter,dateline,iconid,visible,attach,hasdonesearch) VALUES (NULL,'".addslashes(htmlspecialchars($subject))."','".time()."','$forumid','1','0','".addslashes($postusername)."','$bbuserinfo[userid]','".addslashes($postusername)."','".time()."','$iconid','$visible','$attachcount','$hasdonesearch')");
$threadid=$DB_site->insert_id();
then add a field to thread table via phpmyadmin called hasdonesearch (short int would be enough) default value 0.
so whenever a user clicks on hasdonesearch this value would be 1 and you can use it for example in showthread now..