Best Answer

Best Answer Buttons - Best Answer

Best Answer Buttons

by pdy » Mon Jun 10, 2019 8:07 pm

Hi kinerity

Great Extension, thank you.

In your screen shots there are images instead of just the tick that I can see in my 3.2.7 PHPBB installation,
Best Answer 2.jpg
Your Screen shots:
Best Answer.jpg
Best Answer.jpg (28.86 KiB) Viewed 334 times
How do I use these images?

Many thanks
Phil
pdy
Registered User
Posts: 10
Joined: Fri May 29, 2015 7:37 am

Re: Best Answer Buttons

by Kailey » Mon Jun 10, 2019 9:47 pm

Those images are from an older version of the extension and are not available.
Kailey Snay - Community Team Leader
Knowledge Base | Documentation | Community rules
If you have any questions about the rules/customs of this website, feel free to send me a PM.

My little corner of the world | Administrator @ phpBB Modders
User avatar
Kailey
Community Team Leader
Community Team Leader
Posts: 3960
Joined: Mon Sep 01, 2014 1:00 am
Location: sudo rm -rf /
Name: Kailey Snay

Re: Best Answer Buttons

by pdy » Tue Jun 11, 2019 7:47 am

OK thanks kinerity. I may have a look to see if I can reinstate the images as I think they can look better in some forums.

Many thanks

Phil
pdy
Registered User
Posts: 10
Joined: Fri May 29, 2015 7:37 am

Re: Best Answer Buttons

by OlstaDesigns » Fri Feb 03, 2023 11:17 pm

For anyone wanting a button style look that says ANSWERED, you can try this. Copy the following files from /ext/kinerity/bestanswer/styles/prosilver/template/event to your theme /ext/kinerity/bestanswer/styles/[YOUR_THEME}/template/event:
  • forumlist_body_last_post_title_prepend.html
  • mcp_topic_postrow_attachments_after.html
  • mcp_topic_topic_title_before.html
  • search_results_topic_title_after.html
  • topiclist_row_prepend.html
  • viewtopic_body_postrow_post_notices_before.html
  • viewtopic_topic_title_prepend.html
In the copied files change this line:

Code: Select all

{% if searchresults.S_ANSWERED or topicrow.S_ANSWERED %}<i class="icon fa-check fa-fw icon-green" aria-hidden="true"></i>{% endif %}
to this:

Code: Select all

{% if searchresults.S_ANSWERED or topicrow.S_ANSWERED %}<i class="icon fa-check fa-fw icon-green" aria-hidden="true"></i><span class="ba-answered">ANSWERED</span>{% endif %}
create or copy the file /ext/kinerity/bestanswer/styles/prosilver/theme/bestanswer.css to your them and add the following into the CSS file:

Code: Select all

span.ba-answered {
    color: white;
    font-weight: bold;
    background-color: green;
}
Answered.JPG
Answered.JPG (42.17 KiB) Viewed 56 times
Regards Ollie
OlstaDesigns
Registered User
Posts: 3
Joined: Fri Feb 03, 2023 1:51 pm