3.1 & 3.2 3.1.x SnippetsEffects for username

Snippets
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Windows 10 Chrome

Re: Effects for username

Post by martin »

Put the html in the overall_footer.html file (for now as it might turn into an ext :whistl: ) what ever css you have used in to colours.css and all pages should pull it (the class whatever you need to replace)
User avatar

Solidjeuh
Donator
Donator
Status: Offline
User theme: Dark
Posts: 348
Joined: Dec 13th, '14, 01:40
    Windows 10 Firefox

Re: Effects for username

Post by Solidjeuh »

I tried this, and it seems to work.
But I'm asking here to be sure i did nothing wrong..

Soooooo is this ok?

Code: Select all

/*
--------------------------------------------------------------
Nickname Snow
-------------------------------------------------------------- */
/*Solidjeuh*/
a[href$="&u=2"]:not([href*="compose"]):not([title*="Visit"]):not(.prof),
a[href$="/arcade.php?mode=stats&u=2#"]:not([href*="compose"]):not([title*="Visit"]):not(.prof),
a[href$="/arcade.php?mode=stats&u=2#userbox"]:not([href*="compose"]):not([title*="Visit"]):not(.prof),
/*alfons*/
a[href$="&u=360"]:not([href*="compose"]):not([title*="Visit"]):not(.prof),
a[href$="/arcade.php?mode=stats&u=360#"]:not([href*="compose"]):not([title*="Visit"]):not(.prof),
a[href$="/arcade.php?mode=stats&u=360#userbox"]:not([href*="compose"]):not([title*="Visit"]):not(.prof) {
  background: transparent url("https://www.froddelpower.be/images/ledenuploads/1490108116.gif") repeat-x scroll left top / auto 50px;
}
Forum voor NL Extensie vertalingen ---> https://www.supportforum.be
----------------------------------------------------------------------------
User avatar

Topic Author
dmzx
Founder
Founder
Status: Offline
User theme: Dark
Posts: 6365
Joined: Jan 13th, '14, 20:45
    Windows 10 Chrome

Re: Effects for username

Post by dmzx »

Solidjeuh wrote: Feb 15th, '17, 21:24 I tried this, and it seems to work.
But I'm asking here to be sure i did nothing wrong..

Soooooo is this ok?
With this code both usenames will show the same effect.
Looks ok to me.
User avatar

Solidjeuh
Donator
Donator
Status: Offline
User theme: Dark
Posts: 348
Joined: Dec 13th, '14, 01:40
    Windows 10 Firefox

Re: Effects for username

Post by Solidjeuh »

dmzx wrote: Feb 19th, '17, 10:24
Solidjeuh wrote: Feb 15th, '17, 21:24 I tried this, and it seems to work.
But I'm asking here to be sure i did nothing wrong..

Soooooo is this ok?
With this code both usenames will show the same effect.
Looks ok to me.
Ok thank you! I see no errors so that's ok :rolling:
User avatar

VikViku
Users
Users
Status: Offline
User theme: Dark
Posts: 16
Joined: Nov 15th, '16, 13:03
    Mac OS X Safari

Re: Effects for username

Post by VikViku »

Is it possible to do the same for signature? Add some css on images for some user?
User avatar

Painkiller88
Users
Users
Status: Offline
User theme: Dark
Posts: 63
Joined: Jan 3rd, '19, 23:51
    Mac OS X Firefox

Re: Effects for username

Post by Painkiller88 »

Hi, i tried to to the drop effect on my username and it worked, but with my style (Carbon) it seems the Avatar image is getting the same effect when using the original code:

