To all users interesting todo the same thing I'm trying to achieve, here are my progresses on this (and also, on MySupport's features!).
First of all you'll have to modify inc/plugins/mysupport.php to display the best answer's check mark to all users, but without the unmark link attached. This isn't hard.
Open mysupport.php and find on line 2176:
if($mybb->user['uid'] == $thread['uid'])
{
if($thread['bestanswer'] == $post['pid'])
{
$bestanswer_img = "mysupport_bestanswer";
$bestanswer_alt = $lang->unbestanswer_img_alt;
$bestanswer_title = $lang->unbestanswer_img_title;
$bestanswer_desc = $lang->unbestanswer_img_alt;
}
else
{
$bestanswer_img = "mysupport_unbestanswer";
$bestanswer_alt = $lang->bestanswer_img_alt;
$bestanswer_title = $lang->bestanswer_img_title;
$bestanswer_desc = $lang->bestanswer_img_alt;
}
eval("\$post['mysupport_bestanswer'] = \"".$templates->get('mysupport_bestanswer')."\";");
}
This checks if user is the author of the thread, and returns the image depending on the post status: if best answer, then returns mysupport_bestanswer, if not, returns mysupport_unbestanswer, which are declared into language file.
Let's trick it to think you aren't the thread starter, and display mysupport_bestanswer only below the actual best answer, not every post.
Add after:
else { // what to display to users that aren't thread starters?
if($thread['bestanswer'] == $post['pid']) // if best answer, let's display the image and other stuff!
{
$bestanswer_img = "mysupport_bestanswer";
$bestanswer_alt = $lang->unbestanswer_img_alt;
$bestanswer_title = $lang->unbestanswer_img_title;
$bestanswer_desc = $lang->unbestanswer_img_alt;
}
eval("\$post['mysupport_bestanswer'] = \"".$templates->get('mysupport_bestanswer_image')."\";"); // variable in postbit templates will be parsed to match another template - we need this to avoid displaying the unmark link!
}
Add a template and call it
mysupport_bestanswer_image. Put there the image you want to display to users that aren't thread starter (which will see the image you want contained into mysupport_bestanswer template).
I've used some divs and CSS classes which are a lot better than a single image IMHO. You can combine them into a single CSS sprite and manage it without editing templates.
Next step is: pick the best answer and display it right after first post!