Velocd
07-14-2002, 10:00 PM
File Edits: 1 (functions.php)
Install time: 4 minutes
A very easy hack, so easy I hope it hasn't been released before. :p
Basically it will allow staff members to have their usergroup shown in the postbit. I always once in awhile get a question asked of who is the administrator or who are the moderators, because there are other people on the forum, other than just the staff members, who use custom titles. For example, I have a member who has been on the forum for about 2 months just found out one of the members is a super moderator :dead:
If you want also, you can have it display a small icon for the staff member instead. :ninja:
---------- Installation ----------
1. In functions.php find
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
And below it place:
if($post == 6) { $poststaff = "Administrator<br>"; }
else if($post[usergroupid] == 7) { $poststaff = "Moderator<br>"; }
else if($post[usergroupid] == 5) { $poststaff = "Super Moderator<br>"; }
[u]Make sure that the usergroupid and $poststaff value correspond to the correct usergroup.
1b. If you want to use an icon, use the following code instead in functions.php:
if ($post == "6") { $poststaff="[<img src=\"https://vborg.vbsupport.ru/images/adminicon.gif\" alt=\"Administrator\">]";}
else if ($post[usergroupid] == "5") { $poststaff="[<img src=\"https://vborg.vbsupport.ru/images/smodicon.gif\" alt=\"Super Moderator\">]";}
else if ($post[usergroupid] == "7") { $poststaff="[<img src=\"https://vborg.vbsupport.ru/images/modicon.gif\" alt=\"Moderator\">]";}
[u]Once again make sure to replace the correct values. Also you will need to create the 3 icons and place them in your images folder. (heh heh, I inputted {*imagesfolder} and it was parsed into https://vborg.vbsupport.ru/images/modicon.gif" Didn't know that could happen here..) Be sure to replace that URL with your gif url.
2. Now in the postbit template, place $poststaff where ever you like. I have mine right above $post[usertitle]. But if you use an icon, I would place it to the right of the username.
Well that's it! Now check out this cool banana guy--> :banana:
Install time: 4 minutes
A very easy hack, so easy I hope it hasn't been released before. :p
Basically it will allow staff members to have their usergroup shown in the postbit. I always once in awhile get a question asked of who is the administrator or who are the moderators, because there are other people on the forum, other than just the staff members, who use custom titles. For example, I have a member who has been on the forum for about 2 months just found out one of the members is a super moderator :dead:
If you want also, you can have it display a small icon for the staff member instead. :ninja:
---------- Installation ----------
1. In functions.php find
$post[message]=bbcodeparse($post[pagetext],$forum[forumid],$post[allowsmilie]);
And below it place:
if($post == 6) { $poststaff = "Administrator<br>"; }
else if($post[usergroupid] == 7) { $poststaff = "Moderator<br>"; }
else if($post[usergroupid] == 5) { $poststaff = "Super Moderator<br>"; }
[u]Make sure that the usergroupid and $poststaff value correspond to the correct usergroup.
1b. If you want to use an icon, use the following code instead in functions.php:
if ($post == "6") { $poststaff="[<img src=\"https://vborg.vbsupport.ru/images/adminicon.gif\" alt=\"Administrator\">]";}
else if ($post[usergroupid] == "5") { $poststaff="[<img src=\"https://vborg.vbsupport.ru/images/smodicon.gif\" alt=\"Super Moderator\">]";}
else if ($post[usergroupid] == "7") { $poststaff="[<img src=\"https://vborg.vbsupport.ru/images/modicon.gif\" alt=\"Moderator\">]";}
[u]Once again make sure to replace the correct values. Also you will need to create the 3 icons and place them in your images folder. (heh heh, I inputted {*imagesfolder} and it was parsed into https://vborg.vbsupport.ru/images/modicon.gif" Didn't know that could happen here..) Be sure to replace that URL with your gif url.
2. Now in the postbit template, place $poststaff where ever you like. I have mine right above $post[usertitle]. But if you use an icon, I would place it to the right of the username.
Well that's it! Now check out this cool banana guy--> :banana: