vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.7 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=228)
-   -   Miscellaneous Hacks - Forum-wide Search For Unanswered Threads (https://vborg.vbsupport.ru/showthread.php?t=169923)

Mosh 02-07-2008 10:00 PM

Forum-wide Search For Unanswered Threads
 
Hack Support

This hack is now discontinued - this means that while it will remain available for download and use, there will be no further updates, nor will support be provided as the thread is no longer monitored. You can now check out the 3.8.x version of this hack, as it also works with v3.7.5, v3.6.12 (and maybe even earlier versions).

Please click Mark as Installed if you are using this hack.


vBulletin Version Compatibility

This hack can be used with v3.6.10 and v3.7.x. This has not been tested with earlier versions of v3.6.x, but should work.


What Does This Hack Do?

This is an hack adds an extra option to the Search drop down list on the nav bar which allows you to search for unanswered threads forum-wide, apart from the forums you choose to exclude from the search.

This hack was created as a result of a request from Boofo - see here.

There are no file or template changes at all, and is fully phrased.

AdminCP settings for this hack available in vBulletin Options > Forum-wide Search For Unanswered Threads.
Settings that can be changed are:
  1. Usergroup permissions - which groups will be able to see the Unanswered Threads link (no usergroups can use this by default)
  2. Exclude Forums - list of forums to exclude from the search for unanswered threads
  3. Turn off cached results - enable/disable

Installation Instructions
  1. Import ms_search_all_unanswered.xml into vB using the AdminCP Product Manager. If upgrading then set Allow Overwrite to Yes.
  2. Alter the settings in the Admin CP vBulletin Options to your liking.

Uninstall Instructions
  1. Uninstall the product in vB using the AdminCP Product Manager.


Version History

v3.7.006 - Friday 29th August 2008
-- Final Release
-- Changed: Check boxes now for usergroup selection, instead of needing comma separated numbers
-- Changed: Screenshots
-- Added: New plugin, for processing usergroup permissions

v3.7.005 - Saturday 26th July 2008
-- Changed: Removed dependency, now works with v3.6.10

v3.7.004 - Thursday 17th July 2008
-- Changed: Total code rewrite
-- Changed: AdminCP exclude forums option to allow up to 254 characters on the line

v3.7.003 - Wednesday 25th June 2008
-- Added: AdminCP option to display to all usergroups

v3.7.002 - Sunday 11th May 2008
-- Changed: Version numbering
-- Added: AdminCP Options input validation
-- Added: vBAdvanced support

v1.0.0 - Friday 8th February 2008
-- Initial v3.7.x Release


Show Your Appreciation

Although not required, if you have enjoyed the benefits of this hack, and would like show your appreciation for my efforts, then please feel free to click on the Support Developer link and donate any amount you feel is appropriate.


Donations

I would like to thank the following people for their kind donations:

Boofo 02-07-2008 10:12 PM

Thank you, sir. ;)

Mosh 02-07-2008 10:37 PM

Quote:

Originally Posted by Boofo (Post 1438515)
Thank you, sir. ;)

No worries mate :)

ChurchMedia 02-07-2008 10:53 PM

*installed* Thanks for the cool hack! I have a custom navbar so I altered the code to make it work for me. I changed the plugin code to:

PHP Code:

$fwsfut_groups explode(',',$vbulletin->options['fwsfut_grps']); 

if (
is_member_of($vbulletin->userinfo,$fwsfut_groups)) 
{
    
$unanswered '<a href="search.php?'.$session['sessionurl'].'do=process&replyless=1&replylimit=0&exclude='.$vbulletin->options['fwsfut_exclude_forums'].'&nocache='.$vbulletin->options['fwsfut_cache_enable'].'">'.$vbphrase['forum_wide_unanswered'].'</a>';


(let me know if you want me to delete this)

This way I could just insert the $unanswered variable where I needed the link to be.

Thanks again! :)

Mosh 02-07-2008 11:01 PM

Quote:

Originally Posted by ChurchMedia (Post 1438537)
*installed* Thanks for the cool hack! I have a custom navbar so I altered the code to make it work for me. I changed the plugin code to:

PHP Code:

