style username

Looking for an Extension? Have an Extension request? Post your request here for help. (Note: This forum is community supported; while there is an Extensions Development Team, said team does not dedicate itself to handling requests in this forum)
Anti-Spam Guide
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

style username

Post by Thunde »

Good morning, where can I find a way to do the same for my users, and if it is possible only for a group, thank you

https://gyazo.com/8d531285082d582ddccf988636581fb6
User avatar
halil16
Registered User
Posts: 1266
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

Re: style username

Post by halil16 »

Give me a link to that page. me do it.
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: style username

Post by Thunde »

halil16 wrote: Sat Sep 24, 2022 5:55 pm Give me a link to that page. me do it.
https://metin2.solutions/
my forum
https://www.metin4you.ro/
I only want for VIP
User avatar
halil16
Registered User
Posts: 1266
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

Re: style username

Post by halil16 »

In phpBB, it may not be easy to do this specifically for VIPs, as group colors are created with style on html, not class.

But you can do it on behalf of any user with a group color:

Code: Select all

.mas-username .username-coloured {
    font-weight: bold;
    background: url(https://metin2.solutions/uploads/sparkles/sparkle_orange.gif);
}
I guess we can count them as VIP because the group color of the VIP ones.

Note: You may want to delete the bots' group color.
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: style username

Post by Thunde »

halil16 wrote: Sun Sep 25, 2022 9:06 am In phpBB, it may not be easy to do this specifically for VIPs, as group colors are created with style on html, not class.

But you can do it on behalf of any user with a group color:

Code: Select all

.mas-username .username-coloured {
    font-weight: bold;
    background: url(https://metin2.solutions/uploads/sparkles/sparkle_orange.gif);
}
I guess we can count them as VIP because the group color of the VIP ones.

Note: You may want to delete the bots' group color.
This is for one user?
User avatar
halil16
Registered User
Posts: 1266
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

Re: style username

Post by halil16 »

For group color. For example, it adds style to your or the moderator's group color.
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: style username

Post by Thunde »

halil16 wrote: Sun Sep 25, 2022 4:45 pm For group color. For example, it adds style to your or the moderator's group color.
Ok, where should I add this code?
User avatar
halil16
Registered User
Posts: 1266
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

Re: style username

Post by halil16 »

If there is a place where you add your custom css, go there. otherwise, to overall_header.html like this:

Code: Select all

<style>
.mas-username .username-coloured {
    font-weight: bold;
    background: url(https://metin2.solutions/uploads/sparkles/sparkle_orange.gif);
}
</style>
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: style username

Post by david63 »

halil16 wrote: Sun Sep 25, 2022 4:45 pm For group color
This is a setting in the ACP groups - you do not need any custom code to do that.
David
Remember: You only know what you know and - you don't know what you don't know!

I now no longer support any of my extensions but they will start to become available here
User avatar
halil16
Registered User
Posts: 1266
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

Re: style username

Post by halil16 »

david63 wrote: Sun Sep 25, 2022 5:31 pm
halil16 wrote: Sun Sep 25, 2022 4:45 pm For group color
This is a setting in the ACP groups.
What the OP wants is to have glittery shapes on top of the group color. So like this: https://metin2.solutions/uploads/sparkl ... orange.gif
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: style username

Post by Thunde »

halil16 wrote: Sun Sep 25, 2022 5:57 pm
david63 wrote: Sun Sep 25, 2022 5:31 pm This is a setting in the ACP groups.
What the OP wants is to have glittery shapes on top of the group color. So like this: https://metin2.solutions/uploads/sparkl ... orange.gif
It's very nice, but I only want one group
User avatar
halil16
Registered User
Posts: 1266
Joined: Fri Jul 24, 2020 11:30 pm
Location: Turkiye
Name: Halil
Contact:

Re: style username

Post by halil16 »

Since group colors are not assigned with class, they are given directly in html (or so I know), I don't know how to make it to just a group. It can be done by rank in Topics, but I don't know how in general. I will follow the topic.
* Hire me at fiverr for your phpBB board.
"The day we will need ideas more than possessions, we will find the secret to true wealth." - Peyami Safa
I'm learning English...
Contributions: #Hashtag, Elegance, Latte
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: style username

Post by Thunde »

UP
User avatar
cabot
Registered User
Posts: 689
Joined: Sat Jan 07, 2012 4:16 pm
Contact:

Re: style username

Post by cabot »

Hello,

Code: Select all

.username-coloured[style*="#FFA700"] {
	font-weight: bold;
	background: url("./images/sparkle_orange.gif");
}
Put the image in the theme/images/ folder of the style.
Thunde
Registered User
Posts: 263
Joined: Fri Aug 28, 2020 2:30 pm

Re: style username

Post by Thunde »

cabot wrote: Wed Sep 28, 2022 4:20 pm Hello,

Code: Select all

.username-coloured[style*="#FFA700"] {
	font-weight: bold;
	background: url("./images/sparkle_orange.gif");
}
Put the image in the theme/images/ folder of the style.
Thanks <3
But I can't go to predefined groups
Otherwise, everything works perfectly even on several groups
Post Reply

Return to “Extension Requests”