Updating username styles based on conditions
#1
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?
[Image: TExMo15.png]


Reply
#2
Try editing this plugin?
My Plugins: [1.8]|[1.6]

** Selling custom plugin that enables Bitcoin payments. PM me if interested in purchasing! **
Reply
#3
use groups setting - users with 100 posts gets a different style... you dont need any plugin
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#4
(2016-02-11, 11:04 AM)Eldenroot Wrote: use groups setting - users with 100 posts gets a different style... you dont need any plugin

This would work but I want it based on different conditions such as if users have posted x amount of times today get the style today.
[Image: TExMo15.png]


Reply
#5
That is a very easy way to do, at least with 1.8.x series i assume a lot of an hour to make more than one way to do it.

Only you have to take some aditions on every part where you want to do, i made a tutorial for some forum in the past for 1.6.x series but now i think it's a very easy task to do, at least for me. But i am to bussy playing pvsz gw.
The only infinite thing is the universe and human stupidity, but the universe is not for sure

Plugins 1.6.x

Plugins 1.8.x

Reply
#6
(2016-02-17, 06:35 PM)Dark Neo Wrote: That is a very easy way to do, at least with 1.8.x series i assume a lot of an hour to make more than one way to do it.

Only you have to take some aditions on every part where you want to do, i made a tutorial for some forum in the past for 1.6.x series but now i think it's a very easy task to do, at least for me. But i am to bussy playing pvsz gw.

str_replace();
Reply


Forum Jump:


Users browsing this thread: