TECK
10-18-2002, 10:00 PM
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:
$post[joindate]=vbdate($registereddateformat,$post[joindate]);
REPLACE WITH:
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]);
It's as simple as this. :)
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:
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]);
Just another way to write it, the code, not using the ELSE condition and saving another few lines of code.
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.
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:
$post[joindate]=vbdate($registereddateformat,$post[joindate]);
REPLACE WITH:
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]);
It's as simple as this. :)
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:
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]);
Just another way to write it, the code, not using the ELSE condition and saving another few lines of code.
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.