$fwsfut_groups explode(',',$vbulletin->options['fwsfut_grps']); 

if (
is_member_of($vbulletin->userinfo,$fwsfut_groups)) 
{
    
$unanswered '<a href="search.php?'.$session['sessionurl'].'do=process&replyless=1&replylimit=0&exclude='.$vbulletin->options['fwsfut_exclude_forums'].'&nocache='.$vbulletin->options['fwsfut_cache_enable'].'">'.$vbphrase['forum_wide_unanswered'].'</a>';


(let me know if you want me to delete this)

This way I could just insert the $unanswered variable where I needed the link to be.

Thanks again! :)

No need to delete it, other people may have a custom navbar, they may want to use it.

Thanks for sharing :)

jilly 02-10-2008 10:58 PM

Can you let all usergroups use it be default by removing the zero?

jilly 02-10-2008 11:00 PM

if a user does not have permission to view a forum, will a zero response post still show up in their search?

Mosh 02-11-2008 04:52 AM

Quote:

Originally Posted by jilly (Post 1440424)
Can you let all usergroups use it be default by removing the zero?

No, unfortunately not, having the zero basically blocks everyone. You will have to add every usergroup you want to see the link.

Quote:

Originally Posted by jilly (Post 1440426)
if a user does not have permission to view a forum, will a zero response post still show up in their search?

No, it will not, forum permissions still apply :)

If the user is in a usergroup that does not have permissions to see a forum, then unanswered threads from that forum will not show up for that user.

jilly 02-11-2008 11:25 PM

I can't tell you how helpful this mod is for me!! Great job!!

Mosh 02-12-2008 04:18 AM

Quote:

Originally Posted by jilly (Post 1441090)
I can't tell you how helpful this mod is for me!! Great job!!

You are more than welcome :)

Paprika 03-04-2008 04:56 PM

My drop-down only appears under "Search this Forum" but not also under "Search" on the top nav bar.
Is this correct behavior of the mod?

Thanks

Mosh 03-04-2008 11:07 PM

Quote:

Originally Posted by Paprika (Post 1456869)
My drop-down only appears under "Search this Forum" but not also under "Search" on the top nav bar.
Is this correct behavior of the mod?

Thanks

That is because you are actually using my Search For Unanswered Threads By Forum hack, I can see that you have not downloaded this hack, and it is the correct behaviour for that hack.

Also this hack uses a template hook that is associated with the search drop down menu in the navbar, so it is impossible that this hack would show under Search this Forum (unless someone moved the template hook to that location and changed the plugin location), and in closing, that means that you are using my Search For Unanswered Threads By Forum hack and not this one.

Btw, click Mark as Installed in my Search For Unanswered Threads By Forum hack thread please.

KURTZ 03-05-2008 06:49 AM

niceone!

Pamela 03-13-2008 09:06 PM

*Clicks install*

Works perfectly! Thanks! :)

One question though...does anyone know how to make it NOT show stickies in the search results? Thanks!!!

faisaly.com 03-14-2008 03:11 AM

Thanks!!!

Mosh 03-14-2008 04:31 AM

Quote:

Originally Posted by Pamela (Post 1464134)
*Clicks install*

Works perfectly! Thanks! :)

One question though...does anyone know how to make it NOT show stickies in the search results? Thanks!!!

That is a good point Pamela, a lot of stickied threads would not contain any replies and likely be closed as well. I will actually look at that :)

[hr]1[/hr]
EDIT: I had a quick look at how the search.php works and it does not take into account either stickies or closed threads, so this will require extra plug ins, editing of the core files or if any query hooks are available in the correct places I may be able to extend a query or 2 to make it take that into account.

So, I may look into it at some point in the next few weeks and try to add it, but not right now.

Pamela 03-14-2008 07:27 AM

Quote:

Originally Posted by Mosh (Post 1464385)
That is a good point Pamela, a lot of stickied threads would not contain any replies and likely be closed as well. I will actually look at that :)

[hr]1[/hr]
EDIT: I had a quick look at how the search.php works and it does not take into account either stickies or closed threads, so this will require extra plug ins, editing of the core files or if any query hooks are available in the correct places I may be able to extend a query or 2 to make it take that into account.

