Hello, How can I show different color for different user types's username?
For example, i want to show red color font for admin and green color for others.
Like this for admin -> sama55
for other usernames color like this-> muratdzeko
Relatively straightforward way is to override "qa_userids_handles_html ()" function in qa-include/app/users.php.
This solution covers most, but not all. And, this solution will exacerbate site performance. So I will not recommend it.
Another way is to add $level argument to qa_userids_handles_html() function. And change the all of calling part of this function. This way you will need to change the core directly.
For example:
function qa_get_one_user_html($handle, $microformats=false, $favorited=false, $level=null) { ... }
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.