a[href$="&u=2"]:not([href*="compose"]):not([title*="Visit"]):not(.prof) {

Inside of Posts i get this fixed with adding the avatar class:

a[href$="&u=2"]:not([href*="compose"]):not([title*="Visit"]):not(.prof):not(.avatar) {


But in mchat my image also got the drops and i can't get it away. Just the username should have this effect.

i tried this, but it doesn't work:

a[href$="&u=2"]:not([href*="compose"]):not([title*="Visit"]):not(.prof):not(.avatar):not(.mchat-avatar) {

maybe someone can give me a hint on how to get rid off the effect on the chat avatar.

Thanks
User avatar

Hamidouki-dz
Users
Users
Status: Offline
User theme: Dark
Posts: 163
Joined: Sep 1st, '18, 09:26
    Android Chrome

Re: Effects for username

Post by Hamidouki-dz »

Hello
What is the file that should copie the code in it ?

Code: Select all

a[href$="&u=2"]:not([href*="compose"]):not([title*="Visit"]):not(.prof) { background: transparent url("http://www.picgifs.com/graphics/f/fireworks/graphics-fireworks-325975.gif") repeat-x scroll left top / auto 50px; }
Extension css title , it does not have css file
Thanks
User avatar

martin
Admin
Admin
Status: Offline
User theme: Dark
Posts: 5060
Joined: Apr 6th, '14, 14:12
    Linux Chrome

Re: Effects for username

Post by martin »

If your asking questions like that then take some advice stay out the files and get some one who knows what there doing to do it for you.

Just sit back and read some of your posts and have a good hard think about what your trying to do.

You dont need to know how to code to do the simple things your asking as many on this board have worked out what to do.

Your trying to run but first you need to learn to walk.

example why are you trying to put css into this ext "Extension css title , it does not have css file" ?
User avatar

Hamidouki-dz
Users
Users
Status: Offline
User theme: Dark
Posts: 163
Joined: Sep 1st, '18, 09:26
    Android Chrome

Re: Effects for username

Post by Hamidouki-dz »

:whistl: very difficulte for me
User avatar

Sniper_E
VIP
VIP
Status: Offline
User theme: Dark
Posts: 1151
Joined: Oct 14th, '14, 17:01
    Windows 10 Firefox

Re: Effects for username

Post by Sniper_E »

The first post in this topic shows you exactly what to add in the .css file. The stylesheet.
Dm even has a link to cssmagic and states you can add that line to it's cssmagic.css file.
You can add that line in your style's colours.css file or in the common.css file.
You can add that line in any extention's .css file if it has one.
It can be added anywhere, in any active css file.

Just follow the directions you have been given and try it.
Image
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!™
User avatar

Hamidouki-dz
Users
Users
Status: Offline
User theme: Dark
Posts: 163
Joined: Sep 1st, '18, 09:26
    Windows 7 Opera

Re: Effects for username

Post by Hamidouki-dz »

Sniper_E wrote: Sep 20th, '19, 19:14 The first post in this topic shows you exactly what to add in the .css file. The stylesheet.
Dm even has a link to cssmagic and states you can add that line to it's cssmagic.css file.
You can add that line in your style's colours.css file or in the common.css file.
You can add that line in any extention's .css file if it has one.
It can be added anywhere, in any active css file.

Just follow the directions you have been given and try it.
hello
style in the topic is solved
style in the sub forum no solved
look : Prefix CSS for Quick Title Edition 2.0.0
User avatar

Hamidouki-dz
Users
Users
Status: Offline
User theme: Dark
Posts: 163
Joined: Sep 1st, '18, 09:26
    Android Chrome

Re: Effects for username

Post by Hamidouki-dz »

Help me sniper
User avatar

deiux3
Users
Users
Status: Offline
User theme: Dark
Posts: 10
Joined: Aug 6th, '24, 21:34
    Windows 10 Firefox

Re: Effects for username

Post by deiux3 »

martin wrote: Jan 16th, '17, 01:21 was an example and a hint html add the span and group and in css add your css :whistl: (note below is example only and can be done in 1 line of if statements)

install this ext then you can put group id's into html
marttiphpbb_grouptempvars_0_1_0.zip

Code: Select all

<!-- IF S_GROUP_1--><span class='whatever'> </span><!-- ENDIF -->

Code: Select all

<!-- IF S_GROUP_2--><span class='whatever'> </span><!-- ENDIF -->
css to be played around with

Code: Select all

/* Membership Color Group */ 

.whatever {
background: url(https://i.imgur.com/skMrJae.gif);
color: #01DF01;
font-weight: bold;
text-shadow: 2px 0px 11px #04B404;
}

.whatever {
background: url(http://i.imgur.com/ejTlAK7.gif);
color: #6E6E6E;
font-weight: bold;
text-shadow: 2px 0px 11px #FAFAFA;
}

I have this, how can I apply the css for "username" class, only if the user is from GROUP ID 5?