Rainbow username gone?
5 posters
Page 1 of 1
Rainbow username gone?
Technical Details
Forum version : #phpBB2
Position : Founder
Concerned browser(s) : Google Chrome
Who the problem concerns : Yourself
When the problem appeared : I noticed after a few months / years of absence that my rainbow username java code stopped working but i cant tell when exactly
Forum link : ( link is hidden, you must reply to see )
Description of problem
Hello. Back in 2015 I used to have a JAVA code making so the admin names were always in rainbow color along with a crown icon besid it. I came back recently and noticed its been gone but I havent touched anything in ages (knowing im the only one who can acces the administration pannel)so im guessing somethings changed in the forumotion coding itself which disabled my customised code or huh the site just dont support it anymore.here is the JAVA script I used to have:
- Code:
$(function(){
multiColor(1, '<strong><font color="#FE0A01">T</font><font color="#F3A405">h</font><font color="#9BFF00">e</font><font color="#57D652">l</font><font color="#20A0BF">m</font>a</strong>');
function multiColor(id, html){$('a[href="/u'+id+'"]').not(function(){return $("img",this)[0]}).html(html)}
});
and as for the crown icon beside our name is also stopped working
- Code:
a[href="https://lfdp.bbactif.com/g1-foundator"] {
background: url("https://2img.net/i/fa/admin/couronne.png") no-repeat;
padding-left: 19px;
padding-top: 2px;
}
a span[style="#1C95FF"]!important strong {
background:url(https://i.servimg.com/u/f71/14/67/12/66/crown_10.png) no-repeat;
padding-left:19px;
padding-bottom: 5px;
padding-top:0px;
}
I deleted my old one I used to have that stopped working also and used one from here, it worked for a few minute then it suddenly disapeared when I was working on my categories.
Last edited by Thelma on May 25th 2020, 4:15 am; edited 1 time in total
Guest- Guest
Re: Rainbow username gone?
Is JavaScript Management activated?
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: Rainbow username gone?
Hello,
For the crown it cannot work because :
- There is no group with that URL https://lfdp.bbactif.com/g1-foundator on your forum
- There is no group using 1C95FF as color
For the crown it cannot work because :
- There is no group with that URL https://lfdp.bbactif.com/g1-foundator on your forum
- There is no group using 1C95FF as color
Re: Rainbow username gone?
Is this the group: fondatrice? If yes, it is g3.
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: Rainbow username gone?
Yes and it doesnt workSLGray wrote:Is JavaScript Management activated?
No I removed it (i need to redo my who is online code some things been removed ope )SLGray wrote:Is this the group: fondatrice? If yes, it is g3.
the correct group is https://lfdp.bbactif.com/g1-foundator
Oh I will correct it right now that might be my problem :o thank youNeptune- wrote:Hello,
For the crown it cannot work because :
- There is no group with that URL https://lfdp.bbactif.com/g1-foundator on your forum
- There is no group using 1C95FF as color
Guest- Guest
Re: Rainbow username gone?
Update: I have gotten the rainbow code to work. only the crown icon still refuse to appear now
Guest- Guest
Re: Rainbow username gone?
In the JavaScript is the group's color correct?
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: Rainbow username gone?
In the CSS yes but I didnt knew I needed a javascript for that one :o I followed https://help.forumotion.com/t131443-customize-usernames-according-to-group?highlight=group for it
Guest- Guest
Re: Rainbow username gone?
Hey, just in case:
You could .wrap() your multiColor'd username with a span and stylize this span within your CSS.
You could .wrap() your multiColor'd username with a span and stylize this span within your CSS.
Re: Rainbow username gone?
We are talking about the crown icon coding (CCS). It is referring to the default group's color.
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: Rainbow username gone?
SLGray wrote:We are talking about the crown icon coding (CCS). It is referring to the default group's color.
The JS replaces the username with this rainbow effect; including the default group color. Both codes are conflicting if left as they are.
Just tried this, seems to work:
Replace your rainbow JS with:
- Code:
$(function(){
multiColor(1, '<strong><font color="#FE0A01">T</font><font color="#F3A405">h</font><font color="#9BFF00">e</font><font color="#57D652">l</font><font color="#20A0BF">m</font>a</strong>');
var rbw_id = 1;
function multiColor(id, html){$('a[href="/u'+id+'"]').not(function(){return $("img",this)[0]}).html(html)};
$('a[href="/u'+rbw_id+'"] strong:first').wrap('<span class="crowny"></div>');
});
In your CSS, replace:
- Code:
a span[style="#1C95FF"]!important strong {
background:url(https://i.servimg.com/u/f71/14/67/12/66/crown_10.png) no-repeat;
padding-left:19px;
padding-bottom: 5px;
padding-top:0px;
}
With:
- Code:
span.crowny {
background:url(https://i.servimg.com/u/f71/14/67/12/66/crown_10.png) no-repeat;
padding-left:19px;
padding-bottom: 5px;
padding-top:0px;
}
Re: Rainbow username gone?
Problem solved & topic archived.
|
Similar topics
» Rainbow username
» Question about Rainbow Username JavaScript
» Little problem my username rainbow animation colour
» Rainbow Glow
» Rainbow Usernames??? Please look
» Question about Rainbow Username JavaScript
» Little problem my username rainbow animation colour
» Rainbow Glow
» Rainbow Usernames??? Please look
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum