Hi,

How can I add color to activity messages, like having a different color for different tokens.
like
date having one color,
username having one color (with bold),
message having another ... with different style..

can we use HTML tags in Node author message: & in Comment author message:
like < font color=brown > < b > text < /font > ..?

or any other suggestions

Comments

sirkitree’s picture

Status: Active » Fixed

You can use html in your message template.

madhusudan’s picture

Status: Fixed » Active

I tried putting < font color=blue etc.... but not working... not showing any change..?
tried regenerating.. but only bold < b > < h1 > and others are working..

is this because these tags are in "Allowed HTML tags" .?
if it is then how to add all the tags..

and also in "Activity publisher templates" why some don't have regenerate link!.

sirkitree’s picture

Status: Active » Closed (fixed)

We use a function called filter_xss_admin before we display the message. See that link to get an allowed list of html tags.