Add new classes

Started by john, November 14, 2011, 01:37:43 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

dunk64

do not forget your lang_index.php to add you bbcode for your color

nicukent


gram

also you must edit announce.php

john

Mindless many thax for this mate  8)

Mindless

#2
Open user_functions.php

Code (php) Select
/** START **/
   $class_names = array(
        UC_USER                 => 'User',
        UC_POWER_USER           => 'Power User',
        UC_VIP                  => 'VIP',
        UC_UPLOADER             => 'Uploader',
        UC_MODERATOR            => 'Moderator',
        UC_ADMINISTRATOR        => 'Administrator',
        UC_SYSOP                => 'SysOp');
         
   $class_colors = array(
        UC_USER                 => '8E35EF',
        UC_POWER_USER           => 'f9a200',
        UC_VIP                  => '009F00',
        UC_UPLOADER             => '0000FF',
        UC_MODERATOR            => 'FE2E2E',
        UC_ADMINISTRATOR        => 'B000B0',
        UC_SYSOP                => '4080B0');

   $class_images = array(
        UC_USER                 => $INSTALLER09['pic_base_url'].'class/user.gif',
        UC_POWER_USER           => $INSTALLER09['pic_base_url'].'class/power.gif',
        UC_VIP                  => $INSTALLER09['pic_base_url'].'class/vip.gif',
        UC_UPLOADER             => $INSTALLER09['pic_base_url'].'class/uploader.gif',
        UC_MODERATOR            => $INSTALLER09['pic_base_url'].'class/moderator.gif',
        UC_ADMINISTRATOR        => $INSTALLER09['pic_base_url'].'class/administrator.gif',
        UC_SYSOP                => $INSTALLER09['pic_base_url'].'class/sysop.gif');


Becomes :

Code (php) Select
/** START **/
   $class_names = array(
        UC_USER                 => 'User',
        UC_POWER_USER           => 'Power User',
        UC_VIP                  => 'VIP',
        UC_UPLOADER             => 'Uploader',
        UC_MODERATOR            => 'Moderator',
        UC_ADMINISTRATOR        => 'Administrator',
        UC_TEAMLEADER          => 'Team leader',
        UC_SYSOP                => 'SysOp',
        UC_OWNER              =>   'Owner');
         
   $class_colors = array(
        UC_USER                 => '8E35EF',
        UC_POWER_USER           => 'f9a200',
        UC_VIP                  => '009F00',
        UC_UPLOADER             => '0000FF',
        UC_MODERATOR            => 'FE2E2E',
        UC_ADMINISTRATOR        => 'B000B0',
        UC_TEAMLEADER        => 'B000B0',
        UC_SYSOP                => '4080B0',
        UC_OWNER        => 'B000B0');

   $class_images = array(
        UC_USER                 => $INSTALLER09['pic_base_url'].'class/user.gif',
        UC_POWER_USER           => $INSTALLER09['pic_base_url'].'class/power.gif',
        UC_VIP                  => $INSTALLER09['pic_base_url'].'class/vip.gif',
        UC_UPLOADER             => $INSTALLER09['pic_base_url'].'class/uploader.gif',
        UC_MODERATOR            => $INSTALLER09['pic_base_url'].'class/moderator.gif',
        UC_ADMINISTRATOR        => $INSTALLER09['pic_base_url'].'class/administrator.gif',
         UC_TEAMLEADER        => $INSTALLER09['pic_base_url'].'class/leader.gif',
        UC_SYSOP                => $INSTALLER09['pic_base_url'].'class/sysop.gif',
         UC_OWNER        => $INSTALLER09['pic_base_url'].'class/founder.gif');


Open config.php :

Code (php) Select
define ('UC_USER', 0);
define ('UC_POWER_USER', 1);
define ('UC_VIP', 2);
define ('UC_UPLOADER', 3);
define ('UC_MODERATOR', 4);
define ('UC_ADMINISTRATOR', 5);
define ('UC_SYSOP', 6);
define('UC_MIN', 0);   // minimum class
define('UC_MAX', 6);   // maximum class
define('UC_STAFF', 4); // start of staff classes


Becomes :


Code (php) Select
define ('UC_USER', 0);
define ('UC_POWER_USER', 1);
define ('UC_VIP', 2);
define ('UC_UPLOADER', 3);
define ('UC_MODERATOR', 4);
define ('UC_ADMINISTRATOR', 5);
define ('UC_TEAMLEADER', 6);
define ('UC_SYSOP', 7);
define ('UC_OWNER', 8);
define('UC_MIN', 0);   // minimum class
define('UC_MAX', 8);   // maximum class
define('UC_STAFF', 4); // start of staff classes


Im sure you'll work it out from there, last in array never has a , - If you add more classes UC_MAX is adjusted accordinally.

john

Add new classes
ok im willing to learn here what i need is  2 new classes off owner and teamleader would a very nice coder tell me what files need editing please so i can use the classes of owner and teamleader