![]() |
Quote:
|
Quote:
Im sure alot would love to have your code :) Btw Is it possible with this mod that the usergroup can make it "solve" and set it back to "unsolved" as often as they want? Or is it only possible if they made that thread themselves? |
as I can give some color to Solved
|
Hey guys,
I need this or something similar in one of my forum sites to be used only in a site support sub-forum. I have not read every single post in this thread so excuse me if this has been covered. I understand it uses usergroup permissions. This is fine and I suppose it would not be hard to add a conditional for forums as well. Has anyone done this? I do not want moderators and admins to have the option to mark solved all over the site. I would also like to know if anyone has this working successfully on 4.2 with a custom theme. if so did you have to customize? Does this use existing css or it's own? If you could supply a link so I can test that would be awesome. Thanks, Rich |
Its working with vb 4.2.1
|
Quote:
|
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
|
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 :) |
Quote:
|
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' |
Had to alter the uninstall code to get it to uninstall without the fatal error.
|
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... |
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.
|
let me know if I can do several way to use a new place to settle and accepted our
|
Does this work on 4.2.2?
NM, just tested and it works fine. |
I install it on 4.2.2 but I don't see it in the list.
https://vborg.vbsupport.ru/external/2014/05/78.png |
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 |
Quote:
from there, this code you need to add it to your showthread template to see the button: HTML Code:
<vb:if condition="$show['solvedthread']"> <li><a href="solved.php?{vb:raw session.sessionurl}do=marksolved&t={vb:raw threadid}">{vb:rawphrase solvedthread_marksolved}…</a></li> <vb:else /> <vb:if condition="$show['solvedthread_unsolve']"> <li><a href="solved.php?{vb:raw session.sessionurl}do=markunsolved&t={vb:raw threadid}">{vb:rawphrase solvedthread_markunsolved}…</a></li> </vb:if> </vb:if> |
I can confirm this is working on 4.2.2 Patch Level 1 :D
|
1 Attachment(s)
Is there anyway to remove the following prefix option when starting a new thread in a Q & A forum?
https://vborg.vbsupport.ru/attachmen...1&d=1408869921 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: https://vborg.vbsupport.ru/attachmen...1&d=1408870162 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: Code:
<vb:if condition="$prefix_options"> 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: Code:
<!-- Start hiding the prefix option if Q & A thread --> Code:
<vb:if condition="$forumid == 16"> To find this out, you can execute the following SQL against your DB: Code:
select * from forumprefixset; https://vborg.vbsupport.ru/attachmen...1&d=1408873908 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: Code:
SELECT forumid from forumprefixset WHERE prefixsetid = 'solvedthread'; 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 Code:
<!-- Start hiding the prefix option if Q & A thread --> 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. https://vborg.vbsupport.ru/attachmen...1&d=1408916968 Then I added the following PHP code: Code:
$result = $vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "forumprefixset WHERE prefixsetid = 'solvedthread'"); Find: Code:
<vb:if condition="$prefix_options"> Code:
<!-- Start hiding the prefix option if Q & A thread --> Code:
vB_Template::preRegister('newthread', array('returnSolvedForumIDS' => $returnSolvedForumIDS)); 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 |
Hi,
How can I translate to French? Thank you :) |
Edit the phrases that belong to the mod with Phrase Manager.
|
Quote:
--------------------- How can I have SOLVED in Bold font? https://vborg.vbsupport.ru/external/2014/11/8.jpg Thank you. |
Hi,
A few minutes ago, I installed this mod in vb 4.2.2 pl2. Works but not appears any button of Solved. I search in SHOWTHREAD template the code that indicate: Code:
<vb:if condition="$show['addpoll']"> Code:
<vb:if condition="$show['addpoll']"> The button not appears and I search for view the problem but I don't view what are the problem. Regards. |
Quote:
You have to Add New Prefix Set https://vborg.vbsupport.ru/external/2014/11/1.jpg |
Quote:
https://vborg.vbsupport.ru/external/2014/11/2.jpg |
Some user with this mod and vb 4.2 pl3 have visible the button of Solved?
I can't made for appears this button, and if not appears.... Thanks. |
Works with 4.2.5. Had initially the same problem that it was not showing up under "thread tools" although usergroup permissions were correctly set, etc. Found what was causing the issue; if anyone else has this problem, make sure to check that ALL forums AND sub-forums where you want this mod to work are selected under Thread Prefixes > Thread Prefix Manager. Selecting only a parent forum will not lead to the changes being inherited by the child forums, so they have to be selected individually.
|
Yep can confirm working on 4.2.5, just installed and working great
|
Hi :-)
is it possible to add a button to go to the solution as this forum bellow: https://forums.autodesk.com/t5/autoc...e/td-p/8910765 the user who asked for a solution choose the best solution. https://vborg.vbsupport.ru/external/2019/07/11.jpg https://vborg.vbsupport.ru/external/2019/07/12.jpg Thank you ;-) |
Quote:
https://vborg.vbsupport.ru/showthread.php?t=269776 https://vborg.vbsupport.ru/showthread.php?t=322478 https://vborg.vbsupport.ru/showthread.php?t=293596 |
Thank you z3r0 ;-)
I'll check it. |
All times are GMT. The time now is 09:57 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|