![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||
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):
![]() 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?
Upgrade
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. Download Now Only licensed members can download files, Click Here for more information. Screenshots Show Your Support
|
#166
|
||||
|
||||
Originally Posted by RichieBoy67
This mod will allow you to specify which forums the mod will work on. It should also not be affected by custom styles.
![]()
No members have liked this post.
|
#167
|
||||
|
||||
Great mod, works perfectly on 4.2.1! Be sure to set Usergroup permissions first, otherwise the Prefixes settings won't give you the option for forum permissions
No members have liked this post.
|
#168
|
|||
|
|||
Guys how can I add it as a new button "Solved" beside the +Reply to thread.. because the button where it is now isnt very seen.. no one will notice
I would gladly donate to someone who could do this for me ![]() No members have liked this post.
Last edited by Wolver2; 08 Aug 2013 at 16:41. |
#169
|
||||
|
||||
I'm a new installer onto 4.2.1. Have set permissions in usergroup, permissions for the prefixes, and selected which forums to show in... and it doesn't show in the dropdown. Yes, template edited as instructed, files uploaded, and product installed.
No members have liked this post.
|
#170
|
||||
|
||||
Super... I tried to remove the product, got a fatal error. so I installed it again, overwriting. Now when I try to set usergroups to yes:
MySQL Error : Unknown column 'solvedthread_permissions' in 'field list' No members have liked this post.
|
#171
|
||||
|
||||
Had to alter the uninstall code to get it to uninstall without the fatal error.
No members have liked this post.
|
#172
|
|||
|
|||
Hi Eric,
As user of your mod since the beginning, i'm wondering if you are working on a vb5 version? I would really need to have this working in vb5... Without this mod, we will never upgrade i guess, we can't live without...
__________________
Dutch Pc Helpforum - www.pc-helpforum.be No members have liked this post.
|
#173
|
||||
|
||||
I believe another developer would have to pick up work on the mod to port it to vB5 as Eric said, he is very limited with time as of now.
No members have liked this post.
|
#174
|
|||
|
|||
let me know if I can do several way to use a new place to settle and accepted our
No members have liked this post.
|
#175
|
|||
|
|||
Does this work on 4.2.2?
NM, just tested and it works fine. No members have liked this post.
Last edited by djvj; 01 May 2014 at 10:14. |
#176
|
|||
|
|||
I install it on 4.2.2 but I don't see it in the list.
![]() No members have liked this post.
|
#177
|
|||
|
|||
Hi
thank you Eric. very nice hack would you please tell me is that possible to use this hack as a button? I need to add a button in first post of thread to let starter set solved or not. best regards No members have liked this post.
|
#178
|
||||
|
||||
Originally Posted by aminp30
maybe you didn't read whole main post...![]()
from there, this code you need to add it to your showthread template to see the button:
__________________
Shoot me a PM if I didn't reply in your post when you needed help. I can't remember things easily ![]() No members have liked this post.
|
#179
|
|||
|
|||
I can confirm this is working on 4.2.2 Patch Level 1
![]() No members have liked this post.
Last edited by majickal; 23 Aug 2014 at 14:11. |
#180
|
||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||
![]()
Is there anyway to remove the following prefix option when starting a new thread in a Q & A forum?
I guess, I'm wondering if there is some form of identifier I can test against to hide this option when a forum is detected that is running the solved feature. I found this: But am currently unsure how it is evaluated when the newthread template is evaluated. The following code block shows the section in the section I am referring to:
I'll keep digging and if I find a solution, I'll post it, else if someone else knows, please let me know. Cheers M update I have had some success with this: Starting @ line 45 in the newthread template, find the code noted above and replace with the one below:
you will note in the following line:
You will need to change the number 16 for whatever your Q & A forumid is. To find this out, you can execute the following SQL against your DB:
This will provide you a list of all forums where you have selected them as Q & A type forums as shown below: (I'm using mysql workbench in this example) Hope this helps someone. Next I'll see if I can get an array of forums based on the table forumprefixset SQL will be something like:
Once I can get this into an array and register that array as a variable vBulletin can accept, perhaps I can test against that array in the template and not have to manually code the forum ids in. This would mean a one time change in the newthread template and any forum could have this feature. Any help with this would be really awesome as I am really unfamiliar with the vBulletin codebase and have just started looking into it. I'll report back as I make progress. Cheers M Update Can select from an array now
Update So I got this working, I created a new plugin by using the Add New Plugin in the Products & Plugins section as shown below. The only reason I went down this route is to avoid changing any of the original plugins code. So I hope this method for extending the plugin is OK. Then I added the following PHP code:
Finally in the newthread template, as noted in the above template edits, the following change was made: Find:
Replace with:
The core bit of information I was missing, was the method used to return variables from PHP in a way that they can be used in conditional statements in vBulletin templates. This eluded me for a while but was the key to making the changes I required work. See below for the exact code I used to register the PHP variable for use in the template system:
As soon as this variable was registered, everything fell into place. ![]() You could easily modify the original Plugins PHP code to return this information. It is probably the best way forward too, as the method outlined in this post does add an additional query, which is not really required, as the same query exists in the original plugin. As stated previously, I did this to:
I hope this helps someone else understand how this system works. I'll continue to extend this plugin via the separate plugin code. Unless anyone has an issue with it, I'll keep posting updates on my progress. Hope you have found this useful. Cheers M No members have liked this post.
Last edited by majickal; 24 Aug 2014 at 23:38. |
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 08:53.