Here's a working demo.some link with a demo please.
works good with 1.4.4?
Here's a working demo.some link with a demo please.
works good with 1.4.4?
@Lior. might you be interested in coding this to improve the addon please?I think what is needed is an alert sent to the Best Answer thread starter, after a certain number of replies have been made, prompting them to pick a best answer.
No. The votes need to change in specific way which changes the best answer.Does the best answer always change when the votes change?
If the best answers change, then yes.So for example the first week post #2 has the most votes but a month/year later someone posts a better answer getting even more votes from the community.
Why would you want to replace the first post with the answer? Then you wouldn't know what the question was!replace the first post with the best answer
I mean, the second, exactly as in the video.Why would you want to replace the first post with the answer? Then you wouldn't know what the question was!
That's possible in all versions as far as I know. It's the 'Embed Answer in First Post' option.I mean, the second, exactly as in the video.
1.--> Question
2.--> Best answer
Currently, the Best Answer button is added to the post using the old hooks system (which I intend to change in the next version).I'd pay to have the Best Answer button moved directly to the left of Like button @Lior. Whaddaya say? Let's make it happen.
$contents .= $template->create('best_answer_post_private_controls', array('xenOptions' => XenForo_Application::get('options')->getOptions(), 'thread' => $template->getParam('thread'), 'post' => $hookParams['post'], 'marked' => XenForo_Model::create('BestAnswer_Model_BestAnswer')->postMarkedAsBestAnswer($hookParams['post'], $template->getParam('thread'))));
// $contents .= $template->create('best_answer_post_private_controls', array('xenOptions' => XenForo_Application::get('options')->getOptions(), 'thread' => $template->getParam('thread'), 'post' => $hookParams['post'], 'marked' => XenForo_Model::create('BestAnswer_Model_BestAnswer')->postMarkedAsBestAnswer($hookParams['post'], $template->getParam('thread'))));
Contacted via a PC.Got this error after install. Please help
Code:Server Error Mysqli prepare error: Not unique table/alias: 'thread' Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115 Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381 Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478 Zend_Db_Adapter_Abstract->query() in XenForo/Model.php at line 219 XenForo_Model->fetchAllKeyed() in StickyFirstPost/Model/Post.php at line 35 StickyFirstPost_Model_Post->getPostsInThread() in BestAnswer/Model/Post.php at line 30 BestAnswer_Model_Post->getPostsInThread() in XenForo/ControllerPublic/Thread.php at line 68 XenForo_ControllerPublic_Thread->actionIndex() in Waindigo/CustomFields/Extend/XenForo/ControllerPublic/Thread.php at line 16 Waindigo_CustomFields_Extend_XenForo_ControllerPublic_Thread->actionIndex() in Waindigo/CustomPostFields/Extend/XenForo/ControllerPublic/Thread.php at line 16 Waindigo_CustomPostFields_Extend_XenForo_ControllerPublic_Thread->actionIndex() in bdCache/XenForo/ControllerPublic/Thread.php at line 7 bdCache_XenForo_ControllerPublic_Thread->actionIndex() in StickyFirstPost/ControllerPublic/Thread.php at line 57 StickyFirstPost_ControllerPublic_Thread->actionIndex() in BestAnswer/ControllerPublic/Thread.php at line 18 BestAnswer_ControllerPublic_Thread->actionIndex() in XenForo/FrontController.php at line 347 XenForo_FrontController->dispatch() in XenForo/FrontController.php at line 134 XenForo_FrontController->run() in /home/nginx/domains/********.**/public/index.php at line 13
Yes, it's on my to-do list.@Lior. might you be interested in coding this to improve the addon please?
Version 1.3.0 is what you're looking for.purchased!
--
What version do this exactly?
Mark-as-Best-Answer-1.2.4.rar (15.5 KB)
Mark-as-Best-Answer-1.2.5.zip (17.8 KB)
Mark-as-Best-Answer-1.2.6.zip (18.3 KB)
Mark-as-Best-Answer-1.2.7.zip (18.3 KB)
Mark-as-Best-Answer-1.2.8.zip (18.4 KB)
Mark-as-Best-Answer-1.3.0.zip (19.4 KB)
Mark-as-Best-Answer-1.4.0.zip (23.3 KB)
Mark-as-Best-Answer-1.4.1.zip (23.3 KB)
Mark-as-Best-Answer-1.5.0.zip (25.7 KB)
Mark-as-Best-Answer-1.5.1.zip (25.6 KB)
The latest version works ok, but I need exactly the feature in the video.
replace the first post with the best answer. my xf is 1.4.4
Are you sure that the version 1.3.0 works and can do that in Xenforo 1.4.4?[...]
Version 1.3.0 is what you're looking for.
Sorry about the misleading video, I'm going to update it when I get a change.
Yes, it's on my to-do list.
@Lior.
Could you please add maximum times a member of particular usergroup to vote in a day ? (usergroup permission-based)
I think this is crucial for preventing "spam-voting" for this system.
Can't imagine if someone pursuing "best answer" trophy performs sock-doll-show with ridiculuous QA - asked and answered by himself (with different ids)![]()
Updated my reply above.[...]
EDIT: the addon now works perfectly, my problem was the permission of the node.
thank you Lior!
good job!
I want moved instead. what version do that?Just tested, and I've noticed the marked post is "moved" instead of "duplicated" ; Is it the expected behavior ? Because moving is weird as it lefts a hole in the discussion below if post was an answer of another post. If default behavior please consider an option to duplicate the post.
Go to the add-on's template modifications, and disable the following:@Lior.
Can you help me with instructions to remove tabs on member profile/member_view
I made 3 requests so far no help!
Do I uncheck any event code listerners?
Do I need to take out code from somewhere?
We use essential cookies to make this site work, and optional cookies to enhance your experience.