The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Rainbow username gone?

5 posters

Go down

Solved Rainbow username gone?

Post by Guest May 24th 2020, 9:08 pm

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)}
});
Note I recently tried to tweak it using one of you tutorial but it didnt work.

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
avatar
Guest
Guest


Back to top Go down

Solved Re: Rainbow username gone?

Post by SLGray May 24th 2020, 9:22 pm

Is JavaScript Management activated?


Rainbow username gone? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51597
Reputation : 3527
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Rainbow username gone?

Post by Neptune- May 24th 2020, 9:32 pm

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
Neptune-
Neptune-
Forumember

Female Posts : 496
Reputation : 104
Language : French (10), English (8), CSS (5), HTML (4), Javascript (4)
Location : Scotland, UK

https://www.galaxie-series.net/

Back to top Go down

Solved Re: Rainbow username gone?

Post by SLGray May 24th 2020, 9:46 pm

Is this the group:  fondatrice?  If yes, it is g3.


Rainbow username gone? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51597
Reputation : 3527
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Rainbow username gone?

Post by Guest May 24th 2020, 10:54 pm

SLGray wrote:Is JavaScript Management activated?
Yes and it doesnt work
SLGray wrote:Is this the group:  fondatrice?  If yes, it is g3.
No I removed it (i need to redo my who is online code some things been removed ope )
the correct group is https://lfdp.bbactif.com/g1-foundator

Neptune- 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
Oh I will correct it right now that might be my problem :o thank you
avatar
Guest
Guest


Back to top Go down

Solved Re: Rainbow username gone?

Post by Guest May 24th 2020, 11:01 pm

Update: I have gotten the rainbow code to work. only the crown icon still refuse to appear now bwi
avatar
Guest
Guest


Back to top Go down

Solved Re: Rainbow username gone?

Post by SLGray May 25th 2020, 1:19 am

In the JavaScript is the group's color correct?


Rainbow username gone? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51597
Reputation : 3527
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Rainbow username gone?

Post by Guest May 25th 2020, 1:38 am

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
avatar
Guest
Guest


Back to top Go down

Solved Re: Rainbow username gone?

Post by Ape May 25th 2020, 2:21 am

The Group colour has to be the same or it will not work Wink


Rainbow username gone? Left1212Rainbow username gone? Center11Rainbow username gone? Right112
Rainbow username gone? Ape_b110
Rainbow username gone? Ape1010
Ape
Ape
Administrator
Administrator

Male Posts : 19470
Reputation : 2013
Language : fluent in dork / mumbojumbo & English haha

http://chatworld.forumotion.co.uk/

Back to top Go down

Solved Re: Rainbow username gone?

Post by Guest May 25th 2020, 4:14 am

ok! ill work on that since I use multi colored names Smile solved!
avatar
Guest
Guest


Back to top Go down

Solved Re: Rainbow username gone?

Post by mSyx May 25th 2020, 7:06 am

Hey, just in case:
You could .wrap() your multiColor'd username with a span and stylize this span within your CSS.
mSyx
mSyx
Forumember

Male Posts : 155
Reputation : 47
Language : French & English
Location : France

https://help.forumotion.com/

Back to top Go down

Solved Re: Rainbow username gone?

Post by SLGray May 25th 2020, 7:07 am

We are talking about the crown icon coding (CCS).  It is referring to the default group's color.


Rainbow username gone? Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51597
Reputation : 3527
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Solved Re: Rainbow username gone?

Post by mSyx May 25th 2020, 7:23 am

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;
}
mSyx
mSyx
Forumember

Male Posts : 155
Reputation : 47
Language : French & English
Location : France

https://help.forumotion.com/

Back to top Go down

Solved Re: Rainbow username gone?

Post by skouliki June 8th 2020, 9:16 am

Problem solved & topic archived.
Please read our forum rules: ESF General Rules
skouliki
skouliki
Manager
Manager

Female Posts : 15411
Reputation : 1709
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum