• Resolved Gestalterrier

    (@gestalterrier)


    Hello,

    it would be nice to have different colors. Not simple random colors, but only different for every author to recognize them better.
    It would be also good to have an option via radiobutton if the color should be chosen depending on Name or Email.

    Maybe it can be realized with a code like https://randomstringtocsscolor.com/

    Is it possible to add this in a future update?

    Maybe it’s also possible to restrict the color creation to get only “good looking” colors, e.g. with a similar brightness so that you know that a lighter or darker font color is better readable.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sibin Grasic

    (@seebeen)

    Hello,

    Uniqueness according to the name / email is a really good idea. I’ll implement it in the next major version.

    Currently, I’m expanding support to bbPress and BuddyPress, so I’ll add in the functionalities as soon as possible

    Plugin Author Sibin Grasic

    (@seebeen)

    Just to let you know that I have implemented the functionality according to your suggestion

    Thread Starter Gestalterrier

    (@gestalterrier)

    Thanks, but the color is still randomized and only “reserved” to a special user, not build by the user name or mail address.

    As a consequence, on every page the same user has another avatar color and even, when only refreshing the same page.

    It’s a little bit better than complete “stupid” randomized colours, but still a confusing behaviour.

    It would make me very happy to hear, if the desired behaviour could be realized in the future ??

    Plugin Author Sibin Grasic

    (@seebeen)

    I’ll implement it in the next couple of hours. ??

    Plugin Author Sibin Grasic

    (@seebeen)

    Implemented.

    Please consider leaving a review ??

    Thread Starter Gestalterrier

    (@gestalterrier)

    Wow, thats really great support ?? The updates are faster than the changelog ??

    I like this idea to make avatars for guest comments individual without an external service as Gravatar very much, because of Privacy/Tracking reasons.

    Because the colour intensity still changed with every page load, I’ve changed
    $bg_color = $this->hsl2rgb($hue/0xFFFFFFFF, (mt_rand() / mt_getrandmax()), 1);
    in /lib/ltrav-frontend.php into
    $bg_color = $this->hsl2rgb($hue/0xFFFFFFFF, 1, 1);

    The colours are then a little bit gaudy, but to make the intensity in the backend as a global setting would be only the icing on the cake ?? Because this can also easily set via opacity setting as Custom CSS.

    Plugin Author Sibin Grasic

    (@seebeen)

    I’ll enable the option to filter the Saturation via filter in the next version, along with bbpress / buddypress support.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Color depending on Name/Email?’ is closed to new replies.