Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vB3 Unanswered Threads Hack v1.3 Details »»
vB3 Unanswered Threads Hack v1.3
Version: 1.00, by Boofo Boofo is offline
Developer Last Online: Jun 2012 Show Printable Version Email this Page

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.

Comments
  #42  
Old 04-24-2004, 04:12 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

From the install file in this thread:

Quote:
For each forum individually, add the following code to the templates below wherever you want it to show. (A good place is right after the forum title, if you are using an image).

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post


With an image:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
<a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid"><img src="http://www.yoursite.com/forums/images/misc/unanswered_threads.gif" border="0" alt="View Unanswered Threads"></a>
</if>


As a link:

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
<div class="smallfont">
<a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid">View Unanswered Threads</a>
</div>
</if>
And here is your Forum Tools link, since you really can't live without it.

Quote:
Forum Tools Menu (for each forum individually)

In the forumdisplay template, find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<tr><td class="vbmenu_option"><a href="forumdisplay.php?$session[sessionurl]f=$foruminfo[parentid]">$vbphrase[view_parent_forum]</a></td></tr>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
BELOW that ADD
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))"><tr><td class="vbmenu_option"><a href="search.php?do=process&replyless=1&replylimit =0&dontcache=1&forumchoice[]=$forumid">View Unanswered Threads</a></td></tr></if>
Reply With Quote
  #43  
Old 04-24-2004, 06:27 AM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow man. I was in the middle of tracking all this down and you beat me to it . Everything works like a charm. The only thing I did differently was remove all the

<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">

...stuff because I wanted this available to everyone (one of the first things I do when surfing other boards is look for zero-reply topics in hopes of finding a way to jump in; I'm probably not the only one).

Anyway, thanks a lot. Nice little hack indeed.
Reply With Quote
  #44  
Old 04-24-2004, 07:15 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did the semi-colon fix do what you wanted?
Reply With Quote
  #45  
Old 04-24-2004, 07:29 AM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Did the semi-colon fix do what you wanted?
lol, yep, it worked. Sorry to sound nitpicky on that. Like I said, it was trivial yet annoying. I'm just not quite familiar enough with the different templates yet to have tracked that down efficiently.

Thanks again.
Reply With Quote
  #46  
Old 04-24-2004, 07:37 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by welo
lol, yep, it worked. Sorry to sound nitpicky on that. Like I said, it was trivial yet annoying. I'm just not quite familiar enough with the different templates yet to have tracked that down efficiently.

Thanks again.
All I did was do a template search for Key Word(s) and found it in one of the search templates and went from there.
Reply With Quote
  #47  
Old 04-27-2004, 08:44 AM
Oblivion Knight's Avatar
Oblivion Knight Oblivion Knight is offline
 
Join Date: May 2002
Location: Sheffield, UK
Posts: 1,757
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the semi-colon fix Boofo..
Reply With Quote
  #48  
Old 04-27-2004, 03:38 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You're very welcome, sir.
Reply With Quote
  #49  
Old 05-20-2004, 05:34 PM
SHalliday's Avatar
SHalliday SHalliday is offline
 
Join Date: Jan 2002
Location: Norwalk, CT
Posts: 117
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guys, a hand here, i need some help to filter out some forums from the query, i want to open the search to all users but dont want them to see some admin/moderator specific posts.

Help appreciated
www.AllfordMustangs.com
Reply With Quote
  #50  
Old 05-20-2004, 09:43 PM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SHalliday
Guys, a hand here, i need some help to filter out some forums from the query, i want to open the search to all users but dont want them to see some admin/moderator specific posts.

Help appreciated
www.AllfordMustangs.com
The install file tells you how to have just certain forums selected.

You might want to click the install button in case there are ever any updates to this hack.
Reply With Quote
  #51  
Old 05-25-2004, 04:04 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Boofo, I just clicked install, but I've only used template changes, and did not change the search.php file. Are there any advantages to editing search.php?
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 03:55 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08359 seconds
  • Memory Usage 2,310KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete