In the comments, automatic create a color image (img) with first two letters of Author name [RÉSOLU]
How can I use Pluxml or a plugin to automatically create an img image (without using gravatar) with the first two letters of the comment author's name, e.g. for the author Franky (class=“comment__author”) - inside a colored box (using simple colors, no more than 7) create a green image: [ Fr ], then a blue Alex: [ Al ], etc. ??? It is desirable that the color of the image be fixed for the author of the message so that there is no color confusion.
This would look stylish and modern. Because no one registers on the blog, people just write to each other in the comments below the article.
My website micron free. Free hosting: infinityfree.com | php 8.3.27.
Mots clés:
Connectez-vous ou Inscrivez-vous pour répondre.

Réponses
Hello,
On my website I use this :
commentaires.php
And in class.plx.show.php I add :
after public function comAuthor($type='') {}
Also, you need to replace comDate2(); with comDate();, same thing with comContent2...
May be it can help you,
Regards.
https://www.unelio.com
https://github.com/unelio
Added JavaScript client code using the first two letters of the username. Insert this at the footer of commentaires.php template.
Example:
My website micron free. Free hosting: infinityfree.com | php 8.3.27.
Thank you @kamon
▼ click here ▲ mirror of the code if link becomes obsolte
Cordialement,
gcyrillus , simple membre du forum et utilisateur de PluXml
Mon site PluXml: https://re7net.com | Plugins: https://ressources.pluxopolis.net/banque-plugins/index.php?all_versions | Thèmes: tester et télécharger @ https://pluxthemes.com
Indiquez [RÉSOLU] dans le titre de votre question une fois le soucis réglé, Merci