[DEV] Username BBCode

A place for Extension Authors to post and receive feedback on Extensions still in development. No Extensions within this forum should be used within a live environment!
Scam Warning
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: Extensions Development rules

IMPORTANT FOR NEEDED EVENTS!!!
If you need an event for your extension please read this for the steps to follow to request the event(s)
User avatar
donsenilo
Registered User
Posts: 359
Joined: Wed Oct 08, 2014 6:23 pm
Name: Markus
Contact:

Re: [DEV] Username BBCode

Post by donsenilo »

It does not work.

And btw.: why should it work by only renaming the file ?
User avatar
salvocortesiano
Registered User
Posts: 190
Joined: Mon Mar 22, 2010 1:49 pm
Location: Florence (Italy)
Name: Salvo Cortesiano
Contact:

Re: [DEV] Username BBCode

Post by salvocortesiano »

No rename nothing!

open:

Code: Select all

ext/vse/abbc3/styles/all/template/abbc3_posting_buttons.html
find:

Code: Select all

</script>
after put:

Code: Select all

<script type="text/javascript">
		// <![CDATA[
		function username_copy(){
		var username_copy = '[username' + $('#hide_username').val() + ']'+ $('#hide_username option:selected').text() + '[/username]';
		document.forms['postform'].message.value += username_copy;
		document.forms['postform'].message.focus();
		return false;}
		// ]]>
</script>
find:

Code: Select all

</select>
{% else %}
between <select> and {% else %} put this:

Code: Select all

<!-- IF not S_PRIVMSGS -->
							<select class="bbcode-username-" id="hide_username" onchange="username_copy();" style="font-size:11px;" title="{{ lang('SELECT_USERNAME') }}">
								<option value="#" selected="selected" style="display: none">{L_SELECT_USERNAME}</option>
								<!-- BEGIN username_bb -->
								<option value="{username_bb.USERNAME_BB_VALUE}">{username_bb.USERNAME_BB_USER}</option>
								<!-- END username_bb -->
							</select>
						<!-- ENDIF -->
Save the file and upload. Refresh the cache ;)
Best regards
The best way to predict the future is to invent it!
Image
User avatar
potku
Registered User
Posts: 980
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: [DEV] Username BBCode

Post by potku »

This is another good one by dmzx. :)

In the future, could this EXT send out notifications?
Potku.net

"Before I speak, I have something important to say."

- Groucho Marx
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [DEV] Username BBCode

Post by spaceace »

installed and works great on the posting page but usernames do not show when trying to use it with my chat. the username bbcode displays but no usernames are in it. what do i need to do to fix this?
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [DEV] Username BBCode

Post by spaceace »

spaceace wrote:usernames do not show when trying to use it with my chat. the username bbcode displays but no usernames are in it. what do i need to do to fix this?
found out that i just needed to change the core event :lol:
User avatar
german-german
Registered User
Posts: 75
Joined: Sun Jan 15, 2017 1:56 am
Location: Buenos Aires - Argentina
Name: Germán A. Sassone
Contact:

Re: [DEV] Username BBCode

Post by german-german »

I've followed all the instructions, and It didn't work in my forum

When I comment, I get something like this, eg: [username|#3399FF|bold|239]Dark[/username]

My forum Version: 3.2.0
User avatar
donsenilo
Registered User
Posts: 359
Joined: Wed Oct 08, 2014 6:23 pm
Name: Markus
Contact:

Re: [DEV] Username BBCode

Post by donsenilo »

Hi

I like this ext very much, but it does not work on my 3.2.1. with the Advanced BBCode Box installed.
I hope this can be fixed.
User avatar
dmzx
Registered User
Posts: 853
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [DEV] Username BBCode

Post by dmzx »

Will check when i have some time.
Contact me on dmzx-web.net
Buy me a beer Donate and try binance.com or try CentOS Web Panel
jemiNii
Registered User
Posts: 77
Joined: Mon Oct 05, 2015 3:46 am
Location: Los Angeles
Contact:

Re: [DEV] Username BBCode

Post by jemiNii »

spaceace wrote: Tue Aug 30, 2016 10:22 pm
spaceace wrote:usernames do not show when trying to use it with my chat. the username bbcode displays but no usernames are in it. what do i need to do to fix this?
found out that i just needed to change the core event :lol:
What did you change - I too would like it to work in ABBC3 with mChat ....
User avatar
spaceace
Registered User
Posts: 1999
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [DEV] Username BBCode

Post by spaceace »

jemiNii wrote: Thu May 17, 2018 8:28 pm
spaceace wrote: Tue Aug 30, 2016 10:22 pm
spaceace wrote:usernames do not show when trying to use it with my chat. the username bbcode displays but no usernames are in it. what do i need to do to fix this?
found out that i just needed to change the core event :lol:
What did you change - I too would like it to work in ABBC3 with mChat ....
i changed the core event used in the listener on line 38 from core.modify_posting_auth to core.page_header. i don't use either of those extensions so i can't say if that change will work or not but did for use in my chat extension ;)
Post Reply

Return to “Extensions in Development”