[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!
Ideas Centre
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: 233
Joined: Wed Oct 08, 2014 6:23 pm
Name: Markus
Contact:

Re: [DEV] Username BBCode

Post by donsenilo » Thu Jul 21, 2016 6:15 pm

It does not work.

And btw.: why should it work by only renaming the file ?

User avatar
salvocortesiano
Registered User
Posts: 148
Joined: Mon Mar 22, 2010 1:49 pm
Location: Florence (Italy)
Name: Salvo Cortesiano
Contact:

Re: [DEV] Username BBCode

Post by salvocortesiano » Mon Aug 22, 2016 4:35 am

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: 705
Joined: Wed Dec 22, 2004 10:26 pm
Location: Tampere, Finland
Contact:

Re: [DEV] Username BBCode

Post by potku » Sun Aug 28, 2016 12:58 pm

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: 1743
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [DEV] Username BBCode

Post by spaceace » Mon Aug 29, 2016 10:10 pm

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: 1743
Joined: Wed Jan 30, 2008 8:50 pm
Contact:

Re: [DEV] Username BBCode

Post by spaceace » 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:

User avatar
german-german
Registered User
Posts: 21
Joined: Sun Jan 15, 2017 1:56 am
Name: Germán A. Sassone
Contact:

Re: [DEV] Username BBCode

Post by german-german » Sat Jan 28, 2017 8:12 pm

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: 233
Joined: Wed Oct 08, 2014 6:23 pm
Name: Markus
Contact:

Re: [DEV] Username BBCode

Post by donsenilo » Mon Sep 18, 2017 10:37 am

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: 696
Joined: Fri Sep 05, 2014 6:48 am
Location: The Netherlands
Contact:

Re: [DEV] Username BBCode

Post by dmzx » Mon Sep 18, 2017 1:35 pm

Will check when i have some time.
dmzx-web.net - Need a Host? - Want to Donate

Post Reply

Return to “Extensions in Development”

Who is online

Users browsing this forum: Bing [Bot], gio73, oBot and 18 guests

cron