![]() |
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 |
All times are GMT. The time now is 12:19 AM. |
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:
|