So, I may look into it at some point in the next few weeks and try to add it, but not right now.

Oh wonderful! I'm glad to hear that this may be an addition in the future. That would be SOOOO helpful! :D

Allan 04-08-2008 06:52 AM

Don't work with vB 3.6.8 for example ?

Mosh 04-10-2008 10:02 PM

Quote:

Originally Posted by Allan (Post 1485735)
Don't work with vB 3.6.8 for example ?

Quote:

Originally Posted by First Post
This hack can only be used with vBulletin v3.7.x.

No it does not, and if you read the first post you would notice that it says that already.

This hack uses template hooks which are not available in v3.6.x as far as I know.

geckofrog 04-22-2008 04:00 PM

Is there a link we can use for custom headers or like a variable?

Mosh 04-22-2008 08:50 PM

Quote:

Originally Posted by geckofrog (Post 1496662)
Is there a link we can use for custom headers or like a variable?

Check out post #4 of this thread. That should fix you up :)

odeezie 05-06-2008 03:07 PM

First of all, excellent work and thank you! :D

Is there a way to include a few more searches? I had a user request View unanswered threads, threads you've started, and you're own posts, like the old hack in this thread https://vborg.vbsupport.ru/showthread.php?t=66768

Could those other searches be added to the search drop down menu too?

Thank You for your time,

Brad

Mosh 05-07-2008 01:50 AM

Quote:

Originally Posted by odeezie (Post 1510551)
First of all, excellent work and thank you! :D

Is there a way to include a few more searches? I had a user request View unanswered threads, threads you've started, and you're own posts, like the old hack in this thread https://vborg.vbsupport.ru/showthread.php?t=66768

Could those other searches be added to the search drop down menu too?

Thank You for your time,

Brad

That should not be too hard to do, but I would release it as a separate hack rather than change this one, as it is just for unanswered threads.

I should be able to knock it up in the next hour or so, so, keep an eye out for the release.

odeezie 05-07-2008 02:05 AM

Quote:

Originally Posted by Mosh (Post 1511177)
That should not be too hard to do, but I would release it as a separate hack rather than change this one, as it is just for unanswered threads.

I should be able to knock it up in the next hour or so, so, keep an eye out for the release.

Really!? In an hour!!

I will keep an eye out and I cannot thank you enough!! :up:
Will you be putting those right in the search drop-down menu too?

Thanks again!

Mosh 05-07-2008 02:12 AM

Quote:

Originally Posted by odeezie (Post 1511189)
Really!? In an hour!!

I will keep an eye out and I cannot thank you enough!! :up:
Will you be putting those right in the search drop-down menu too?

Thanks again!

Yep :)

All done :)

Check out the View Your Posts/Threads from Navbar Search hack.

Mosh 05-10-2008 01:21 PM

Update: v3.7.002
  • Version number change
  • AdminCP Options validation
  • Works with vBAdvanced

jilly 05-10-2008 02:01 PM

the xml in this thread is now called ms_view_own_posts_threads.xml - is this a mistake? cause the view own posts is a separate brand new one you just did, correct?

Mosh 05-10-2008 09:51 PM

Quote:

Originally Posted by jilly (Post 1514938)
the xml in this thread is now called ms_view_own_posts_threads.xml - is this a mistake? cause the view own posts is a separate brand new one you just did, correct?

You are correct.......Doh!!!!!

Fixed up :rolleyes:

fukdawrld 06-14-2008 12:38 PM

Quote:

Originally Posted by ChurchMedia (Post 1438537)
*installed* Thanks for the cool hack! I have a custom navbar so I altered the code to make it work for me. I changed the plugin code to:

PHP Code:

$fwsfut_groups explode(',',$vbulletin->options['fwsfut_grps']); 

if (
is_member_of($vbulletin->userinfo,$fwsfut_groups)) 
{
    
$unanswered '<a href="search.php?'.$session['sessionurl'].'do=process&replyless=1&replylimit=0&exclude='.$vbulletin->options['fwsfut_exclude_forums'].'&nocache='.$vbulletin->options['fwsfut_cache_enable'].'">'.$vbphrase['forum_wide_unanswered'].'</a>';


(let me know if you want me to delete this)

This way I could just insert the $unanswered variable where I needed the link to be.

Thanks again! :)

