MyBB Community Forums

Full Version: Increase Username Style Character Counts
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I use class in global.css for username style in ACP--> Usergroups but still it not accept my full code for username style.


I enter below code for Username style:
<span class="ABC"><b><img src="http://XXXXXXXXXX.zzz/1.png"><img src="http://XXXXXXXXXX.zzz/1.png">{username}<img src="http://XXXXXXXXXX.zzz/1.png"><img src="http://XXXXXXXXXX.zzz/1.png"></b></span>

but it accepts only below code:
<span class="ABC"><b><img src="http://XXXXXXXXXX.zzz/1.png"><img src="http://XXXXXXXXXX.zzz/1.png">{username}<img src="http://XXXXXXXXXX.zzz/1.png"><img src="http://XXXXXXXXXX.zzz/1.png"></b></sp 


I want below code to enter in Username style:
<span class="ABC"><b><img src="http://XXXXXXXXXX.zzz/1.png"><img src="http://XXXXXXXXXX.zzz/1.png"><img src="http://XXXXXXXXXX.zzz/1.png">{username}<img src="http://XXXXXXXXXX.zzz/1.png"><img src="http://XXXXXXXXXX.zzz/1.png"><img src="http://XXXXXXXXXX.zzz/1.png"></b></span>


Is there any way to increase character numbers in Username style?

Thank you.
The username style is limited in size in the database.
namestyle varchar(200)
This means, max 200 characters.

You could run this query to fix it.
ALTER TABLE `mybb_usergroups` CHANGE `namestyle` `namestyle` VARCHAR(300) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '{username}';

Notice, the 300 you could replace with the size you need.

Warning: Upgrades of MyBB could potentially break this in the future, you might have to re-run this trick then.
Thanks Kevin...It works.
+1 for this.
(2020-08-01, 08:57 PM)KevinVR Wrote: [ -> ]The username style is limited in size in the database.
namestyle varchar(200)
This means, max 200 characters.

You could run this query to fix it.
ALTER TABLE `mybb_usergroups` CHANGE `namestyle` `namestyle` VARCHAR(300) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '{username}';

Notice, the 300 you could replace with the size you need.

Warning: Upgrades of MyBB could potentially break this in the future, you might have to re-run this trick then.
 can you tell me how do i run it in my database please?
Just go to your phpmyadmin panel and click on tour forum database just look like mybb_your database name.
Click on SQL button and enter above code and click on go.