Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Add-ons

Reply
 
Thread Tools
Forum-wide Search For Unanswered Threads Details »»
Forum-wide Search For Unanswered Threads
Version: 3.8.002, by Mosh Mosh is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 3.8.x Rating:
Released: 01-07-2009 Last Update: 06-22-2009 Installs: 86
DB Changes Uses Plugins
Re-useable Code Additional Files Translations  
No support by the author.

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


What Does This Hack Do?[hr]hr[/hr]
This is an update to my 3.7.x version of this hack, with the addition of navbar placement via AdminCP Options.

This is a hack adds an extra option to the Search drop down list on the navbar, or on the navbar itself (left hand side or ride hand side) which allows you to search for unanswered threads forum-wide, apart from the forums you choose to exclude from the search.

This hack was originally created as a result of a request from Boofo in 2008 - 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. Exclude Forums - list of forums to exclude from the search for unanswered threads
  2. Turn off cached results - enable/disable
  3. Automatic Link Creation - location link will be added

vBulletin Version Compatibility[hr]hr[/hr]
This hack can be used with vBulletin versions 3.6.0 - 3.8.8.

For the v4.0.4 version of this hack - check here.



Hack Support/Feature Requests[hr]hr[/hr]
IMPORTANT: This hack is no longer supported.


Install Instructions[hr]hr[/hr]
  1. Unzip ms_search_all_unanswered_38.zip
  2. Upload bitfield_ms_search_all_unanswered.xml to your /includes/xml folder.If upgrading from an earlier version, then overwrite the previous copy.
  3. Import the ms_search_all_unanswered_38.xml into vB using the AdminCP Product Manager. If upgrading from an earlier version, then set Allow Overwrite to Yes.
  4. In the Usergroup Manager edit the usergroup(s) you want:
    • To see the Unanswered Threads link (disabled by default for all usergroups).

Uninstall Instructions[hr]hr[/hr]
  1. Delete the bitfield_ms_search_all_unanswered.xml file from your /includes/xml folder.
  2. Uninstall the product in vB using the AdminCP Product Manager.

Screenshots[hr]hr[/hr]
Shown in this order:
  • Link on Search Forums Menu
  • AdminCP Options
  • Usergroup Permissions
  • Link on navbar (left hand side)
  • Link on navbar (right hand side)

Version History[hr]hr[/hr]
v3.8.002 - Tuesday 23rd June 2009
-- Final v3.8.x Release
-- Added: AdminCP Option to allow for Unanswered Threads link to be placed in different places on the navbar

v3.8.001 - Friday 9th January 2009
-- Initial v3.8.x Release


Thanks[hr]hr[/hr]
Thanks go out to Paul M who gave me permission to use some of his install code.


Show Your Appreciation[hr]hr[/hr]
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[hr]hr[/hr]
I would like to thank the following people for their kind donations:

Download Now

File Type: zip ms_search_all_unanswered_38.zip (2.7 KB, 270 views)

Screenshots

File Type: png screenshot1.png (6.9 KB, 0 views)
File Type: png screenshot2.png (42.4 KB, 0 views)
File Type: png screenshot3.png (12.1 KB, 0 views)
File Type: png screenshot4.png (2.0 KB, 0 views)
File Type: png screenshot5.png (2.7 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-02-2009, 09:57 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jilly View Post
Thanks Mosh - I tried installing, and of course I have customized my navbar (LOL) - how can I add the link manually?
The best thing I can suggest is for you to look at the default/original vBulletin navbar template, locate $template_hook[navbar_buttons_left] or $template_hook[navbar_buttons_right] are normally located and put either of those hooks in the appropriate position in your customised navbar template and select the appropriate navbar placement option in this hack's vBulletin options for it to display. I can not be any more specific than that, because as you said, it is a customised template.
Reply With Quote
  #23  
Old 07-04-2009, 01:28 PM
jilly jilly is offline
 
Join Date: Jul 2002
Location: central maryland
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Mosh View Post
The best thing I can suggest is for you to look at the default/original vBulletin navbar template, locate $template_hook[navbar_buttons_left] or $template_hook[navbar_buttons_right] are normally located and put either of those hooks in the appropriate position in your customised navbar template and select the appropriate navbar placement option in this hack's vBulletin options for it to display. I can not be any more specific than that, because as you said, it is a customised template.
well, I can put the code into the navbar myself, that's not an issue, just need to know what exactly to put in - like whatever the code is that makes the link.. for example my user cp link, the code is:

<td class="vbmenu_control"><a href="usercp.php">User CP</a></td>

so I can add in the link myself, if I now what to put between the two TD's - for example:

<td class="vbmenu_control"> Mosh's Unanswered Thread Info Goes Here</td>
Reply With Quote
  #24  
Old 07-04-2009, 09:49 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jilly View Post
well, I can put the code into the navbar myself, that's not an issue, just need to know what exactly to put in - like whatever the code is that makes the link.. for example my user cp link, the code is:

<td class="vbmenu_control"><a href="usercp.php">User CP</a></td>

so I can add in the link myself, if I now what to put between the two TD's - for example:

<td class="vbmenu_control"> Mosh's Unanswered Thread Info Goes Here</td>
Cool

Here you go, everything in the below HTML tags including the tds, just copy and paste where you need it:
HTML Code:
REMOVED, DOES NOT WORK
Reply With Quote
  #25  
Old 07-06-2009, 12:32 PM
jilly jilly is offline
 
Join Date: Jul 2002
Location: central maryland
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay, I tried to add it into my navbar template, and got this error message:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jilly/public_html/forums/includes/adminfunctions_template.php(3938) : eval()'d code on line 162

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

and line 162 in my template is where I tried to put the code from above.
Reply With Quote
  #26  
Old 07-06-2009, 12:42 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jilly View Post
Okay, I tried to add it into my navbar template, and got this error message:

The following error occurred when attempting to evaluate this template:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/jilly/public_html/forums/includes/adminfunctions_template.php(3938) : eval()'d code on line 162

This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

and line 162 in my template is where I tried to put the code from above.
I know where I went wrong with this. Try this:
HTML Code:
REMOVED, DOES NOT WORK
Reply With Quote
  #27  
Old 07-06-2009, 01:08 PM
jilly jilly is offline
 
Join Date: Jul 2002
Location: central maryland
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

tried the new one, but still got the same error.. D'oh!
Reply With Quote
  #28  
Old 07-06-2009, 10:00 PM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by jilly View Post
tried the new one, but still got the same error.. D'oh!
OK, the below is tested and working, so for the last time, copy and paste the below

HTML Code:
<!-- Forum-wide Search For Unanswered Threads (c) Mosh Shigdar 2008 --><td class="vbmenu_control"><a href="{$vbulletin->options['bburl']}/search.php?$session[sessionurl]do=process&amp;replyless=1&amp;replylimit=0&amp;exclude={$vbulletin->options['fwsfut_exclude_forums']}&amp;nocache={$vbulletin->options['fwsfut_cache_enable']}">$vbphrase[forum_wide_unanswered]</a></td><!-- end of Forum-wide Search For Unanswered Threads -->
Reply With Quote
  #29  
Old 07-08-2009, 01:34 AM
jilly jilly is offline
 
Join Date: Jul 2002
Location: central maryland
Posts: 461
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yay, it worked! Thanks Mosh, awesome!
Reply With Quote
  #30  
Old 10-01-2009, 04:39 AM
Bubble #5 Bubble #5 is offline
 
Join Date: Apr 2005
Posts: 984
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How (or where) do we remove the title 'Unanswered Threads' from the search drop down. It looks redundant. We need it to look more like what is used on this site...

Thanks
Reply With Quote
  #31  
Old 10-01-2009, 08:08 AM
Mosh's Avatar
Mosh Mosh is offline
 
Join Date: Aug 2004
Location: Melbourne, Australia
Posts: 1,968
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Bubble #5 View Post
How (or where) do we remove the title 'Unanswered Threads' from the search drop down. It looks redundant. We need it to look more like what is used on this site...

Thanks
This change is not supported, but should work.

Edit the Forum-wide Search For Unanswered Threads plugin, find:
PHP Code:
        $template_hook['navbar_search_menu'] .= '<!-- Forum-wide Search For Unanswered Threads (c) Mosh Shigdar 2008 - 2009 --><tr><td class="thead">'.$vbphrase['forum_wide_unanswered'].'</td></tr><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/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></td></tr><!-- end of Forum-wide Search For Unanswered Threads -->'
Change to:
PHP Code:
        $template_hook['navbar_search_menu'] .= '<!-- Forum-wide Search For Unanswered Threads (c) Mosh Shigdar 2008 - 2009 --><tr><td class="vbmenu_option"><a href="'.$vbulletin->options['bburl'].'/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></td></tr><!-- end of Forum-wide Search For Unanswered Threads -->'
Reply With Quote
Reply

Thread Tools

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 07:08 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05356 seconds
  • Memory Usage 2,365KB
  • Queries Executed 26 (?)
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
  • (3)bbcode_html
  • (2)bbcode_php
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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
  • (6)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete