Version: 1.00, by Boofo
Developer Last Online: Jun 2012
Version: 3.0.0
Rating:
Released: 03-26-2004
Last Update: Never
Installs: 40
No support by the author.
vB3 Unanswered Threads Hack
Version 1.3
(By Boofo and Kirby)
What does this hack do?
This hack will provide you with a link that will pull up all unanswered threads on your forums and also unanswered threads on a forum by forum basis. Unanswered threads are threads that have no replies to them. This is great for forums that do any kind of tech support so you can find the posts that have not been answered and respond to them.
Version information:
Version 1.0 --Initial Release
Version 1.1 --Updated to allow Admins, Super Moderators and Moderators to see the link.
Version 1.2 --Added code for Forum Tools Menu links and Navbar Quick Links.
Version 1.3 --Fixed nasty bug with the semi-colon showing up by itself for unanswered threads. Now "Unanswered Threads --" (sans quotes) will show up in place of the semi-colon if the search is for unanswered threads.
Installation overview: Files to edit: (1)
--search.php Templates to edit: (6)
--search_results
--forumdisplay
--forumhome
--forumhome_forumbit_level1_post
--forumhome_forumbit_level2_post
--navbar
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
You can use the forumchoice option to limit your searches to certain forum(s). Not sure what you mean by #2 and #3.
Number 3 could be done by wrapping the link in forum permission tags.
As far as porting this, I saw no reason to do it as you can now do it via links in 3.5 (I think). I will look into it and see if it would be worth porting to 3.5
So, basically, the code you are using here is for excluding forums only, right? If you don't want to exclude any forums, then we don't need any plug-ins at all. Or am I missing something (like I usually do)?
Quote:
Originally Posted by -=Sniper=-
Boofo; I just had a go at doing this for vb 3.5 and it worked
add a new plugin in the hook: search_process_start
use this code, very little change in the code.
PHP Code:
if ($exclude) { $zzzz_notforumchoice = ""; $zzzz_excludelist = explode(',', $exclude); foreach ($zzzz_excludelist AS $zzzz_key => $zzzz_excludeid) { $zzzz_notforumchoice .= intval($zzzz_excludeid).","; } $zzzz_notforumchoice = substr($zzzz_notforumchoice,0,-1); if ($showposts) { $post_query_logic[] = "thread.forumid NOT IN ($zzzz_notforumchoice)"; } else { $thread_query_logic[] = "thread.forumid NOT IN ($zzzz_notforumchoice)"; } }
then use exclude e.g. search.php?do=process&replyless=1&replylimit=0&day s=7&dontcache=1&searchdate=7&exclude=22,70,71,72
where the numbers are the forums you want to exclude.