The Arcive of vBulletin Modifications Site. |
|
Custom Moderator Titles Details »»
|
|||||||||||||||||||||||||
This goes for my friend Danny (LeeCHeSSS) who asked me to make it for him.
Basically is a very simple hack to change the user title for each mod in function of the numer of posts, the same way like a regular user. I wanted first to make it admin CP based, but that would involve new fields added to database, several files hacked, etc. Why do all this when we can do it in less then 20seconds with a simple file edit? ![]() functions.php FIND: Code:
$post[joindate]=vbdate($registereddateformat,$post[joindate]); Code:
if ( $post[usertitle] == 'Moderator' )
{
$post[usertitle] = 'Expert Moderator';
if ( $post[posts] < 30 )
{
$post[usertitle] = 'Junior Moderator';
}
elseif ( $post[posts] < 100 )
{
$post[usertitle] = 'Regular Moderator';
}
elseif ( $post[posts] < 300 )
{
$post[usertitle] = 'Senior Moderator';
}
}
$post[joindate]=vbdate($registereddateformat,$post[joindate]);
![]() Customize your titles the way you want. You can it do the same way with Super Mods and Admins. Is up to you how to have fun with it. You could also use: Code:
if ( $post[usertitle] == 'Moderator' )
{
$post[usertitle] = 'Sleeps With The Monitor Moderator';
if ( $postsperday < 5 )
{
$post[usertitle] = 'Sleepy Moderator';
}
elseif ( $postsperday < 15 )
{
$post[usertitle] = 'Alert Moderator';
}
elseif ( $postsperday < 30 )
{
$post[usertitle] = 'Super Alert Moderator';
}
}
$post[joindate]=vbdate($registereddateformat,$post[joindate]);
That will change the name of your moderators in function of how many posts per day they make. The more posts per days they make, the better it will be their title and the members will count more on their support. Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
||||
|
||||
|
btw, that's the new way the vBulletin 3 code is written.
|
|
#3
|
||||
|
||||
|
Cool idea, thanks
![]() Installed. |
|
#4
|
|||
|
|||
|
It says postsperday...? Doesn't that mean posts per day?
|
|
#5
|
||||
|
||||
|
ya.
|
|
#6
|
||||
|
||||
|
Nice
![]() You're a good lad, teck
|
|
#7
|
||||
|
||||
|
Quote:
|
|
#8
|
|||
|
|||
|
So TECK, if it means postsperday, it will go by how many posts the moderator posts for that day? I'm confused...
|
|
#9
|
||||
|
||||
|
Nice hack ... but here's how I set it up on my forum:
// Custom Moderator Titles if ( $post[usertitle] == 'Moderator' ) { if ( $post[posts] > 30 and $post[posts] < 100 ) { $post[usertitle] = 'Junior Moderator'; } elseif ( $post[posts] == 100 and $post[posts] < 301 ) { $post[usertitle] = 'Special Moderator'; } elseif ( $post[posts] > 300 ) { $post[usertitle] = 'Expert Moderator'; } } // End Custom Moderator Titles |
|
#10
|
||||
|
||||
|
This is pretty basic, but useful.
I do this with mine as well, using one of my very earlier hacks.Quote:
|
![]() |
|
|