vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   vB3 Unanswered Threads Hack v1.3 (https://vborg.vbsupport.ru/showthread.php?t=63008)

Boofo 03-26-2004 10:00 PM

vB3 Unanswered Threads Hack v1.3
 
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

Geographic2 03-27-2004 04:53 AM

Sweet. will install after sleeping.

Oblivion Knight 03-27-2004 08:31 AM

Ah, good idea Boofo! :)
I may consider installing this at a later date, my forums aren't even open yet.

Thanks for sharing.

gmarik 03-27-2004 10:03 AM

rather original one

Boofo 03-27-2004 10:05 AM

What original one?

msimplay 03-27-2004 01:32 PM

excellent work boofo :)

Osterling 03-27-2004 01:35 PM

Now is the option for regular memebers too? Like can memebers other then the Admin, use this to see what post have not been repleid to?

Boofo 03-27-2004 01:56 PM

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. ;)

SpeedStreet 03-27-2004 04:41 PM

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. ;)

Boofo,

Another great hack. Iowa, right? Remind me to call my uncle and tell him to give you one "get out of a speeding ticket free" card ;)

- John

Oblivion Knight 03-27-2004 05:49 PM

This is the smallest of things, but when clicking the link and the results are displayed on the search category strip, this is shown:


Quote:

Search: ; Forum: Test Forum 3
Is there any way to remove the ; that is added?

I noticed vB.org doesn't have any such problem when showing installed hacks, so I figured it could be sorted for this? :nervous:

Boofo 03-27-2004 06:33 PM

Quote:

Originally Posted by SpeedStreet
Boofo,

Another great hack. Iowa, right? Remind me to call my uncle and tell him to give you one "get out of a speeding ticket free" card ;)

- John

Thank you. Hopefully I will never need it but it might be nice to have just in case. ;)

What's his name? I might actually know him. ;)

Boofo 03-27-2004 06:34 PM

Quote:

Originally Posted by Oblivion Knight
This is the smallest of things, but when clicking the link and the results are displayed on the search category strip, this is shown:


Is there any way to remove the ; that is added?

I noticed vB.org doesn't have any such problem when showing installed hacks, so I figured it could be sorted for this? :nervous:

I'm not sure where to fix that at. I can't see how this hack would cause that but it might in some way. Any ideas? ;)

SpeedStreet 03-27-2004 06:43 PM

Quote:

Originally Posted by Boofo
Thank you. Hopefully I will never need it but it might be nice to have just in case. ;)

What's his name? I might actually know him. ;)

Hint:

My last name is Vilsack ;)

Boofo 03-27-2004 06:51 PM

LOL That's your uncle? Yeah, I could definately use some things from him! ;)

You ever get to visit him? You'll have to stop on by. ;)

SpeedStreet 03-27-2004 09:13 PM

Quote:

Originally Posted by Boofo
LOL That's your uncle? Yeah, I could definately use some things from him! ;)

You ever get to visit him? You'll have to stop on by. ;)

Technically great uncle :)

I was actually in des moines and mason city for several weekends before the January Caucus. My name does well for fundraising :D

Boofo 03-27-2004 09:40 PM

Well, the next time you're up this way, you'll have to stop on by and say 'Hi'. ;)

Oblivion Knight 03-27-2004 09:45 PM

Quote:

Originally Posted by Boofo
I'm not sure where to fix that at. I can't see how this hack would cause that but it might in some way. Any ideas? ;)

Looking at the code of search.php, this looks like it's more work than it's actually worth to identify unanswered threads as a search option to replace the redundant ; (I can't quite figure out why this shows anyway) with "Unanswered Threads".

Unless Xenon or anyone else can shed any light on this, we're stuck with ;

Boofo 03-27-2004 09:53 PM

I'll work on it and see what I can come up with and, hopefully, in the meantime, someone might be able to help us figure out what to do about the ;. ;)

PET 03-27-2004 10:06 PM

Can you please post a small screenshot to see how it...show up the links ?

Oblivion Knight 03-27-2004 11:15 PM

Here's how I have it set up..
Bare in mind though, i've done it for each forum individually. As the instructions mention, you add the code to the template where you want to, I just thought the Forum Tools was a good place for it.

SaN-DeeP 03-27-2004 11:28 PM

nice hack. i will love to install it :)

thnx :)

Boofo 03-27-2004 11:35 PM

Please, don't forget the install button, Sandy. When you install it, that is. ;)

Fi_InCogNiTo 03-28-2004 01:55 AM

Very nice hack.
*Clicks Install

Boofo 03-28-2004 04:39 AM

Quote:

Originally Posted by Oblivion Knight
Here's how I have it set up..
Bare in mind though, i've done it for each forum individually. As the instructions mention, you add the code to the template where you want to, I just thought the Forum Tools was a good place for it.

If you'll send me the code in a pm for adding it to the forum tools, I'll add it to the hack (for yet another option) and give you full credit for the addition. ;)

Oblivion Knight 03-28-2004 08:02 AM

Quote:

Originally Posted by Boofo
If you'll send me the code in a pm for adding it to the forum tools, I'll add it to the hack (for yet another option) and give you full credit for the addition. ;)

You've got mail.. :)
I've also given you the code to set up the board-wide link in the navbar via Quick Links.

Mone' 03-29-2004 02:44 AM

Great hack Boofo Installed and working perfectly :)

I changed the location of the search button to show in forumhome in the dhtml search box , see screen shot.

Just posting the code here in case other users would like to use it.

Edit the following template: Navigation / Breadcrumb Templates > navbar

look for:

Code:

<tr>
<td class="vbmenu_option">
<a href="search.php?$session[sessionurl]">$vbphrase[advanced_search]</a>
</td>
</tr>


Below that code add:

Code:

<tr>
<td class="vbmenu_option">
<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">Unanswered Threads</a>
</div>
</if></td>
                </tr>

Done :)

Boofo 03-29-2004 02:55 AM

Nice touch. I'll add this to the install file and credit you for it. ;)

msimplay 03-29-2004 05:44 PM

Quote:

Originally Posted by Oblivion Knight
Here's how I have it set up..
Bare in mind though, i've done it for each forum individually. As the instructions mention, you add the code to the template where you want to, I just thought the Forum Tools was a good place for it.

what template is that in ?
i want to do the same

Oblivion Knight 03-29-2004 07:46 PM

Quote:

Originally Posted by msimplay
what template is that in ?
i want to do the same

Boofo's supposed to be adding it to the instructions, but here it is anyway.. ;)

In forumdisplay, find:

Code:

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

Code:

        <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>

msimplay 03-29-2004 08:21 PM

Quote:

Originally Posted by Oblivion Knight
Boofo's supposed to be adding it to the instructions, but here it is anyway.. ;)

thank you that worked great :D

gldtn 04-02-2004 06:47 AM

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

Boofo 04-02-2004 06:55 AM

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. ;)

msimplay 04-02-2004 08:16 AM

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 :D and it bumps old threads that should have got a look

Slave 04-03-2004 05:02 AM

Nice hack .. :) .. installed

welo 04-24-2004 01:42 AM

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]

welo 04-24-2004 02:51 AM

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.

Boofo 04-24-2004 02:57 AM

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

welo 04-24-2004 03:28 AM

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.

Boofo 04-24-2004 03:55 AM

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>

Boofo 04-24-2004 04:08 AM

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.


All times are GMT. The time now is 10:28 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.01383 seconds
  • Memory Usage 1,841KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (2)bbcode_html_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete