Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+1 vote
507 views
in Plugins by
Is it possible to prevent the "answer selected by [user]" text showing up on a site? I still want people to select best answer, but it kind of gets in the way to have it appearing in all activity.

So can I prevent the event from being added to the "event stream"?
Q2A version: 1.5.2

2 Answers

0 votes
by
Hi Scott, I would probably change the function process_event from qa-event-logger.php:

And tell it:

function process_event($event, $userid, $handle, $cookieid, $params)
        {

if ($event != "in_a_select" &&  $event != "in_a_unselect" && $event != "a_select" && $event != "a_unselect" ) {

// log ...

}

}
0 votes
by

I think the best way is to comment out the query in qa_db_post_set_selchildid(...) in qa-db-post-update.php that follows:

if (isset($selchildid) && isset($lastuserid) && isset($lastip))

That will stop the question being marked as updated when an answer is selected, so that event won't show up in the global activity stream.

...