vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=234935

Mark Threads As "Solved"
by Eric
04 Feb 2010 00:37

9 Attachment(s)
My time is very limited these days, with my full time job. I have marked this mod as re-usable code, if any other coder wishes to continue work on it. I may still try to support this mod as time permits.



If you use this modification, please >> Mark As Installed, and consider Nominate for MOTM and Support Developer << :)


What is this!?
This modification will allow you & your members (based on usergroup permissions) to mark a thread as "Solved". It will add the prefix "[SOLVED]" to the thread title, and if set in the admincp - it will also close the thread.

Current Version
2.0.1.

Features flagged for future version(s):
  • Thread starter can choose to solve a thread, and input the username of who solved it - that user would receive rep. points. (admin-configurable amount of rep. points)
  • Given the above - include count of threads a user has solved in postbit & profile
  • Option to move the thread to a specific forum when a thread is "Solved"
  • Possibly figure out a way to automate everything on install - so there are no template edits.
And anything else that is suggested :)

Will this work on x.x.x ??
Unless otherwise stated, this will work on all 4.0.x versions. This will not work on 3.x.

Sounds cool. How do I install?
  1. Extract the zip, you should have the following directories/files:


    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  2. Upload: (in the below instructions 'yourforum' would be where you have vBulletin installed)
    • /upload/solved.php to /yourforum/solved.php
    • /upload/images/buttons/marksolved.gif to /yourforum/images/buttons/marksolved.gif (upload to each style folder, if you have more than one style)
    • /upload/includes/xml/bitfield_solvedthread.xml to /yourforum/includes/xml/bitfield_solvedthread.xml
  3. Import the product, product-solvedthreads.xml by going to: AdminCP -> Plugins & Products -> Manage Products -> [Add/Import Product]
  4. Make the following template edits to all of your installed styles:

    SHOWTHREAD

    Find:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    Add after:

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  5. Set options in AdminCP > Settings > Options > Solved Threads
  6. Edit Solved Threads Permissions > Can Mark Threads as Solved for each usergroup.
  7. To setup the forums it can be used in, follow the instructions in this post.

Upgrade
  1. Re-import the product, product-solvedthreads.xml, with "Allow Overwrite" set to yes
  2. Upload the files/folders in the "upload" folder, allowing it to overwrite the old files.

That's it! Enjoy! :)

Changelog
2.0.1 - July 30, 2010
- Changes to solved.php, to check for errors while saving thread, changed how threadinfo is pulled.
- Changes to bitfield_solvedthread.xml, removed the "install" attribute, doesn't seem to work anyway.
- Changes to product-solvedthread.xml, install process. Gave the install a small delay between rebuilding prefix datastore (after adding prefixset), and creating prefix.
- Changes to product-solvedthread.xml, plugin. Removed check for can_use_prefix function, as vB 3.8 + includes it, and this mod is for 4.0

2.0.0 - February 3, 2010
- Updated to vBulletin 4

1.1.2 - January 15, 2010
- Updated the product file, permissions, and phrases. This should, hopefully, resolve the blank page problems, along with the permission not showing up for usergroups.

1.1.1 - July 21, 2009
- Updated the product plugins and phrases, this should solve the blank page problem, and the problem of the option not showing in Admincp for ug permissions.

1.1.0 - April 14, 2009
- Small updates to xml file, no version # change. If it works for you, no need to do anything.
- If you have problems uninstalling, please see this post.

1.1.0 - April 12, 2009
- Updated for 3.7 & 3.8
- Now uses the built-in Thread Prefix system
- Instead of 'excluding' forums, since using the Thread Prefix system, you can choose which forums this will be shown in.

1.0.1 - July 12, 2007
- Added the ability to unsolve a thread.
- Added the ability to exclude this in certain forums
- Added the ability to change the prefix in that acp

1.0.0 - June 8, 2007
- Initial release.



If you use this modification, please >> Mark As Installed, and consider Nominate for MOTM and Support Developer << :)



NOTE: This mod is marked "unsupported", but I'll try my best (as time permits) to help those who have marked as installed.

Eric 04 Feb 2010 00:38

~ reserved ~

crazyace 04 Feb 2010 01:03

This could come in handy :-)

Bouncer222 04 Feb 2010 01:41

is it possible for you to kinda reverse this... here is what I mean..

Make it so that a new thread in a specified forum is not replie-able by anyone except certain usergroups.. once those usergroup(s) change prefix to [APPROVED] then anyone can reply

is that possible please?

fourat 04 Feb 2010 06:15

Thanks
Is there mod like this for 3.8.4 ?

argothiusz 04 Feb 2010 07:11

Tagged until there is a version with auto edit for all templates xD

Forum Lover 04 Feb 2010 08:01

In my forum sometime member open any thread for support, and other member help them out. Will it be possible for a thread opener to use this also? I mean asking this function along with based on usergroup permissions which is already done.

Tagged but looking forward at its most. :)

TimberFloorAu 04 Feb 2010 08:05

Quote:

Originally Posted by argothiusz (Post 1974439)
Tagged until there is a version with auto edit for all templates xD

Dont be lazy lol. Theres only one template edit to do, per theme.

Hornstar 04 Feb 2010 08:33

I'd like this if it also moved the thread to a specific forum too (as an option)

Thanks.

Welshy2008 04 Feb 2010 08:44

Ah Bliss.


Thank You. Tagged. :D

Welshy2008 04 Feb 2010 08:49

Quote:

Originally Posted by fourat (Post 1974417)
Thanks
Is there mod like this for 3.8.4 ?


Yes, Mate - Mark Threads as 'Solved' for vB 3.8.x

kisanjong 04 Feb 2010 09:47

working great thanks - installed - 5*

Gnoll 04 Feb 2010 10:45

Tagged for future use :)

KevinGupta 04 Feb 2010 11:09

tagged until someone or you release it in just uploading/importing files :D
Don't like doing much template edits :(

but a VERY nice mod & a great idea :D
CHEERS :D thanks!

Eric 04 Feb 2010 18:58

Regarding the comments about template edits... it's just one edit? Not that hard IMHO. If there was a template_hook I could use, I would - but there aren't any int he location this is added.

I could probably have it edit the template cache and use PHP to add it in, but I'd rather not.


All times are GMT. The time now is 18:21.

Powered by vBulletin® Version 3.8.14
Copyright © 2020, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.