I have done some testing.kinerity wrote:I have not tested it on phpBB 3.2 yet.
Code: Select all
<!-- IF not postrow.S_FIRST_POST and postrow.S_AUTH -->
<!-- IF postrow.POST_ID == postrow.BESTANSWER_ID -->
<li><a href="{postrow.U_UNMARK_ANSWER}" title="{L_UNMARK_ANSWER}" class="button button-icon-only"><i class="icon fa-undo fa-fw" aria-hidden="true"></i><span class="sr-only">{L_BUTTON_UNMARK_ANSWER}</span></a></li>
<!-- ELSE -->
<li><a href="{postrow.U_MARK_ANSWER}" title="{L_MARK_ANSWER}" class="button button-icon-only"><i class="icon fa-check fa-fw" aria-hidden="true"></i><span class="sr-only">{L_BUTTON_MARK_ANSWER}</span></a></li>
<!-- ENDIF -->
<!-- ENDIF -->
That would be:Stoker 4.0 wrote:However I would prefer that best answer buttons on all other posts are removed when a post is marked as best answer. Then you would have to unmark before you can mark another as best answer.
Code: Select all
<!-- IF not postrow.S_FIRST_POST and postrow.S_AUTH -->
<!-- IF postrow.POST_ID == postrow.BESTANSWER_ID -->
<li><a href="{postrow.U_UNMARK_ANSWER}" title="{L_UNMARK_ANSWER}" class="button button-icon-only"><i class="icon fa-undo fa-fw" aria-hidden="true"></i><span class="sr-only">{L_BUTTON_UNMARK_ANSWER}</span></a></li>
<!-- ELSEIF not S_ANSWERED -->
<li><a href="{postrow.U_MARK_ANSWER}" title="{L_MARK_ANSWER}" class="button button-icon-only"><i class="icon fa-check fa-fw" aria-hidden="true"></i><span class="sr-only">{L_BUTTON_MARK_ANSWER}</span></a></li>
<!-- ENDIF -->
<!-- ENDIF -->
For 3.2, try this code for yourStoker 4.0 wrote:Maybe me problem is related to the fact that I run phpBB3.2.RC1
But the best answer button i missing:
http://imagizer.imageshack.com/img922/8958/T5ioXc.jpg
viewtopic_body_post_buttons_before.html
file:Code: Select all
<!-- IF not postrow.S_FIRST_POST and postrow.S_AUTH -->
<li>
<!-- IF postrow.POST_ID == postrow.BESTANSWER_ID -->
<a href="{postrow.U_UNMARK_ANSWER}" title="{L_UNMARK_ANSWER}" class="button button-icon-only"><i class="icon fa-times fa-fw" style="color: #D9534F;" aria-hidden="true"></i>{L_BUTTON_UNMARK_ANSWER}<span class="sr-only">{L_BUTTON_UNMARK_ANSWER}</span></a>
<!-- ELSE -->
<a href="{postrow.U_MARK_ANSWER}" title="{L_MARK_ANSWER}" class="button button-icon-only"><i class="icon fa-check fa-fw" style="color: #1D9D74;" aria-hidden="true"></i>{L_BUTTON_MARK_ANSWER}<span class="sr-only">{L_BUTTON_MARK_ANSWER}</span></a>
<!-- ENDIF -->
</li>
<!-- ENDIF -->
Code: Select all
<!-- IF S_CODE_UNTIDY and S_MESS_ON_INDEX Good If_Not_TIDY_Then_SUBMIT -->
When deleting themes and messages, an error occurs:
Code: Select all
SQL ERROR [ mysqli ]
[0]
SQL
No values specified for SQL IN comparison
BACKTRACE
FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 999
CALL: trigger_error()
FILE: [ROOT]/phpbb/db/driver/driver.php
LINE: 545
CALL: phpbb\db\driver\driver->sql_error()
FILE: [ROOT]/phpbb/db/driver/factory.php
LINE: 441
CALL: phpbb\db\driver\driver->sql_in_set()
FILE: [ROOT]/ext/kinerity/bestanswer/event/listener.php
LINE: 165
CALL: phpbb\db\driver\factory->sql_in_set()
FILE: (not given by php)
LINE: (not given by php)
CALL: kinerity\bestanswer\event\listener->delete_posts_in_transaction_before()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 184
CALL: call_user_func()
FILE: [ROOT]/vendor/symfony/event-dispatcher/EventDispatcher.php
LINE: 46
CALL: Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 60
CALL: Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
FILE: [ROOT]/phpbb/event/dispatcher.php
LINE: 46
CALL: phpbb\event\dispatcher->dispatch()
FILE: [ROOT]/includes/functions_admin.php
LINE: 1010
CALL: phpbb\event\dispatcher->trigger_event()
FILE: [ROOT]/includes/mcp/mcp_main.php
LINE: 1112
CALL: delete_posts()
FILE: [ROOT]/includes/mcp/mcp_queue.php
LINE: 84
CALL: mcp_delete_post()
FILE: [ROOT]/includes/functions_module.php
LINE: 676
CALL: mcp_queue->main()
FILE: [ROOT]/mcp.php
LINE: 312
CALL: p_master->load_active()
This has been published along with a demo URL. See the first post.
You still haven't told me what the problem is. Does the extension enable successfully? Did you set the option under each forum's settings for the ones you want it enabled on? Did you set permissions for each group? Do the buttons show in viewtopic? Do you see the checkmarks in viewforum/index/mcp/search? More info please!
Any prosilver derived style should work as advertised.