3.1.x Extensions Database 3.1 / 3.2Username BBCode

<span class="qte-attr qte_31_32-qte">3.1.x &amp; 3.2.x</span>
Post Reply Previous topicNext topic
User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Windows 10 Chrome

Username BBCode

Post by Sniper_E »

Extension Name: Username BBCode
Author: Sniper_E

Extension Description: Adds user's username to posting.



Screenshots:
Image

Extension Download:
username_bbcode_1.0.0.zip

Installation:
  1. Download the latest release.
  2. In the `ext` directory of your phpBB board, create a new directory named `sniper` (if it does not already exist).
  3. Copy the `username` folder to `/ext/sniper/` if done correctly, you'll have the main extension class at
    (your forum root)/ext/sniper/username/composer.json
  4. Navigate in the ACP to `Customise -> Manage extensions`
  5. Look for ` Username BBCode` under the Disabled Extensions list, and click its `Enable` link.
You do not have the required permissions to view the files attached to this post! Maybe your post count is too low.
Last edited by Sniper_E on 10 May 2019, 21:40, edited 1 time in total.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Username BBCode

Post by martin »

Shall make some changes as it shows on posting page even tho bbcode is set to no also dont work in mchat.
Image

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Android Chrome

Re: Username BBCode

Post by Sniper_E »

The bbcode this ext creates in acp / posting is set to no show in posting. That bbcode should not show in posting.There are event templates that create a username bbcode icon that inserts [username] into the textarea.

It works in mchat also but the page has to be refreshed for the name to show. Or someone can join your server after you posted it in mchat and they will see it because their page has to load.

In Posting, the page has to refresh on preview or submit so it works fine there. But if you see some changes to make it work better that I don't see... share!

Hey, it works good in Board Announcements and Contact Admin also.

User avatar

martin
Admin
Admin
Posts: 5105
Joined: 06 Apr 2014, 16:12
    Linux Chrome

Re: Username BBCode

Post by martin »

Ahh yes i see a refresh is needed if you want to see it :tumbsyes:

User avatar

Topic Author
Sniper_E
VIP
VIP
Posts: 1157
Joined: 14 Oct 2014, 19:01
    Android Chrome

Re: Username BBCode

Post by Sniper_E »

Thanks for looking at it. Hey, maybe a refresh can be added to the onclick= codes in the button for mchat. Maybe?

I did cheat to make it work in mchat and added a line in mchat/styles/all/template/javascript/mchat.js (line 410)

Code: Select all

        addMessages: function ($messages) {
            location.reload(); 
Works great in mchat that way.

But I need a functon in this extension that will read that event,
if data-mchat-action { location.reload(); }
No idea how to do that from within this extension.

User avatar

ivailo95
Users
Users
Posts: 918
Joined: 02 Feb 2018, 12:04
    Android Chrome

Re: Username BBCode

Post by ivailo95 »

Nice work :thumbup:
Feed like a disease
And bring them to their knees
They'll pay for their deceit

Post Reply Previous topicNext topic