Reply button at end of topic
-
@dunlix said in Reply button at end of topic:
@klockprat you could use
nodebb-plugin-customize
and add it as HTML yourself.Maybe you will agree to upload the html you edited?
-
@chez said in Reply button at end of topic:
@dunlix said in Reply button at end of topic:
@klockprat you could use
nodebb-plugin-customize
and add it as HTML yourself.Maybe you will agree to upload the html you edited?
Absolutely, as soon as I have something working I'll share here if you are interested!
I will probably change the quick reply template and change that into a button that opens the composer.
-
@chez said in Reply button at end of topic:
@dunlix said in Reply button at end of topic:
@klockprat you could use
nodebb-plugin-customize
and add it as HTML yourself.Maybe you will agree to upload the html you edited?
I replaced the quick reply template with this
<!-- IF privileges.topics:reply --> <div class="clearfix quick-reply kp-quickreply"> <div class="pull-right"> <div component="topic/reply/container" class="btn-group action-bar bottom-sheet <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->"> <a href="{config.relative_path}/compose?tid={tid}&title={title}" class="btn btn-sm btn-primary" component="topic/reply" data-ajaxify="false" role="button"><span class="visible-xs-inline visible-sm-inline visible-md-inline visible-lg-inline"> [[topic:reply]]</span></a> </div> </div> </div> <!-- ENDIF privileges.topics:reply -->
This way I can enable the button by enable quick reply. As you see I have removed the option to reply as a thread, I have also removed the icon and always show the text.
-
@klockprat said in Reply button at end of topic:
<!-- IF privileges.topics:reply -->
<div class="clearfix quick-reply kp-quickreply">
<div class="pull-right">
<div component="topic/reply/container" class="btn-group action-bar bottom-sheet <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->">
<a href="{config.relative_path}/compose?tid={tid}&title={title}" class="btn btn-sm btn-primary" component="topic/reply" data-ajaxify="false" role="button"><span class="visible-xs-inline visible-sm-inline visible-md-inline visible-lg-inline"> Reply</span></a>
</div>
</div>
</div>
<!-- ENDIF privileges.topics:reply -->Can you direct me under which category should it be injected?
-
@chez said in Reply button at end of topic:
@klockprat said in Reply button at end of topic:
<!-- IF privileges.topics:reply -->
<div class="clearfix quick-reply kp-quickreply">
<div class="pull-right">
<div component="topic/reply/container" class="btn-group action-bar bottom-sheet <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->">
<a href="{config.relative_path}/compose?tid={tid}&title={title}" class="btn btn-sm btn-primary" component="topic/reply" data-ajaxify="false" role="button"><span class="visible-xs-inline visible-sm-inline visible-md-inline visible-lg-inline"> Reply</span></a>
</div>
</div>
</div>
<!-- ENDIF privileges.topics:reply -->Can you direct me under which category should it be injected?
In
partials/topic/quickreply.tpl