how do i add this i have a custom navbar my self ..just open the xml and add or replace could someone give me step by step like i am 6

BigDog56 06-18-2008 01:13 AM

Works great! Thank you!

Mosh 06-25-2008 07:56 AM

Update: v3.7.003
  • Added option to show to all usergroups

ShackMaster 07-16-2008 02:32 PM

In AdminCP/vBOptions:

Forums To Exclude From Search
Comma separated list of forumids to exclude from the search for unanswered threads. Use Zero (0) to not exclude any forums.
Example: 1,9,27,72

I entered:

Quote:

1,4,5,6,19,20,22,24,26,31,39,40,45,76,96,111,114,1 26,128,152,153,158,159,177,178,179,181,182,183,184 ,185,186,190,193
I get the following:

Quote:

Error:
You did not enter a valid value for this setting.
I can accept it anyway, but there is no reason to get the error that I can see.

Mosh 07-16-2008 10:03 PM

Quote:

Originally Posted by ShackMaster (Post 1576862)
In AdminCP/vBOptions:

Forums To Exclude From Search
Comma separated list of forumids to exclude from the search for unanswered threads. Use Zero (0) to not exclude any forums.
Example: 1,9,27,72

I entered:



I get the following:



I can accept it anyway, but there is no reason to get the error that I can see.

There are 2 reasons why it is displayed, both to do with input validation:
  • There is a space between 178 and the ,
  • The total length of the line with excluding forums is over 99

I can fix the second, you can fix the first :)

Mosh 07-16-2008 10:15 PM

Update: v3.7.004
  • Changed: Total code rewrite
  • Changed: AdminCP exclude forums option to allow up to 254 characters on the line

ShackMaster 07-17-2008 01:41 AM

Thanks! It is now fixed!

There was actually no space above... that was the text wrapping, but none the less, there are no more errors.

Again... many thanks! Great mod!

Mosh 07-17-2008 01:44 AM

Quote:

Originally Posted by ShackMaster (Post 1577344)
Thanks! It is now fixed!

There was actually no space above... that was the text wrapping, but none the less, there are no more errors.

Again... many thanks! Great mod!

You are most welcome :)

Mosh 07-26-2008 08:02 AM

Update: v3.7.005 - Saturday 26th July 2008
-- Changed: Removed dependency, now works with v3.6.10

NOTE: If already installed on v3.7.x, then there is no need to update to this version, as there are no functional changes. This is only for new installations, it now caters for v3.6.10 as well as v3.7.x.

polgara_j 08-04-2008 05:42 AM

Quote:

Originally Posted by ChurchMedia (Post 1438537)
*installed* Thanks for the cool hack! I have a custom navbar so I altered the code to make it work for me. I changed the plugin code to:

PHP Code:

$fwsfut_groups explode(',',$vbulletin->options['fwsfut_grps']); 

if (
is_member_of($vbulletin->userinfo,$fwsfut_groups)) 
{
    
$unanswered '<a href="search.php?'.$session['sessionurl'].'do=process&replyless=1&replylimit=0&exclude='.$vbulletin->options['fwsfut_exclude_forums'].'&nocache='.$vbulletin->options['fwsfut_cache_enable'].'">'.$vbphrase['forum_wide_unanswered'].'</a>';


(let me know if you want me to delete this)

This way I could just insert the $unanswered variable where I needed the link to be.

Thanks again! :)

Where in the xml would you add this? I'm new to the whole coding thing ;)

Mosh 08-04-2008 11:39 AM

Quote:

Originally Posted by polgara_j (Post 1590961)
Where in the xml would you add this? I'm new to the whole coding thing ;)

That will probably not work anymore, as I have totally re-wrote the hack a couple of weeks ago.

wmlvb 08-12-2008 11:55 AM

I was wondering if I give permission for certain user groups to sue this will they see unanswered thread of board they are not allowed to see?


All times are GMT. The time now is 04:59 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.01482 seconds
  • Memory Usage 1,865KB
  • 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_php_printable
  • (22)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)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