I'm going to incorporate this change in the next version.
Happens on my forum also.@Lior. there is a bug. If you have one of your posts previously marked as best answer in a thread and someone replies to the thread at some point later, you get an alert saying that someone marked your post as best answer. This is when you're not necessarily watching the thread, either.
So if 30 people reply in a thread in which you have had a post marked as best answer, you get 30 alerts telling you someone marked your post as best answer.
Did I explain that well enough?
v1.6.0 introduces the following changes:
- In the best answers list under the first post, answers can now be previewed by hovering over the link to the post.
- It is now possible to choose where the "mark as best answer" button would be located in posts: either in the public controls or in the private controls.
- The thread rebuild error that occurred in threads where a deleted post had previously received a vote is now fixed.
- A bug which caused multiple alerts to users whose...
Got it, please re-download the release and try again.Using Chris D installer/upgrade addon.
I got this error:
Callback BestAnswer_Listener::template_hook is invalid (Invalid Method).
Will contact you via a PC.Any answer???
Please check the email address you used to purchase the add-on, I've sent an email to all of the users.
I'm afraid the add-ons aren't compatible and I don't really see how they can be made compatible in xF1.@Lior, is it compatible with Sticky First Post add-on now?
$joinOptions['joinTables'] = '
LEFT JOIN xf_thread AS thread ON
(thread.thread_id = post.thread_id AND thread.post_sticky = 1)'.$joinOptions['joinTables'];
//Extended the WHERE clause to include our first post
return $this->fetchAllKeyed('
SELECT post.*
' . $joinOptions['selectFields'] . '
FROM xf_post AS post
' . $joinOptions['joinTables'] . '
WHERE post.thread_id = ?
AND (((' . $stateLimit . ')
' . $this->addPositionLimit('post', $limitOptions['limit'], $limitOptions['offset']) . ') OR (post.post_id = thread.first_post_id AND thread.post_sticky))
ORDER BY post.position ASC, post.post_date ASC
$joinOptions['joinTables'] = '
LEFT JOIN xf_thread AS thread_sfp ON
(thread_sfp.thread_id = post.thread_id AND thread_sfp.post_sticky = 1)'.$joinOptions['joinTables'];
//Extended the WHERE clause to include our first post
return $this->fetchAllKeyed('
SELECT post.*
' . $joinOptions['selectFields'] . '
FROM xf_post AS post
' . $joinOptions['joinTables'] . '
WHERE post.thread_id = ?
AND (((' . $stateLimit . ')
' . $this->addPositionLimit('post', $limitOptions['limit'], $limitOptions['offset']) . ') OR (post.post_id = thread_sfp.first_post_id AND thread_sfp.post_sticky))
ORDER BY post.position ASC, post.post_date ASC
:target:before
{
content:"";
display:block;
height:60px; /* fixed header height with 20px extra to allow a margin*/
margin:-40px 0 0; /*header height*/
}
Please send me a link to a thread on your forum which demonstrates the issue via a PC.Hello @Lior.
I wonder if you could help me please.
How are you adding the anchor to the best answer? The reason being, I have a fixed header, so when the best answer is linked to via the "Best answer list" which appears under the first post, the top portion of the best answer post is hidden behind the header.
Ideally, I need to make so that the anchor has a margin so that I can "push" the post down to allow for my header.
Hope that makes sense
Thank you
Richard
You've chosen to enable the functionality only in threads with the Best Answer prefix. Select the Cat Q & A prefix too and it should work.@Lior I have just installed this add on and it seems to do nothing
Settings
View attachment 103110
View attachment 103111
Permissions
User Permissions
View attachment 103112
Moderator Permissions
View attachment 103113
The Thread
View attachment 103114
We use essential cookies to make this site work, and optional cookies to enhance your experience.