PDA

View Full Version : Miscellaneous Hacks - Search For Unanswered Threads By Forum


Mosh
02-06-2008, 10:00 PM
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 update of my v3.6.x hack available here.

This is an hack adds an extra option to the Search this Forum drop down list in forum display, that additionally allows you to search for unanswered threads by forum (including child forums if enabled). This can be useful for example, if you have some of your forums dedicated to support issues and want to filter by unanswered support threads, just in that forum (and child forums if enabled).

There have been a few threads that mentioned template edits for allowing to view all unanswered threads in all forums (not like this hack which is by forum, not the entire site), vb.org uses a variation of that template edit. This hack is different, but based on the idea, and allows more control over the results.

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

AdminCP settings for this hack available in vBulletin Options > Search For Unanswered Threads By Forum.
Settings that can be changed are:

Usergroup permissions - which groups will be able to use Search For Unanswered Threads By Forum
Search child forums - enable/disable
Turn off cached results - enable/disable
Auto Template Injection - this is enabled by default. But if you need to manually edit the FORUMDISPLAY template because the auto template injection does not work, you will need to turn off the auto template injection option, and in the FORUMDISPLAY template you will need to paste $sfutbf_template around where $vbphrase[advanced_search] (don't ask me where, because if you need to make the edit manually, then you have a custom template, and you are on your own with the edit).


Installation Instructions

Import ms_unanswered_threads.xml into vB using the AdminCP Product Manager. If upgrading then set Allow Overwrite to Yes.
Alter the settings in the Admin CP to your liking.


Uninstall Instructions

Uninstall the product in vB using the AdminCP Product Manager.



Version History

v3.7.006 - Friday 29th August 2008
-- Final Release
-- Fixed: Usergroup permission checkboxes not working with vBulletin v 3.6.x

v3.7.005 - Thursday 28th August 2008
-- Changed: Check boxes now for usergroup selection, instead of needing comma separated numbers
-- Added: New plugin, for processing usergroup permissions
-- Removed: AdminCP Options input validation (no longer needed)

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

v3.7.003 - Sunday 11th May 2008
-- Changed: Version numbering
-- Changed: Variable for template edit now (instead of pasting in template)
-- Added: AdminCP Options input validation

v2.1.0 - Friday 15th February 2008
-- Fixed: Cached Template
-- Removed: Version Dependency

v2.0.0 - Thursday 7th February 2008
-- Initial Release


Thanks

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


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.

dilbert
02-07-2008, 04:30 PM
This looks nice. How do I select which forums I want it to be allowed in? It looks like I can only configure by usergroup.

Boofo
02-07-2008, 05:51 PM
Is there a way to add a link in the navbar for the whole site too to go along with this?

Installed and thank you. ;)

Mosh
02-07-2008, 08:01 PM
This looks nice. How do I select which forums I want it to be allowed in? It looks like I can only configure by usergroup.
No, you can not select forums allowed at the moment. I would have to rewrite part of the hack to add that, and at this point it does what I want it to, but may consider adding that functionality down the road at some point.

Mosh
02-07-2008, 10:08 PM
Is there a way to add a link in the navbar for the whole site too to go along with this?

Installed and thank you. ;)
Bob, just for you - Forum-wide Search For Unanswered Threads :)

Boofo
02-07-2008, 10:11 PM
I just saw that, thank you. Guess it would have been a bear to add it to this one. ;)

Sucking up really does work with me, by the way. ;)

Mosh
02-07-2008, 11:21 PM
I just saw that, thank you. Guess it would have been a bear to add it to this one. ;)

Sucking up really does work with me, by the way. ;)
Yep, would of been a pain, so created a seperate hack.

I will be using this one myself, and who said I was sucking up :p

Boofo
02-07-2008, 11:56 PM
Thanks again as I am getting lazy in my old age with editing templates. ;)

You were scoring more points when I thought you were sucking up. ;)

