Username description.
5 posters
Page 1 of 1
Username description.
Alright I'm in need of another help so i need my username to state its usergroup when I hold the mouse pointer on it like this,
So if my usergroup is General Administrator when I keep the pointer on my username that pops up stating the group name anyway I could do it though a CSS coding?
So if my usergroup is General Administrator when I keep the pointer on my username that pops up stating the group name anyway I could do it though a CSS coding?
Last edited by Rizi Scotch on October 20th 2013, 8:18 pm; edited 1 time in total
Re: Username description.
Hello , in this request , we will need to create a new javascript , so, go in Administration Panel -> Modules -> Javascript Management -> create a new javascript tick in all pages or where you want to see and add that
- Code:
$(function() {
$('a[href="/u1"] span strong').attr('title','General Administrator');
});
Re: Username description.
Yes I need this for groups http://dnboys.englishboards.comcandy_fear wrote:Hello , in this request , we will need to create a new javascript , so, go in Administration Panel -> Modules -> Javascript Management -> create a new javascript tick in all pages or where you want to see and add thatNow , you need to replace only /u1 with the user link , this code is only for /u1 , you can do that and with groups but I'll need your forum url.
- Code:
$(function() {
$('a[href="/u1"] span strong').attr('title','General Administrator');
});
my forum url
Re: Username description.
- Code:
$(function() {
$('a[style="color: #92D11E;"] span strong').attr('title','General Administrator');
});
Re: Username description.
I tried tho didn't work yet no idea what did I do wrong I just copied and pasted the same above code ;ocandy_fear wrote:Try this :DThat will do that for all "[ Tech Staff ] " group members
- Code:
$(function() {
$('a[style="color: #92D11E;"] span strong').attr('title','General Administrator');
});
Re: Username description.
Is your JavaScript Management on?
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Re: Username description.
Yes its on the first code for single users does work but the second code didn't show up any changes.SLGray wrote:Is your JavaScript Management on?
Re: Username description.
It must be solved by RegExp, Regular Expression
mangaka- Forumember
- Posts : 121
Reputation : 5
Language : Indonesia
Location : Well
Re: Username description.
You could give me the code for it?mangaka wrote:It must be solved by RegExp, Regular Expression
Re: Username description.
Alright so for in this thread the guy could put a prefix for all the group member usernames through a CSS coding so I guess I'm also in need of a similar coding like that someone please look into this link and help me out
https://help.forumotion.com/t127624-user-name-prefixes-for-entire-user-group
https://help.forumotion.com/t127624-user-name-prefixes-for-entire-user-group
Re: Username description.
Hello Rizi Scotch,
It can be done, though I haven't fully tested it I've noticed that it will move the texts around it.
Anyhow modify the color to the group you wish for the effect to be applied and paste it into your stylesheet.
You may need to adjust the positioning depending on the size of the words you submit into the content value field. If I improve anything on the code I'll notify you.
EDIT:
I've updated the code some more, I fixed the issue where the hyperlink position would still be present after the username. This was fixed by overlaying the after content over the username. Its actually nigh perfect, which surprised me. Anyhow as I said before you may need to modify the positioning if it isn't positioned correctly.
Use this code instead please:
If you need a demo of the code, I have it enabled here for Admin group.
It can be done, though I haven't fully tested it I've noticed that it will move the texts around it.
Anyhow modify the color to the group you wish for the effect to be applied and paste it into your stylesheet.
- Code:
a span[style="color:#C20000"] strong:hover:after {
background-color:rgba(0,0,0, 0.5);
content: "Administrator";
border-radius:5px;
font-weight:bold;
font-size: 10px;
padding:3px;
color:#fff;
position:relative;
right:67px;
top:18px;
}
You may need to adjust the positioning depending on the size of the words you submit into the content value field. If I improve anything on the code I'll notify you.
EDIT:
I've updated the code some more, I fixed the issue where the hyperlink position would still be present after the username. This was fixed by overlaying the after content over the username. Its actually nigh perfect, which surprised me. Anyhow as I said before you may need to modify the positioning if it isn't positioned correctly.
Use this code instead please:
If you need a demo of the code, I have it enabled here for Admin group.
- Code:
a span[style="color:#C20000"] strong:hover:after {
background-color:rgba(0,0,0, 0.5);
content: "Administrator";
border-radius:5px;
font-weight:bold;
font-size: 10px;
padding:2px;
color:#fff;
position:relative;
top:18px;
white-space: nowrap;
}
a span[style="color:#C20000"] strong:after{
margin:-34px;
}
Re: Username description.
Yup the second code helped me a lot Thank you! and I can use this same way to make a group of usernames into Italic style? Like if I only need the green color usernames to be italic how would I use such a code to make it so? I know how to do it for one user but not sure about how for a group.
Re: Username description.
If you were to apply those settings to a group, it would look like this without any pseudos. You just need to add the group color and you're good.
- Code:
a span[style="color:#C20000"] strong{
font-style:italic;
}
Re: Username description.
That was really helpful thanks! and this is solvedSethC1995 wrote:If you were to apply those settings to a group, it would look like this without any pseudos. You just need to add the group color and you're good.If you need any help with font/text properties these should help for styling the groups: Font | Text
- Code:
a span[style="color:#C20000"] strong{
font-style:italic;
}
Re: Username description.
Topic Solved & Locked
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» SEO: improve your forum description and meta description
» Changing the Username's Color As Well As Multicolored Username and Glow
» Tag "description"
» Post Description.
» Site description
» Changing the Username's Color As Well As Multicolored Username and Glow
» Tag "description"
» Post Description.
» Site description
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum