Jump to content

Group Name - Multiple Colours


Go to solution Solved by Randy Calvert,

Recommended Posts

Posted (edited)

What is the recommended method for using multiple colours in group names. After setting the group formatting colour is adding this in to the group name field okay?

Invision Community <span style='color:#666999'>Team</span>

It has worked fine for decade(s) (and still functions without problems) I do come across fields like this in AdminCP where groups titles are listed...

Team"' href='https://bringbackticketsupport.com/?app=core&module=members&controller=groups&do=permissions&id=666'> Invision Community Team

Ted.

Edited by Teddy Rogers
Posted

This typically happened because you applied the closing tag incorrectly.  

For example:

FIRST BOX

<span style="color:purple;font-weight:bold">

SECOND BOX

</span>

You would not want the close span included in the first box (as it would not apply anything to the group name itself.  If you forget to include the close span in the second box, it will also break the HTML and not render correctly and possibly output like you described above.  

Another example would be something like IPS used to do for the Customer group by putting a red + mark in front of their name and making it italic.  It might look something like:

FIRST BOX

<span style="color:red"><strong>+</strong></span> <i>

SECOND BOX

</i>

And the output might look like + Randy Calvert

Posted

That was how it was being output/ rendered. Rather than defining a code I specified the colour and it seemed to fix it up. Oddly it only rendered like that in AdminCP. You are correct about the closing tags... 👍

Ted.

Posted

Tags were okay in this instance, I meant I agreed with you regarding closing tags being required. Changing the hex code value to a defined colour seemed to fix it (or the formatting) for some reason. The sample I gave was of the rendered (visible) text being displayed alongside group names, only a problem in AdminCP. Anyway, all good now and thanks for your help... 👍

Ted.

Posted

Am I correct in assuming that this was on the URL you listed at in your code example? Just want to see if this is a parsing error on our end, we take care of it or find a more robust way to validate those when they are inserted into this field.

Posted

Thank you! Unfortunately, what I thought was happening here does not appear to be so. Likely, the closing tag here was involved with the error.

Posted

I went back and double checked. The problem turns out its the way I typed in using single quotes and doubles.

Go to "Group Name" field and enter this in...

Invision Community <span style='color:red'>Team</span>

Now go to a forum and view permissions and you will see the change in the list of group names.

Using double quotes works fine, like this...

Invision Community <span style="color:red">Team</span>

Ted.

Posted

Glad to hear you managed to resolve the issue there. Really this is not intended to be used in the way you are describing. You should be using "Group formatting" rather than adding spam tags in the group name

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...