jilly
02-13-2008, 07:45 PM
Okay I'm confused - so for this one, you can search by forum only, and the other one lets you serach forum wide - can I install both or would that cause problems? I like the idea of searching either forumwide or by individual boards..

Mosh
02-13-2008, 08:22 PM
Okay I'm confused - so for this one, you can search by forum only, and the other one lets you serach forum wide - can I install both or would that cause problems? I like the idea of searching either forumwide or by individual boards..

Yes, I had seen template edits for forum-wide searches and wondered to myself if anyone had done something similar for individual forums and no one had, so I wrote this hack for myself and then decided to release it here.

It was only after I ported this hack to v 3.7.x that Boofo asked for a forum-wide one in this thread, so as there were only various examples of template edits, I decided to do a product for the forum-wide hack. So, I wrote this hack first for v3.6.x and ported it to v3.7.x, then I wrote the forum-wide one.

Both can be in used in conjunction with each other with no problems at all, with this one showing un-answered theads in a specific forum when selected, and the other one doing a forum-wide selection.

So, the other one shows all un-answered threads, apart from excluded forums as set in the admincp. This one just shows from a single forum, and child forums if set in the admincp.

Boofo
02-15-2008, 04:15 AM
Mosh, you need to do a template cache here as microstats is showing an uncached template. ;)

Mosh
02-15-2008, 06:29 AM
Mosh, you need to do a template cache here as microstats is showing an uncached template. ;)
Damn, you are right Bob :eek: Did not even notice that. Thanks for letting me know :)

Boofo
02-15-2008, 06:44 AM
Such a newbie mistake, I am shocked, sir. :)

Mosh
02-15-2008, 06:55 AM
Such a newbie mistake, I am shocked, sir. :)
Updated now :)

I am shocked too, like I said, had not noticed. Oh, well now it is fixed :)

Boofo
02-15-2008, 07:12 AM
I didn't see it until tonight when I was checking something else so I didn't notice it until now either. But I'm old, so I can use dementia as an excuse. ;)

ram94401
03-07-2008, 06:32 AM
Instead of adding the link in the search menu, is there a way to have a seperate link for "Unanswered Threads" in the top of every page just like what Sitepoint forum has?

Mosh
03-07-2008, 05:50 PM
Instead of adding the link in the search menu, is there a way to have a seperate link for "Unanswered Threads" in the top of every page just like what Sitepoint forum has?
Yes, just use my Forum-wide Search For Unanswered Threads hack instead :)

Mosh
05-11-2008, 10:41 AM
Update: v3.7.003


Version numbering changed
AdminCP Options input validation
Now you can use a variable for the template edit, instead of having to paste the contents of one template into another template

Pamela
05-24-2008, 07:28 AM
Thank you! I needed this! :D

*clicks install*

Mosh
06-25-2008, 07:50 AM
Update: v3.7.004


Added option to show to all usergroups

-=Leb=-
06-25-2008, 08:05 AM
thx for the update :)

Alfa1
07-06-2008, 11:32 PM
Is there a way to show all (answered) threads with more than one post, in a certain forum? (including child forums)

Mosh
07-09-2008, 07:17 AM
Is there a way to show all (answered) threads with more than one post, in a certain forum? (including child forums)
It should be possible, but not with this hack.

Alfa1
07-09-2008, 10:10 AM
Do you have any idea how?

Mosh
07-11-2008, 12:39 AM
Do you have any idea how?
No, that is something you will have to look into yourself, sorry :(

Mosh
08-28-2008, 11:49 AM
Update: v3.7.005
-- Changed: Check boxes now for usergroup selection, instead of needing comma separated numbers
-- Added: New plugin, for processing usergroup permissions
-- Removed: AdminCP Options input validation (no longer needed)

-=Leb=-
08-28-2008, 03:38 PM
thx again lol :)

Mosh
08-29-2008, 02:09 AM
Update: v3.7.006
-- Fixed: Usergroup permission checkboxes not working with vBulletin v 3.6.x

Mosh
01-08-2009, 08:58 AM
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).