|
#1
|
|||
|
|||
To add, edit & delete class go to include folder ,if you use the new tbdev look at user_functions.php for older tbdev , it is in global.php. Now look for this
Code:
function get_user_class_name($class) { switch ($class) { case UC_USER: return "User"; case UC_POWER_USER: return "Power User"; case UC_VIP: return "VIP"; case UC_UPLOADER: return "Uploader"; case UC_MODERATOR: return "Moderator"; case UC_ADMINISTRATOR: return "Administrator"; case UC_SYSOP: return "SysOp"; } return ""; } Code:
case UC_Multi_USER: return "Multi User"; To delete simply delete case uc_xx the whole thinq AttentionNow to work the new class you have to edit almost every php fileEx: in userdetalis.php it is the this Code:
if ($user["id"] == $CURUSER["id"] || get_user_class() >= UC_MODERATOR) { if ($user['port'] != 0) { ?> <tr><td class=rowhead>Port</font></td><td class=tablea align=left><?=($user['port'])?></td></tr> Enjoy |
The Following User Says Thank You to sagap For This Useful Post: | ||
kapel12 (23rd July 2012)
|
#2
|
|||
|
|||
=tkx i finished. i have 12 classes now
|
#3
|
||||
|
||||
Glad that you sorted out.
|
#4
|
|||
|
|||
i have a new problem now at the menu. I want smaller class than Uploader not see a button from menu. How to do that?
|
#5
|
||||
|
||||
|
#6
|
|||
|
|||
Quote:
PHP Code:
|
#7
|
||||
|
||||
replace
Code:
<?php if (get_user_class() >= UC_UPLOADER) { ?> Code:
<?php if (get_user_class() <> UC_UPLOADER) { ?> replace Code:
<?php if (get_user_class() >= UC_UPLOADER) { ?> <td align="center" class="navigation"><a href=/upload.php><? print("" .UPLOAD. "")?></a></td> with Code:
<?php if (get_user_class() <>= UC_UPLOADER) ?> <td align="center" class="navigation"><a href=/upload.php><? print("" .UPLOAD. "")?></a></td> <?php}?>
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?" "I Kill You!" simples
|
#8
|
|||
|
|||
i modified my menu like that:
PHP Code:
PHP Code:
|
#9
|
||||
|
||||
add staff to root
add lang_staff to lang/en this code its from user_functions replace with below change colors and images to your choice. change your staff class via phpmyadmin from 7 - 17 or Code:
function get_user_class_color($class) { switch ($class) { case UC_PEASANT: return "f9a200"; case UC_USER: return "f9a200"; case UC_POWER_USER: return "f9a200"; case UC_ELITE_USER: return "f9a200"; case UC_XTREME_USER: return "f9a200"; case UC_SUPER_USER: return "f9a200"; case UC_LEGEND_USER: return "f9a200"; case UC_VIP: return "f9a200"; case UC_LEGEND_VIP: return "f9a200"; case UC_JRUPLOADER: return "f9a200"; case UC_UPLOADER: return "f9a200"; case UC_EUPLOADER: return "f9a200"; case UC_DESIGNER: return "f9a200"; case UC_MODERATOR: return "f9a200"; case UC_EMODERATOR: return "f9a200"; case UC_ADMINISTRATOR: return "f9a200"; case UC_EADMINISTRATOR: return "f9a200"; case UC_SYSOP: return "f9a200"; case UC_TECH: return "f9a200"; case UC_BOSS: return "f9a200"; case UC_SUPERVISOR: return "f9a200"; } return ""; } replace in bittorent.php Code:
define ('UC_PEASANT', 0); define ('UC_USER', 1); define ('UC_POWER_USER', 2); define ('UC_ELITE_USER', 3); define ('UC_XTREME_USER', 4); define ('UC_SUPER_USER', 5); define ('UC_LEGEND_USER', 6); define ('UC_VIP', 7); define ('UC_LEGEND_VIP', 8); define ('UC_JRUPLOADER', 9); define ('UC_UPLOADER', 10); define ('UC_EUPLOADER', 11); define ('UC_DESIGNER', 12); define ('UC_MODERATOR', 13); define ('UC_EMODERATOR', 14); define ('UC_ADMINISTRATOR', 15); define ('UC_EADMINISTRATOR', 16); define ('UC_SYSOP', 17); define ('UC_TECH', 18); define ('UC_BOSS', 19); define ('UC_SUPERVISOR', 20);
__________________
"FFS PPL READ GOD DAMMIT, WHAT AM I GOOGLE?" "I Kill You!" simples
|
#10
|
||||
|
||||
what about the class eel-smoker
Code:
define ('UC_PEASANT', 0); mmmwwwhahahahah |
Tags |
class |
|
|