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


All times are GMT. The time now is 07:42 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.01230 seconds
  • Memory Usage 1,758KB
  • 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
  • (2)bbcode_php_printable
  • (5)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
  • (10)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