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
  #32  
Old 04-02-2004, 06:47 AM
gldtn gldtn is offline
 
Join Date: Apr 2003
Location: US
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Right now it is set up for Admins, Super Mods and Mods to see the link. But you can add whatever usergroups you want to see it very easily.
I'm very dumb when it comes to hacking, could you show me an example on how to add other usergroups to the list?

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

Find this:

HTML Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
and add what usergroups you want to the 5,6,7 part of it.
Reply With Quote
  #34  
Old 04-02-2004, 08:16 AM
msimplay's Avatar
msimplay msimplay is offline
 
Join Date: Aug 2002
Location: UK
Posts: 1,059
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
Find this:

HTML Code:
<if condition="in_array($bbuserinfo['usergroupid'], array(5, 6, 7))">
and add what usergroups you want to the 5,6,7 part of it.
for my forums i removed the if condition because i want people to answer the 0 replies and it bumps old threads that should have got a look
Reply With Quote
  #35  
Old 04-03-2004, 05:02 AM
Slave's Avatar
Slave Slave is offline
 
Join Date: Nov 2001
Posts: 439
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice hack .. .. installed
Reply With Quote
  #36  
Old 04-24-2004, 01:42 AM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed and works great. You know what would be nice though? If we could find some way to add this to the "Forum Tools" dropdown for individual forums rather than having to edit a link in somewhere. That'd sure be a nice, convenient place to have it.

[edit]
You know something though? The more I look at it the less I'm finding a viable place to add a link to the forumhome_forumbit_levelx templates. Where is everyone else putting it? I added it to FORUMDISPLAY and everything seems to work fine.
[/edit]
Reply With Quote
  #37  
Old 04-24-2004, 02:51 AM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Here's something minor I just noticed: The search results for VB3 have a title bar that reads:

Quote:
Search: Key Word(s): [blah] ; Forum: [this forum] and child forums
...where [blah] = whatever search words you used. In the case of this hack however, no keywords are used and you see:

Quote:
Search: ; Forum: [this forum]
...instead. Took me a couple of tries to figure out where that stray semicolon was coming from. Is there any way to insert something before the semicolon when links for this hack are clicked, like "Unanswered Posts" or something? The way it currently renders makes it look like a bug. Obviously nothing major but it is kind of annoying.
Reply With Quote
  #38  
Old 04-24-2004, 02:57 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
Here's something minor I just noticed: The search results for VB3 have a title bar that reads:



...where [blah] = whatever search words you used. In the case of this hack however, no keywords are used and you see:



...instead. Took me a couple of tries to figure out where that stray semicolon was coming from. Is there any way to insert something before the semicolon when links for this hack are clicked, like "Unanswered Posts" or something? The way it currently renders makes it look like a bug. Obviously nothing major but it is kind of annoying.
I'm not sure why that semi-colon is there, but I have not found a way to get rid of it as yet. That has been there since the beginning of this hack. If you come up with a way to get rid of it, I'm all ears.

The install file tells you where to add the link in these 2 templates:

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post
Reply With Quote
  #39  
Old 04-24-2004, 03:28 AM
welo welo is offline
 
Join Date: Jan 2004
Location: Portland, Oregon
Posts: 172
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Boofo
I'm not sure why that semi-colon is there, but I have not found a way to get rid of it as yet. That has been there since the beginning of this hack. If you come up with a way to get rid of it, I'm all ears.
The semicolon is supposed to be there. The thing about this hack is it feeds no keywords to place before it, so the semicolon just hangs there by itself once the query is run. I'm looking into it.

Quote:
Originally Posted by Boofo
The install file tells you where to add the link in these 2 templates:

forumhome_forumbit_level1_post
forumhome_forumbit_level2_post
Sorry bud; nope, it doesn't. What it says is:

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).
My point is, I dont think right after the forum title is appropriate, I'm not using an image, and I don't see anywhere else in these templates to add it as a link. All they do is overview the content and stats for each forum without providing any real additional navigation. FORUMDISPLAY gives a better set of options, and is one template to edit rather than two. I even looked on your board to see where you put it and curiously can't find it anywhere.
Reply With Quote
  #40  
Old 04-24-2004, 03:55 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I fixed the semi-colon cosmetic problem. Try the following code and let me know if this works for you.

Quote:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In the search_results template

Find:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

; $vbphrase[forum]: $displayForums <if condition="$childforums">$vbphrase[and_child_forums]</if>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
REPLACE it with
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

<if condition="$dontcache=1">
Unanswered Threads --
<else />
;
</if>
$vbphrase[forum]: $displayForums <if condition="$childforums">$vbphrase[and_child_forums]</if>
Reply With Quote
  #41  
Old 04-24-2004, 04:08 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
The semicolon is supposed to be there. The thing about this hack is it feeds no keywords to place before it, so the semicolon just hangs there by itself once the query is run. I'm looking into it.


Sorry bud; nope, it doesn't. What it says is:


My point is, I dont think right after the forum title is appropriate, I'm not using an image, and I don't see anywhere else in these templates to add it as a link. All they do is overview the content and stats for each forum without providing any real additional navigation. FORUMDISPLAY gives a better set of options, and is one template to edit rather than two. I even looked on your board to see where you put it and curiously can't find it anywhere.
You won't find it on my board unless you are an Admin or Moderator. I don't have it available to registered users. I use the question_mark image right after the forum title. I had it as a link under the forum description (where Moderated By is now on my site) but I like the image better. I also have a link for Unanswered Threads fior the whole site next to View Forum Leaders and Mark Forum Read links, but again, only for staff.
Reply With Quote
  #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
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 10:23 AM.


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.04859 seconds
  • Memory Usage 2,368KB
  • Queries Executed 30 (?)
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
  • (2)bbcode_html
  • (14)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
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)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