2016-02-10, 07:55 PM
I'm looking at working on a plugin that will style a username based on conditions.
For example
if($mybb->user['numposts'] > 100) {
//code to update username style here
}
Now this would be relatively easy to do as an SQL query to echo out rows for each username found with > 100 posts and display it however I want to show the username everywhere including threads.
Any idea how I could display the style for the username everywhere based on conditions easily?
For example
if($mybb->user['numposts'] > 100) {
//code to update username style here
}
Now this would be relatively easy to do as an SQL query to echo out rows for each username found with > 100 posts and display it however I want to show the username everywhere including threads.
Any idea how I could display the style for the username everywhere based on conditions easily?