Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Project U-232 (http://www.bvlist.com/forumdisplay.php?f=80)
-   -   Some questions u232v3 (http://www.bvlist.com/showthread.php?t=9522)

Typon 22nd September 2013 20:11

Some questions u232v3
 
Hello there!
Im so glad that u-232v3 finally runs on my localhost!

But.. I got some questions:
What files supports UC? I found some in config.php.. But which more?
I really like the simple standard theme, but i hate the quality of the bg, so which .css file can i change it in?
I'll like to do some small changes in the menu, what .php file should i take a look in?
And where do i find header and footer?

thanks! //Typon

KrackerMan 22nd September 2013 20:25

Assuming you have the updated version of the source code:

I really like the simple standard theme, but i hate the quality of the bg, so which .css file can i change it in?

- 1.css

I'll like to do some small changes in the menu, what .php file should i take a look in?

- template.php

And where do i find header and footer?

- template.php

Typon 22nd September 2013 20:29

Thanks! i'll try :3

Bump:
Quote:

Originally Posted by KrackerMan (Post 42750)
Assuming you have the updated version of the source code:

I really like the simple standard theme, but i hate the quality of the bg, so which .css file can i change it in?

- 1.css

- Where in 1.css? :coffee:

I found out 500 lines after :-D
Thanks!


        ".
        "".
        "".
        "";
        }

        $htmlout .= "
       
{$lang['header_fls']}
GameMaster 2nd October 2013 11:12

to change userclasses change:
ann_config.php
config.php
staff.php (only if adding staff)
staffpanel.php (only if adding staff)
user_functions.php
pm_system.php
oh and don't forget to add them to mysql.

Here's what cm27 has posted on U-232 Support forums:
first you need to drop your user_config and run this all is done threw your DB .

Code:

-- Table structure for table `user_config`
--
 
CREATE TABLE IF NOT EXISTS `user_config` (
  `name` varchar(255) CHARACTER SET latin1 NOT NULL DEFAULT '',
  `value` varchar(255) CHARACTER SET latin1 NOT NULL DEFAULT '',
  UNIQUE KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
 
--
-- Dumping data for table `user_config`
--
 
INSERT INTO `user_config` (`name`, `value`) VALUES
('UC_ADMINISTRATOR', '7'),
('UC_MODERATOR', '6'),
('UC_JUNIOR_STAFF', '5'),
('UC_UPLOADER', '4'),
('UC_VIP', '3'),
('UC_COMVIP', '2'),
('UC_POWER_USER', '1'),
('UC_USER', '0'),
('UC_SYSOP', '8'),
('UC_STAFFLEADER', '9'),
('UC_CODER', '10'),
('UC_OWNER', '11'),
('UC_MIN', '0'),
('UC_MAX', '11'),
('UC_STAFF', '5');

Above is MYSQL code

open up user_functions.php

and find /** class functions - pdq 2010 **/
and replace the code with mine or you can change it to fit your class
Code:

/** class functions - pdq 2010 **/
/** START **/
///modded by cm27 more user class
 $class_names = array(
            UC_USER                => 'n00b',
            UC_POWER_USER          => 'Gamer',
            UC_COMVIP              => 'Trustee',
            UC_VIP                  => 'Super Elite',
            UC_UPLOADER            => 'Game Master',
            UC_JUNIOR_STAFF        => 'Junior Staff',
            UC_MODERATOR            => 'Moderator',
            UC_ADMINISTRATOR        => 'Administrator',
            UC_SYSOP                => 'Slave',
            UC_STAFFLEADER          => 'Game leader',
            UC_CODER                => 'Dev/Coder',
            UC_OWNER                => 'Game Dealer'
            );
 
      $class_colors = array(
            UC_USER                => 'A2C257',
            UC_POWER_USER          => 'AEBB51',
            UC_COMVIP              => '8B7E66',
            UC_VIP                  => 'FF6103',
            UC_UPLOADER            => '6464ff',
            UC_JUNIOR_STAFF        => 'F08080',
            UC_MODERATOR            => '23a4a6',
            UC_ADMINISTRATOR        => 'B000B0',
            UC_SYSOP                => 'ff00ff',
            UC_STAFFLEADER          => 'ff0000',
            UC_CODER                => '8A084B',
            UC_OWNER                => '56a5eb'
            );
 
      $class_images = array(
            UC_USER                => $INSTALLER09['pic_base_url'].'class/member.png',
            UC_POWER_USER          => $INSTALLER09['pic_base_url'].'class/power.png',
            UC_COMVIP              => $INSTALLER09['pic_base_url'].'class/Comvip.png',
            UC_VIP                  => $INSTALLER09['pic_base_url'].'class/vip.png',
            UC_UPLOADER            => $INSTALLER09['pic_base_url'].'class/uploaders.png',
            UC_JUNIOR_STAFF        => $INSTALLER09['pic_base_url'].'class/junior.gif',
            UC_MODERATOR            => $INSTALLER09['pic_base_url'].'class/moderator.png',
            UC_ADMINISTRATOR        => $INSTALLER09['pic_base_url'].'class/admin.png',
            UC_SYSOP                => $INSTALLER09['pic_base_url'].'class/sysop.png',
            UC_STAFFLEADER          => $INSTALLER09['pic_base_url'].'class/leader.png',
            UC_CODER                => $INSTALLER09['pic_base_url'].'class/coder.gif',
            UC_OWNER                => $INSTALLER09['pic_base_url'].'class/founder.png'
            );

now open up the config.php
and replace the user class with this
Code:

//==User class defines
/// modded by cm27more user class
define('UC_USER', 0);
define('UC_POWER_USER', 1);
define('UC_COMVIP', 2);
define('UC_VIP', 3);
define('UC_UPLOADER', 4);
define('UC_JUNIOR_STAFF', 5);
define('UC_MODERATOR', 6);
define('UC_ADMINISTRATOR', 7);
define('UC_SYSOP', 8);
define('UC_STAFFLEADER', 9);
define('UC_CODER', 10);
define('UC_OWNER', 11);
define('UC_MIN', 0); // minimum class
define('UC_MAX', 11); // maximum class
define('UC_STAFF', 6); // start of staff classes

now open up your pm_system.php
and replace this user class section with this . By doing this it will help you use the pm system with out adding the new classes you will not beable to pm anyone..

Code:

//===set MAX message amount for users... in out and other... and...  modded here by cm27 more class added
switch ($CURUSER['class']) {
case UC_MIN:
    $maxbox = 50;
    $maxboxes = 5;
    break;
 
case UC_POWER_USER:
    $maxbox = 100;
    $maxboxes = 6;
    break;
 
case UC_COMVIP :
    $maxbox = 200;
    $maxboxes = 10;
    break;
 
case UC_VIP:
    $maxbox = 250;
    $maxboxes = 10;
    break;
 
case UC_UPLOADER:
    $maxbox = 300;
    $maxboxes = 15;
    break;
 
case UC_JUNIOR_STAFF :
    $maxbox = 300;
    $maxboxes = 15;
    break;
 
case UC_STAFF:
    $maxbox = 300;
    $maxboxes = 20;
    break;
 
case UC_MAX:
    $maxbox = 500;
    $maxboxes = 40;
    break;
 
case UC_ADMINISTRATOR:
    $maxbox = 400;
    $maxboxes = 30;
    break;
 
case UC_SYSOP:
    $maxbox = 500;
    $maxboxes = 40;
    break;
case UC_STAFFLEADER:
    $maxbox = 500;
    $maxboxes = 40;
    break;
 
case UC_CODER:
    $maxbox = 500;
    $maxboxes = 40;
    break;
 
case UC_OWNER:
    $maxbox = 500;
    $maxboxes = 40;
    break;
}

open up your ann_config.php file and replace the user class there with this

Code:

//modded by cm27 more user class
define('UC_USER', 0);
define('UC_POWER_USER', 1);
define('UC_COMVIP', 2);
define('UC_VIP', 3);
define('UC_UPLOADER', 4);
define('UC_JUNIOR_STAFF', 5);
define('UC_MODERATOR', 6);
define('UC_ADMINISTRATOR', 7);
define('UC_SYSOP', 8);
define('UC_STAFFLEADER', 9);
define('UC_CODER', 10);
define('UC_OWNER', 11);
define('UC_STAFF', 5);
//end

open up your staffpanel.php
replace the user class with this
Quote:

//modded by cm27 more user class
$staff_classes = array(
UC_MODERATOR => array(
'add' => false,
'edit' => false,
'delete' => false,
'log' => true
) ,
UC_ADMINISTRATOR => array(
'add' => false,
'edit' => false,
'delete' => false,
'log' => true
) ,
UC_SYSOP => array(
'add' => false,
'edit' => false,
'delete' => false,
'log' => true
),
UC_STAFFLEADER => array(
'add' => true,
'edit' => true,
'delete' => false,
'log' => true
),
UC_CODER => array(
'add' => true,
'edit' => true,
'delete' => true,
'log' => true
),
UC_OWNER => array(
'add' => true,
'edit' => true,
'delete' => true,
'log' => false
)
);
open staff.php

and add what new user class you want ...
DO NOT FORGET TO CHANGE SOME OF YOUR TOOLS WITH NEW MODS AND OWNER.....


OK,for those who don't want to try and play with their staff.php here's a version I posted over @ u-232 support forums for a member.

Code:

/**
 *  https://github.com/Bigjoos/
 *  Licence Info: GPL
 *  Copyright (C) 2010 U-232 v.3
 *  A bittorrent tracker source based on TBDev.net/tbsource/bytemonsoon.
 *  Project Leaders: Mindless, putyn.
 **/
require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
require_once(INCL_DIR.'user_functions.php');
require_once(INCL_DIR.'html_functions.php');
dbconn();
loggedinorreturn();

$lang = array_merge( load_language('global'), load_language('staff'));

$stdhead = array(/** include the css **/'css' => array('staff'));

$htmlout = $firstline = $support = '';

$query = sql_query("SELECT users.id, username, support, supportfor, email, last_access, class, title, country, status, countries.flagpic, countries.name FROM users LEFT  JOIN countries ON countries.id = users.country WHERE class >= ".UC_STAFF." OR support='yes' AND status='confirmed' ORDER BY username") or sqlerr(__FILE__, __LINE__);
unset($support);
while($arr2 = mysqli_fetch_assoc($query)) {

        if($arr2["support"] == 'yes')
                $support[] =  $arr2;

        if($arr2["class"] == UC_JUNIOR_STAFF)
                $jstaff[] =  $arr2;

        if($arr2["class"] == UC_MODERATOR)
                $mods[] =  $arr2;

        if($arr2["class"] == UC_ADMINISTRATOR)
                $admin[] =  $arr2;

        if($arr2["class"] == UC_SYSOP)
                $sysop[] =  $arr2;

        if($arr2["class"] == UC_STAFF_LEADER)
                $Leader[] =  $arr2;

        if($arr2["class"] == UC_CODER)
                $CodeMonkey[] =  $arr2;

        if($arr2["class"] == UC_OWNER)
                $Owner[] =  $arr2;




        }

function DoStaff($staff, $staffclass, $cols = 4) {
        global $INSTALLER09;
        $htmlout='';
        $dt = TIME_NOW - 180;
        $counter = count($staff);

        $rows = ceil($counter/$cols);
        $cols = ($counter < $cols) ? $counter : $cols;
        $r = 0;
  $htmlout .= "
{$staffclass}
";
        for($ia = 0; $ia < $rows; $ia++){
        $htmlout .= "";
        for($i = 0; $i < $cols; $i++){
                        if( isset($staff[$r]) )  {
                        $htmlout .= "";
                        $r++;
        }else{
                        $htmlout .= "";
                        }
        }
        $htmlout .= "";

        }
        $htmlout .="
".htmlsafechars($staff[$r]['username']).""."
            $dt?"/online.png":"/offline.png" )."' border='0' alt='' />"."
          "."
            ".htmlsafechars($staff[$r][
 
";
 return $htmlout;
}

$htmlout .= DoStaff($Owner, "Owner");
$htmlout .= DoStaff($CodeMonkey, "Coder");
$htmlout .= DoStaff($Leader, "Staffleader");
$htmlout .= DoStaff($sysop, "Sysops");
$htmlout .= isset($admin) ? DoStaff($admin, "Administrator") : DoStaff($admin=false, "Administrator");
$htmlout .= isset($mods) ? DoStaff($mods, "Moderators") : DoStaff($mods=false, "Moderators");
$htmlout .= isset($jstaff) ? DoStaff($jstaff, "Junior Staff") : DoStaff($jstaff=false, "Junior Staff");
        $dt = TIME_NOW - 180;
        if (!empty($support)) {
        foreach ($support as $a) {
        $firstline .= "
".htmlsafechars($a['username'])."         ($a['last_access']>$dt?"online.png":"offline.png" )."' border='0' alt='' />"."".htmlsafechars($a[".htmlsafechars($a['supportfor'])."

       
       
       
       
       
       
       
       
       
        ".$firstline."";
$htmlout .="
{$lang['text_first']}
{$lang['first_name']} {$lang['first_active']}   {$lang['first_contact']}    {$lang['first_lang']}{$lang['first_supportfor']}
";
}
echo stdhead('Staff', true, $stdhead) . $htmlout . stdfoot();
?>

Typon 10th October 2013 16:35

Thank you! :wave:


All times are GMT +2. The time now is 13:41.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.