Username BBCode Buttonrequest thread:
http://www.phpbb.com/community/viewtopi ... #p12861138
with this solution you kill two flys with one clap:
- you need no bbcode
- the username txt is quotable
- also good for admin/mod edits in userpost (admin say: bla bla)
just click on the [Username] button and your name will be inserted.
openposting.php
findCode:
'USERNAME' => ((!$preview && $mode != 'quote') || $preview) ? $post_data['username'] : '',
after addCode:
'POSTNAME' => (($user->data['user_id'] != ANONYMOUS) ? $user->data['username'] : $user->lang['GUEST']),
openstyles/prosilver/template/posting_buttons.html
find (the second find)Code:
<!-- END custom_tags -->
after addCode:
<input type="button" class="button2" name="{POSTNAME}" value="{L_USERNAME}" onclick="insert_text('{POSTNAME}')" title="" />
clear all caches
can combined with
Topic Viewer BBCode