To jest tylko wersja do druku, aby zobaczyć pełną wersję tematu, kliknij TUTAJ
phpBB2 by Przemo
Support forów phpBB2 modified by Przemo

1.12.7 i starsze - Multiple Ranks 2.1a (Beta)

Ross2303 - 30-01-2013, 22:15

Nie chce odkopywać, ale ta modyfikacja nie działa poprawnie z nowym Przemo .Mógł by ktoś ją sprawdzić?
Potrzebuje tego koniecznie.

czesio56560 - 30-01-2013, 22:22

Działa poprawnie, sam testowałem.Coś źle instalujesz.. W czym błąd ?
Łatuś - 05-02-2013, 17:38

Trochę odgrzebuję, no ale co poradzić, modyfikacja jest nadal aktywna.
Oczywiście ją zainstalowałem / wgrałem wydaje mi się, że poprawnie, dodałem zapytania do mySQL - ok. Co dalej? Próbuję dodać jakieś rangi w PA i za nic w świecie nie mogę zrobić tak, aby było ich kilka w profilu. Dodatkowo jeżeli ustawię "rangę specjalną" i chcę ją sobie dodać w profilu, poprzez jego zedytowanie, po kliknięciu "zapisz" dostaję coś takiego:

Kod:
Could not rename users group

DEBUG MODE

SQL Error : 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' user_rank2 = -1, user_rank3 = -2, user_rank4 = -2, user_rank5 = -2, user_gender' at line 2

UPDATE phpbb_users SET user_email = 'rychu757@gmail.com', user_icq = '', user_website = 'http://podkszaczkiem.pl', user_occ = '', user_from = '3city' , user_field_1 = 'STEAM_0:1:17145270', user_allow_field_1 = 1, user_interests = '', user_custom_color = '', user_custom_rank = 'Właściciel', user_sig = '[center:cc7c8a4476] https://www.facebook.com/pieknoXXwieku [b:cc7c8a4476][u:cc7c8a4476]Masz chwilę? Kliknij \"Lubię to!\"[/b:cc7c8a4476][/u:cc7c8a4476] https://www.facebook.com/HondaElblag GG: 8226245 STEAM: rychu991 [/center:cc7c8a4476]', user_viewemail = 1, user_viewaim = 1, user_aim = '8226245', user_yim = '', user_msnm = '', user_attachsig = 1, user_sig_bbcode_uid = 'cc7c8a4476', user_allowsmile = 1, user_allowhtml = 1, user_allowavatar = 1, user_allowsig = 1, user_allowbbcode = 1, user_allow_viewonline = 0, user_notify = 0, user_allow_pm = 1, user_notify_pm = 1, user_popup_pm = 1, allowpm = 1, user_notify_gg = 0, user_lang = 'polish', user_style = 2, user_timezone = 1, user_active = 1 , user_rank = -1, , user_rank2 = -1, user_rank3 = -2, user_rank4 = -2, user_rank5 = -2, user_gender = '1', user_birthday = 6772, user_next_birthday_greeting = 2013 , disallow_forums = '', can_custom_ranks = 1, can_custom_color = 1, can_topic_color = 1, user_allow_helped = 1, user_ip_login_check = 1 WHERE user_id = 2

Line : 1013
File : admin_users.php

Miłosz - 09-03-2013, 01:48
Temat postu: Więcej Rang
Potrzebuje na forum więcej rang

zmieniłem instrukcje na taką
Kod:
##############################################################################################
## MOD Title: Multiple Ranks                                    ##
## MOD Author: Matrix  < info@alldeaf.pl > http://design.alldeaf.pl                ##
##                                                ##
## MOD Description: MOD dodaje kilka rang nad avatarem w poście i w profilu.             ##
##                                                ##
## MOD Version: 2.1a BETA ( Originalna wersja: 2.0.3 Mighty Gorgon )                ##
##                                                 ##
## Installation Level: średnio (medium)                                ##
## Installation Time: 15 minut (15 minutes)                            ##
##                                                ##
## Files To Edit: (10)                                        ##
##                viewtopic.php                                    ##
##                admin/admin_ranks.php                                ##
##                admin/admin_users.php                                ##
##                includes/usercp_viewprofile.php                        ##
##                language/lang_english/lang_main.php                        ##
##                language/lang_polish/lang_main.php                        ##
##                templates/subSilver/profile_view_body.tpl                    ##
##                templates/subSilver/viewtopic_body.tpl                    ##
##                templates/subSilver/admin/user_edit_body.tpl                    ##
##                templates/subSilver/admin/ranks_edit_body.tpl                    ##
##                                                ##
## Included Files: (3)                                        ##
##                ranks.php                                    ##
##                includes/functions_mg_ranks.php                        ##
##                templates/subSilver/ranks_body.tpl                        ##
##                                                ##
##############################################################################################
##                                                ##
## License: http://www.gnu.org/licenses/gpl.html (GPL 2)                        ##
##                                                ##
##############################################################################################
##                                                ##
## Dla osób mających problem ze zrozumieniem instrukcji: http://www.phpbb2.pl/faq.php?faq=1 ##
##                                                ##
##############################################################################################
##                                                ##
## MOD History:                                            ##
##    2008-02-03 - Wersja 2.1a                                ##
##    - większe poprawki w instrukcji                                ##
##                                                ##
##    2007-02-21 - Wersja 2.1                                    ##
##    - duże zmiany i poprawki                                ##
##    - Usunięte w instrukcji wersji 2.0.3 (originalny):                    ##
##                memberlist.php                                ##
##                includes/page_header.php                            ##
##                language/lang_english/lang_admin.php                        ##
##                templates/subSilver/overall_header.tpl                    ##
##                templates/subSilver/memberlist_body.tpl                    ##
##                templates/subSilver/subSilver.cfg                        ##
##                templates/subSilver/images/spacer.gif                     ##
##                                                ##
##############################################################################################

#
#-----[ COPY ]------------------------------------------------
#

copy phpbb_root/*.php to *.php
copy phpbb_root/includes/*.php to includes/
copy phpbb_root/templates/subSilver/*.* to templates/subSilver/

#
#-----[ SQL ]-------------------------------------------------
#

ALTER TABLE iteam21_users ADD user_rank2 INT(11) DEFAULT '-1';
ALTER TABLE iteam21_users ADD user_rank3 INT(11) DEFAULT '-2';
ALTER TABLE iteam21_users ADD user_rank4 INT(11) DEFAULT '-2';
ALTER TABLE iteam21_users ADD user_rank5 INT(11) DEFAULT '-2';
ALTER TABLE iteam21_users ADD user_rank6 INT(11) DEFAULT '-2';
ALTER TABLE iteam21_users ADD user_rank7 INT(11) DEFAULT '-2';
ALTER TABLE iteam21_users ADD user_rank8 INT(11) DEFAULT '-2';
ALTER TABLE iteam21_users ADD user_rank9 INT(11) DEFAULT '-2';
#
#-----[ OPEN ]------------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------------
#
, u.user_rank
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, u.user_rank2, u.user_rank3, u.user_rank4, u.user_rank5, u.user_rank6, u.user_rank7, u.user_rank8, u.user_rank9
#
#-----[ FIND ]------------------------------------------------
#
    $sql = "SELECT *
        FROM " . RANKS_TABLE . "
        ORDER BY rank_special, rank_min DESC";
    if ( !($result = $db->sql_query($sql)) )
    {
        message_die(GENERAL_ERROR, 'Could not obtain ranks information.', '', __LINE__, __FILE__, $sql);
    }
    while ( $row = $db->sql_fetchrow($result) )
    {
        $list_ranks[] = $row;
    }
    $db->sql_freeresult($result);
    sql_cache('write', 'list_ranks', $list_ranks);
}

for($i=0; $i < count($list_ranks); $i++)
{
    $row = $list_ranks[$i];
    if ( $row['rank_special'] )
    {
        $ranksrow[-1][$row['rank_id']] = $row;
    }
    else
    {
        $ranksrow[$row['rank_group']][] = $row;
        $rank_group_id_sql .= $row['rank_group'] > 0 ? ( ',' . $row['rank_group'] ) : '';
        $ranksrow[$row['rank_group']]['count']++;
    }

#
#-----[ REPLACE WITH ]----------------------------------------
#
// MOD Multiple Ranks 2.1 by Matrix
require_once($phpbb_root_path . 'includes/functions_mg_ranks.'.$phpEx);
$ranks_sql = query_ranks();
// MOD Multiple Ranks 2.1 by Matrix

#
#-----[ FIND AND DELETE ]------------------------------------------------
#
        $poster_rank = '';
#
#-----[ FIND AND DELETE ]------------------------------------------------
#
        $rank_image = '';
#
#-----[ FIND ]------------------------------------------------
#
        // Generate ranks, set them to empty string initially.
        $poster_rank = '';
        $rank_image = '';
        if ( $poster_id == ANONYMOUS )
        {
            $anonymous_user = true;
        }
        else if ( $postrow[$i]['user_rank'] )
        {
            $poster_rank = $ranksrow[-1][$postrow[$i]['user_rank']]['rank_title'];
            $rank_file = $images['rank_path'] . $ranksrow[-1][$postrow[$i]['user_rank']]['rank_image'];
            $sizes = @getimagesize($rank_file);
            $rank_sizes = (intval($sizes[0]) > 0 && intval($sizes[1]) > 0) ? '" width="' . $sizes[0] . '" height="' . $sizes[1] : '';
            $rank_image = ($ranksrow[-1][$postrow[$i]['user_rank']]['rank_image']) ? '<img src="' . $rank_file . $width . '" alt="" title="' . str_replace('-#', '', $poster_rank) . '" border="0" /><br />' : '';
            $poster_rank = $poster_rank . '<br />';
            if ( ereg('-#', $poster_rank) )
            {
                $poster_rank = '';
            }
        }
        else if ( isset($poster_group[$poster_id]) )
        {
            $g = $poster_group[$poster_id];
            for($j = 0; $j < $ranksrow[$g]['count']; $j++)
            {
                if ( $poster_posts >= $ranksrow[$g][$j]['rank_min'] )
                {
                    $poster_rank = $ranksrow[$g][$j]['rank_title'];
                    $rank_file = $images['rank_path'] . $ranksrow[$g][$j]['rank_image'];
                    $sizes = @getimagesize($rank_file);
                    $rank_sizes = (intval($sizes[0]) > 0 && intval($sizes[1]) > 0) ? '" width="' . $sizes[0] . '" height="' . $sizes[1] : '';
                    $rank_image = ($ranksrow[$g][$j]['rank_image']) ? '<img src="' . $rank_file . $width . '" alt="" title="' . str_replace('-#', '', $poster_rank) . '" border="0" /><br />' : '';
                    $poster_rank = $poster_rank . '<br />';
                    if ( ereg('-#', $poster_rank) )
                    {
                        $poster_rank = '';
                    }
                    break;
                }
            }
        }
        else
        {
            for($j = 0; $j < $ranksrow[0]['count']; $j++)
            {
                if ( $poster_posts >= $ranksrow[0][$j]['rank_min'] )
                {
                    $poster_rank = $ranksrow[0][$j]['rank_title'];
                    $rank_file = $images['rank_path'] . $ranksrow[0][$j]['rank_image'];
                    $sizes = @getimagesize($rank_file);
                    $rank_sizes = (intval($sizes[0]) > 0 && intval($sizes[1]) > 0) ? '" width="' . $sizes[0] . '" height="' . $sizes[1] : '';
                    $rank_image = ($ranksrow[0][$j]['rank_image']) ? '<img src="' . $rank_file . $width . '" alt="" title="' . str_replace('-#', '', $poster_rank) . '" border="0" /><br />' : '';
                    $poster_rank = $poster_rank . '<br />';
                    if ( ereg('-#', $poster_rank) )
                    {
                        $poster_rank = '';
                    }
                    break;
                }
            }
        }

#
#-----[ REPLACE WITH ]----------------------------------------
#
        // MOD Multiple Ranks 2.1 by Matrix
        $user_ranks = generate_ranks($postrow[$i], $ranks_sql);

        $user_rank_01 = ($user_ranks['rank_01'] == '') ? '' : ($user_ranks['rank_01'] . '<br />');
        $user_rank_01_img = ($user_ranks['rank_01_img'] == '') ? '' : ($user_ranks['rank_01_img'] . '<br />');
        $user_rank_02 = ($user_ranks['rank_02'] == '') ? '' : ($user_ranks['rank_02'] . '<br />');
        $user_rank_02_img = ($user_ranks['rank_02_img'] == '') ? '' : ($user_ranks['rank_02_img'] . '<br />');
        $user_rank_03 = ($user_ranks['rank_03'] == '') ? '' : ($user_ranks['rank_03'] . '<br />');
        $user_rank_03_img = ($user_ranks['rank_03_img'] == '') ? '' : ($user_ranks['rank_03_img'] . '<br />');
        $user_rank_04 = ($user_ranks['rank_04'] == '') ? '' : ($user_ranks['rank_04'] . '<br />');
        $user_rank_04_img = ($user_ranks['rank_04_img'] == '') ? '' : ($user_ranks['rank_04_img'] . '<br />');
        $user_rank_05 = ($user_ranks['rank_05'] == '') ? '' : ($user_ranks['rank_05'] . '<br />');
        $user_rank_05_img = ($user_ranks['rank_05_img'] == '') ? '' : ($user_ranks['rank_05_img'] . '<br />');
        $user_rank_06 = ($user_ranks['rank_06'] == '') ? '' : ($user_ranks['rank_06'] . '<br />');
        $user_rank_06_img = ($user_ranks['rank_06_img'] == '') ? '' : ($user_ranks['rank_06_img'] . '<br />');
        $user_rank_07 = ($user_ranks['rank_07'] == '') ? '' : ($user_ranks['rank_07'] . '<br />');
        $user_rank_07_img = ($user_ranks['rank_07_img'] == '') ? '' : ($user_ranks['rank_07_img'] . '<br />');
        $user_rank_08 = ($user_ranks['rank_08'] == '') ? '' : ($user_ranks['rank_08'] . '<br />');
        $user_rank_08_img = ($user_ranks['rank_08_img'] == '') ? '' : ($user_ranks['rank_08_img'] . '<br />');
        $user_rank_09 = ($user_ranks['rank_09'] == '') ? '' : ($user_ranks['rank_09'] . '<br />');
        $user_rank_09_img = ($user_ranks['rank_09_img'] == '') ? '' : ($user_ranks['rank_09_img'] . '<br />');
        // MOD Multiple Ranks 2.1 by Matrix



#
#-----[ FIND ]------------------------------------------------
#
                    $poster_rank = $lang['Guest'];
#
#-----[ REPLACE WITH ]----------------------------------------
#
                    // MOD Multiple Ranks 2.1 by Matrix
                    $user_rank_01 = $lang['Guest'] . '<br />';
                    // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
        'POSTER_RANK' => $poster_rank,
        'CUSTOM_RANK' => $poster_custom_rank,
        'RANK_IMAGE' => $rank_image,
#
#-----[ REPLACE WITH ]----------------------------------------
#
        'CUSTOM_RANK' => $poster_custom_rank,

        // MOD Multiple Ranks 2.1 by Matrix
        'USER_RANK_01' => $user_rank_01,
        'USER_RANK_01_IMG' => $user_rank_01_img,
        'USER_RANK_02' => $user_rank_02,
        'USER_RANK_02_IMG' => $user_rank_02_img,
        'USER_RANK_03' => $user_rank_03,
        'USER_RANK_03_IMG' => $user_rank_03_img,
        'USER_RANK_04' => $user_rank_04,
        'USER_RANK_04_IMG' => $user_rank_04_img,
        'USER_RANK_05' => $user_rank_05,
        'USER_RANK_05_IMG' => $user_rank_05_img,
        'USER_RANK_06' => $user_rank_06,
        'USER_RANK_06_IMG' => $user_rank_06_img,
        'USER_RANK_07' => $user_rank_07,
        'USER_RANK_07_IMG' => $user_rank_07_img,
        'USER_RANK_08' => $user_rank_08,
        'USER_RANK_08_IMG' => $user_rank_08_img,
        'USER_RANK_09' => $user_rank_09,
        'USER_RANK_09_IMG' => $user_rank_09_img,
        // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_ranks.php
#
#-----[ FIND ]------------------------------------------------
#

        $rank_is_special = ( $rank_info['rank_special'] ) ? "checked=\"checked\"" : "";
        $rank_is_not_special = ( !$rank_info['rank_special'] ) ? "checked=\"checked\"" : "";
        $rep = '../' . $images['rank_path'] . '';
        $dir = opendir($rep);

        $l = 0;
        while($file = readdir($dir))
        {
            if (strpos($file, '.gif') || strpos($file, '.png'))
            {
                $file1[$l] = $file;
                $l++;
            }
        }
        closedir($dir);
        $ranks_list .= '<option value="">-</option>';
        for($k = 0; $k <= $l; $k++)
        {
            if ($file1[$k] != '')
            {
                $selected = ($rank_info['rank_image'] == $file1[$k]) ? ' selected="selected"' : '';
                $ranks_list .= '<option value="' . $file1[$k] . '"' . $selected . '>' . $file1[$k] . '</option>';
            }
        }

#
#-----[ REPLACE WITH ]----------------------------------------
#

        // MOD Multiple Ranks 2.1 by Matrix
        $rank_no_rank = ( $rank_info['rank_special'] == '-2' ) ? "checked=\"checked\"" : "";
        $rank_day_counter = ( $rank_info['rank_special'] == '-1' ) ? "checked=\"checked\"" : "";
        $rank_is_not_special = ( $rank_info['rank_special'] == '0' ) ? "checked=\"checked\"" : "";
        $rank_is_special = ( $rank_info['rank_special'] == '1' ) ? "checked=\"checked\"" : "";
        $rank_is_guest = ( $rank_info['rank_special'] == '2' ) ? "checked=\"checked\"" : "";
        $rank_is_banned = ( $rank_info['rank_special'] == '3' ) ? "checked=\"checked\"" : "";

        $rank_path = ('../' . $images['rank_path']);

        if ( is_dir($rank_path) )
        {
            $dir = opendir($rank_path);
            $l = 0;
            while($file = readdir($dir))
            {
                if (strpos($file, '.gif'))
                {
                    $file1[$l] = $file;
                    $l++;
                }
            }
            closedir($dir);

            if ($rank_info['rank_image'] == '')
            {
                $ranks_list .= "<option value=\"\" selected=\"selected\">" . $lang['No_Rank_Image'] . "</option>";
            }
            else
            {
                $ranks_list .= "<option value=\"\">" . $lang['No_Rank_Image'] . "</option>";
                $ranks_list .= "<option value=\"" . $rank_info['rank_image'] . "\" selected=\"selected\">" . str_replace($rank_path, "", $rank_info['rank_image']) . "</option>";
            }
            for($k=0; $k<=$l;$k++)
            {
                if ($file1[$k] != "")
                {
                    $ranks_list .= "<option name=\"rank_image_path\" value=\"" . $file1[$k] . "\">" . $file1[$k] . "</option>";
                }
            }

            $rank_img_sp = ( ($rank_info['rank_image'] != '') ? ('../' . $rank_info['rank_image']) : $images['spacer'] );

            $rank_img_path = ( $rank_info['rank_image'] != '' ) ? $rank_info['rank_image'] : '';
            $ranks_list .= '</select>';

            $ranks_list .= '&nbsp;&nbsp;<img name="rank_image" src="' . $rank_img_sp . '" border="0" alt="" align="absmiddle" />';
        }
        else
        {
            $rank_img_path = ( $rank_info['rank_image'] != '' ) ? $rank_info['rank_image'] : '';
            $ranks_list = '<input class="post" type="text" name="rank_image_path" size="40" maxlength="255" value="' . $rank_img_path . '" /><br />';
        }
        // MOD Multiple Ranks 2.1 by Matrix

#
#-----[ FIND ]------------------------------------------------
#
            "SPECIAL_RANK" => $rank_is_special,
            "NOT_SPECIAL_RANK" => $rank_is_not_special,
            "MINIMUM" => ( $rank_is_special ) ? "" : $rank_info['rank_min'],

#
#-----[ REPLACE WITH ]----------------------------------------
#

            // MOD Multiple Ranks 2.1 by Matrix
            "NO_RANK" => $rank_no_rank,
            "DAYS_RANK" => $rank_day_counter,
            "NOT_SPECIAL_RANK" => $rank_is_not_special,
            "MINIMUM" => ( ($rank_info['rank_special'] == '0') || ($rank_info['rank_special'] == '-1') ) ? $rank_info['rank_min'] : "",
            "SPECIAL_RANK" => $rank_is_special,
            "GUEST_RANK" => $rank_is_guest,
            "BANNED_RANK" => $rank_is_banned,
            "RANK_LIST" => $ranks_list,
            "RANK_IMG" => ( $rank_info['rank_image'] != "") ? '../' . $rank_info['rank_image'] : $images['spacer'],

            "L_NO_RANK" => $lang['No_Rank'],
            "L_DAYS_RANK" => $lang['Rank_Days_Count'],
            "L_POSTS_RANK" => $lang['Rank_Posts_Count'],
            "L_MIN_M_D" => $lang['Rank_Min_Des'],
            "L_SPECIAL_RANK" => $lang['Rank_Special'],
            "L_GUEST" => $lang['Guest_User'],
            "L_BANNED" => $lang['Banned_User'],
            "L_CURRENT_RANK" => $lang['Current_Rank_Image'],
            // MOD Multiple Ranks 2.1 by Matrix

#
#-----[ FIND ]------------------------------------------------
#
        $special_rank = ( $HTTP_POST_VARS['special_rank'] == 1 ) ? TRUE : 0;
        $group = ( $HTTP_POST_VARS['group'] > 0 ) ? intval($HTTP_POST_VARS['group']) : 0;
        $min_posts = ( $HTTP_POST_VARS['min_posts'] != '' ) ? intval($HTTP_POST_VARS['min_posts']) : "-1";
        $rank_image = ( (isset($HTTP_POST_VARS['rank_image'])) ) ? trim($HTTP_POST_VARS['rank_image']) : "";

        if( $rank_title == "" )
        {
            message_die(GENERAL_MESSAGE, $lang['Must_select_rank']);
        }

        if( $special_rank == 1 )
        {
            $max_posts = -1;
            $min_posts = -1;
            $group = 0;
        }

#
#-----[ REPLACE WITH ]----------------------------------------
#

        // MOD Multiple Ranks 2.1 by Matrix
        $special_rank = $HTTP_POST_VARS['special_rank'];
        $min_posts = ( isset($HTTP_POST_VARS['min_posts']) ) ? intval($HTTP_POST_VARS['min_posts']) : -1;
        $rank_image = ( (isset($HTTP_POST_VARS['rank_image_path'])) ) ? trim($HTTP_POST_VARS['rank_image_path']) : "";

        if( $rank_title == "" )
        {
            message_die(GENERAL_MESSAGE, $lang['Must_select_rank']);
        }

        if( $special_rank > 0 )
        {
            $max_posts = -1;
            $min_posts = -1;
            $group = 0;
        }
        // MOD Multiple Ranks 2.1 by Matrix

#
#-----[ FIND ]------------------------------------------------
#
            if (!$special_rank)
#
#-----[ REPLACE WITH ]----------------------------------------
#
            // MOD Multiple Ranks 2.1 by Matrix
            if ($special_rank == 1)
            // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
            $rank_is_special = ( $special_rank ) ? $lang['Yes'] : ( $rank_rows[$i]['rank_group'] > 0 ? $rank_rows[$i]['group_name'] : $lang['No'] );
#
#-----[ REPLACE WITH ]----------------------------------------
#
            // MOD Multiple Ranks 2.1 by Matrix
            $rank_is_special = ( $special_rank > 0) ? $lang['Yes'] : $lang['No'];
            // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
             "RANK" => htmlspecialchars($rank),
#
#-----[ REPLACE WITH ]----------------------------------------
#
            "RANK" => $rank,
#
#-----[ FIND ]------------------------------------------------
#
        if( $special_rank == 1 )
#
#-----[ REPLACE WITH ]----------------------------------------
#
        // MOD Multiple Ranks 2.1 by Matrix
        $rank_img_sp = ( ($rank_rows[$i]['rank_image'] != "") ? ('../' . $rank_rows[$i]['rank_image']) : $images['spacer'] );
        $rank .= '<br /><img name="rank_image" src="' . $rank_img_sp . '" border="0" alt="" />';

        if( ($special_rank > 0) || ($special_rank == '-2') )
        // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
        $rank_is_special = ( $special_rank ) ? $lang['Yes'] : ( $rank_rows[$i]['rank_group'] > 0 ? $rank_rows[$i]['group_name'] : $lang['No'] );
#
#-----[ REPLACE WITH ]----------------------------------------
#
        // MOD Multiple Ranks 2.1 by Matrix
        $rank_is_special = ( $special_rank > 0) ? $lang['Yes'] : $lang['No'];
        // MOD Multiple Ranks 2.1 by Matrix

#
#-----[ FIND ]------------------------------------------------
#
             "RANK" => htmlspecialchars($rank),
#
#-----[ REPLACE WITH ]----------------------------------------
#
            "RANK" => $rank,
#
#-----[ OPEN ]------------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------------
#
        $user_rank = ( !empty($HTTP_POST_VARS['user_rank']) ) ? intval( $HTTP_POST_VARS['user_rank'] ) : 0;
#
#-----[ REPLACE WITH ]------------------------------------------
#
        // MOD Multiple Ranks 2.1 by Matrix
        $user_rank  = ( !empty($HTTP_POST_VARS['user_rank']) )  ? intval( $HTTP_POST_VARS['user_rank'] )  : 0;
        $user_rank2 = ( !empty($HTTP_POST_VARS['user_rank2']) ) ? intval( $HTTP_POST_VARS['user_rank2'] ) : 0;
        $user_rank3 = ( !empty($HTTP_POST_VARS['user_rank3']) ) ? intval( $HTTP_POST_VARS['user_rank3'] ) : 0;
        $user_rank4 = ( !empty($HTTP_POST_VARS['user_rank4']) ) ? intval( $HTTP_POST_VARS['user_rank4'] ) : 0;
        $user_rank5 = ( !empty($HTTP_POST_VARS['user_rank5']) ) ? intval( $HTTP_POST_VARS['user_rank5'] ) : 0;
        $user_rank6 = ( !empty($HTTP_POST_VARS['user_rank6']) ) ? intval( $HTTP_POST_VARS['user_rank6'] ) : 0;
        $user_rank7 = ( !empty($HTTP_POST_VARS['user_rank7']) ) ? intval( $HTTP_POST_VARS['user_rank7'] ) : 0;
        $user_rank8 = ( !empty($HTTP_POST_VARS['user_rank8']) ) ? intval( $HTTP_POST_VARS['user_rank8'] ) : 0;
        $user_rank9 = ( !empty($HTTP_POST_VARS['user_rank9']) ) ? intval( $HTTP_POST_VARS['user_rank9'] ) : 0;
        // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
SET " . $username_sql . $passwd_sql . "
#
#-----[ IN-LINE FIND ]----------------------------------------
#
user_rank = $user_rank
#
#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, user_rank2 = $user_rank2, user_rank3 = $user_rank3, user_rank4 = $user_rank4, user_rank5 = $user_rank5
#
#-----[ FIND ]------------------------------------------------
#
            $s_hidden_fields .= '<input type="hidden" name="user_rank" value="' . $user_rank . '" />';
#
#-----[ REPLACE WITH ]----------------------------------------
#
            // MOD Multiple Ranks 2.1 by Matrix
            $s_hidden_fields .= '<input type="hidden" name="user_rank" value="' . $user_rank . '" />';
            $s_hidden_fields .= '<input type="hidden" name="user_rank2" value="' . $user_rank2 . '" />';
            $s_hidden_fields .= '<input type="hidden" name="user_rank3" value="' . $user_rank3 . '" />';
            $s_hidden_fields .= '<input type="hidden" name="user_rank4" value="' . $user_rank4 . '" />';
            $s_hidden_fields .= '<input type="hidden" name="user_rank5" value="' . $user_rank5 . '" />';
            $s_hidden_fields .= '<input type="hidden" name="user_rank6" value="' . $user_rank6 . '" />';
            $s_hidden_fields .= '<input type="hidden" name="user_rank7" value="' . $user_rank7 . '" />';
            $s_hidden_fields .= '<input type="hidden" name="user_rank8" value="' . $user_rank8 . '" />';
            $s_hidden_fields .= '<input type="hidden" name="user_rank9" value="' . $user_rank9 . '" />';
            // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
        $rank_select_box = '<option value="0">' . $lang['No_assigned_rank'] . '</option>';
#
#-----[ REPLACE WITH ]----------------------------------------
#
        // MOD Multiple Ranks 2.1 by Matrix
        $selected1 = ( $this_userdata['user_rank'] == '-2' ) ? ' selected="selected"' : '';
        $selected2 = ( $this_userdata['user_rank2'] == '-2' ) ? ' selected="selected"' : '';
        $selected3 = ( $this_userdata['user_rank3'] == '-2' ) ? ' selected="selected"' : '';
        $selected4 = ( $this_userdata['user_rank4'] == '-2' ) ? ' selected="selected"' : '';
        $selected5 = ( $this_userdata['user_rank5'] == '-2' ) ? ' selected="selected"' : '';
        $selected6 = ( $this_userdata['user_rank6'] == '-2' ) ? ' selected="selected"' : '';
        $selected7 = ( $this_userdata['user_rank7'] == '-2' ) ? ' selected="selected"' : '';
        $selected8 = ( $this_userdata['user_rank8'] == '-2' ) ? ' selected="selected"' : '';
        $selected9 = ( $this_userdata['user_rank9'] == '-2' ) ? ' selected="selected"' : '';
        $rank1_select_box = '<option value="-2"' . $selected1 . '>' . $lang['No_Rank'] . '</option>';
        $rank2_select_box = '<option value="-2"' . $selected2 . '>' . $lang['No_Rank'] . '</option>';
        $rank3_select_box = '<option value="-2"' . $selected3 . '>' . $lang['No_Rank'] . '</option>';
        $rank4_select_box = '<option value="-2"' . $selected4 . '>' . $lang['No_Rank'] . '</option>';
        $rank5_select_box = '<option value="-2"' . $selected5 . '>' . $lang['No_Rank'] . '</option>';
        $rank6_select_box = '<option value="-2"' . $selected6 . '>' . $lang['No_Rank'] . '</option>';
        $rank7_select_box = '<option value="-2"' . $selected7 . '>' . $lang['No_Rank'] . '</option>';
        $rank8_select_box = '<option value="-2"' . $selected8 . '>' . $lang['No_Rank'] . '</option>';
        $rank9_select_box = '<option value="-2"' . $selected9 . '>' . $lang['No_Rank'] . '</option>';
        $selected1 = ( $this_userdata['user_rank'] == '-1' ) ? ' selected="selected"' : '';
        $selected2 = ( $this_userdata['user_rank2'] == '-1' ) ? ' selected="selected"' : '';
        $selected3 = ( $this_userdata['user_rank3'] == '-1' ) ? ' selected="selected"' : '';
        $selected4 = ( $this_userdata['user_rank4'] == '-1' ) ? ' selected="selected"' : '';
        $selected5 = ( $this_userdata['user_rank5'] == '-1' ) ? ' selected="selected"' : '';
        $selected6 = ( $this_userdata['user_rank6'] == '-1' ) ? ' selected="selected"' : '';
        $selected7 = ( $this_userdata['user_rank7'] == '-1' ) ? ' selected="selected"' : '';
        $selected8 = ( $this_userdata['user_rank8'] == '-1' ) ? ' selected="selected"' : '';
        $selected9 = ( $this_userdata['user_rank9'] == '-1' ) ? ' selected="selected"' : '';
        $rank1_select_box .= '<option value="-1"' . $selected1 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $rank2_select_box .= '<option value="-1"' . $selected2 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $rank3_select_box .= '<option value="-1"' . $selected3 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $rank4_select_box .= '<option value="-1"' . $selected4 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $rank5_select_box .= '<option value="-1"' . $selected5 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $rank6_select_box .= '<option value="-1"' . $selected6 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $rank7_select_box .= '<option value="-1"' . $selected7 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $rank8_select_box .= '<option value="-1"' . $selected8 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $rank9_select_box .= '<option value="-1"' . $selected9 . '>' . $lang['Rank_Days_Count'] . '</option>';
        $selected1 = ( $this_userdata['user_rank'] == '0' ) ? ' selected="selected"' : '';
        $selected2 = ( $this_userdata['user_rank2'] == '0' ) ? ' selected="selected"' : '';
        $selected3 = ( $this_userdata['user_rank3'] == '0' ) ? ' selected="selected"' : '';
        $selected4 = ( $this_userdata['user_rank4'] == '0' ) ? ' selected="selected"' : '';
        $selected5 = ( $this_userdata['user_rank5'] == '0' ) ? ' selected="selected"' : '';
        $selected6 = ( $this_userdata['user_rank6'] == '0' ) ? ' selected="selected"' : '';
        $selected7 = ( $this_userdata['user_rank7'] == '0' ) ? ' selected="selected"' : '';
        $selected8 = ( $this_userdata['user_rank8'] == '0' ) ? ' selected="selected"' : '';
        $selected9 = ( $this_userdata['user_rank9'] == '0' ) ? ' selected="selected"' : '';
        $rank1_select_box .= '<option value="0"' . $selected1 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        $rank2_select_box .= '<option value="0"' . $selected2 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        $rank3_select_box .= '<option value="0"' . $selected3 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        $rank4_select_box .= '<option value="0"' . $selected4 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        $rank5_select_box .= '<option value="0"' . $selected5 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        $rank6_select_box .= '<option value="0"' . $selected6 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        $rank7_select_box .= '<option value="0"' . $selected7 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        $rank8_select_box .= '<option value="0"' . $selected8 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        $rank9_select_box .= '<option value="0"' . $selected9 . '>' . $lang['Rank_Posts_Count'] . '</option>';
        // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
            $selected = ( $this_userdata['user_rank'] == $rank_id ) ? ' selected="selected"' : '';
            $rank_select_box .= '<option value="' . $rank_id . '"' . $selected . '>' . $rank . '</option>';
#
#-----[ REPLACE WITH ]----------------------------------------
#
            // MOD Multiple Ranks 2.1 by Matrix
            $selected1 = ( $this_userdata['user_rank'] == $rank_id ) ? ' selected="selected"' : '';
            $selected2 = ( $this_userdata['user_rank2'] == $rank_id ) ? ' selected="selected"' : '';
            $selected3 = ( $this_userdata['user_rank3'] == $rank_id ) ? ' selected="selected"' : '';
            $selected4 = ( $this_userdata['user_rank4'] == $rank_id ) ? ' selected="selected"' : '';
            $selected5 = ( $this_userdata['user_rank5'] == $rank_id ) ? ' selected="selected"' : '';
            $selected6 = ( $this_userdata['user_rank6'] == $rank_id ) ? ' selected="selected"' : '';
            $selected7 = ( $this_userdata['user_rank7'] == $rank_id ) ? ' selected="selected"' : '';
            $selected8 = ( $this_userdata['user_rank8'] == $rank_id ) ? ' selected="selected"' : '';
            $selected9 = ( $this_userdata['user_rank9'] == $rank_id ) ? ' selected="selected"' : '';
            $rank1_select_box .= '<option value="' . $rank_id . '"' . $selected1 . '>' . $rank . '</option>';
            $rank2_select_box .= '<option value="' . $rank_id . '"' . $selected2 . '>' . $rank . '</option>';
            $rank3_select_box .= '<option value="' . $rank_id . '"' . $selected3 . '>' . $rank . '</option>';
            $rank4_select_box .= '<option value="' . $rank_id . '"' . $selected4 . '>' . $rank . '</option>';
            $rank5_select_box .= '<option value="' . $rank_id . '"' . $selected5 . '>' . $rank . '</option>';
            $rank6_select_box .= '<option value="' . $rank_id . '"' . $selected6 . '>' . $rank . '</option>';
            $rank7_select_box .= '<option value="' . $rank_id . '"' . $selected7 . '>' . $rank . '</option>';
            $rank8_select_box .= '<option value="' . $rank_id . '"' . $selected8 . '>' . $rank . '</option>';
            $rank9_select_box .= '<option value="' . $rank_id . '"' . $selected9 . '>' . $rank . '</option>';
            // MOD Multiple Ranks 2.1 by Matrix

#
#-----[ FIND ]------------------------------------------------
#
            'L_SELECT_RANK' => $lang['Rank_title'],
#
#-----[ REPLACE WITH ]----------------------------------------
#
            // MOD Multiple Ranks 2.1 by Matrix
            'L_SELECT_RANK1' => $lang['Rank1_title'],
            'L_SELECT_RANK2' => $lang['Rank2_title'],
            'L_SELECT_RANK3' => $lang['Rank3_title'],
            'L_SELECT_RANK4' => $lang['Rank4_title'],
            'L_SELECT_RANK5' => $lang['Rank5_title'],
            'L_SELECT_RANK6' => $lang['Rank6_title'],
            'L_SELECT_RANK7' => $lang['Rank7_title'],
            'L_SELECT_RANK8' => $lang['Rank8_title'],
            'L_SELECT_RANK9' => $lang['Rank9_title'],
            // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
            'RANK_SELECT_BOX' => $rank_select_box,
#
#-----[ REPLACE WITH ]----------------------------------------
#
            // MOD Multiple Ranks 2.1 by Matrix
            'RANK1_SELECT_BOX' => $rank1_select_box,
            'RANK2_SELECT_BOX' => $rank2_select_box,
            'RANK3_SELECT_BOX' => $rank3_select_box,
            'RANK4_SELECT_BOX' => $rank4_select_box,
            'RANK5_SELECT_BOX' => $rank5_select_box,
            'RANK6_SELECT_BOX' => $rank6_select_box,
            'RANK7_SELECT_BOX' => $rank7_select_box,
            'RANK8_SELECT_BOX' => $rank8_select_box,
            'RANK9_SELECT_BOX' => $rank9_select_box,
            // MOD Multiple Ranks 2.1 by Matrix

#
#-----[ OPEN ]------------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------------
#
$poster_rank = '';
$rank_image = '';
if ( $user_rank )
{
    $sql = "SELECT *
        FROM " . RANKS_TABLE . "
        WHERE rank_id = " . $user_rank;
    if ( !($result = $db->sql_query($sql)) )
    {
        message_die(GENERAL_ERROR, 'Could not obtain user speical rank ', '', __LINE__, __FILE__, $sql);
    }
    if ( $row = $db->sql_fetchrow($result) )
    {
        $poster_rank = $row['rank_title'];
        if ( $poster_rank )
        {
            $poster_rank = $poster_rank . '<br />';
        }
        if ( ereg('-#', $poster_rank) )
        {
            $poster_rank = '';
        }
        $rank_image = ( $row['rank_image'] ) ? '<img src="' . $images['rank_path'] . $row['rank_image'] . '" alt="" border="0" /><br />' : '';
    }
    $db->sql_freeresult($result);
}
else
{
    $sql = "SELECT *
    FROM " . RANKS_TABLE . "
        WHERE rank_special = 0
        ORDER BY rank_min DESC";
    if ( !($result = $db->sql_query($sql)) )
    {
        message_die(GENERAL_ERROR, 'Could not obtain ranks information', '', __LINE__, __FILE__, $sql);
    }

    $ranksrow = array();
    while ( $row = $db->sql_fetchrow($result) )
    {
        $ranksrow[$row['rank_group']][] = $row;
        $ranksrow[$row['rank_group']]['count']++;
    }
    $db->sql_freeresult($result);

    $sql = "SELECT ug.group_id
        FROM (" . USER_GROUP_TABLE . " ug, " . GROUPS_TABLE . " g)
        WHERE ug.user_id = " . $user_id . "
            AND g.group_id = ug.group_id
            AND g.group_single_user = 0
            AND ug.user_pending <> 1
        ORDER BY g.group_order ASC";
    if ( !($result = $db->sql_query($sql)) )
    {
        message_die(GENERAL_MESSAGE, 'Can not find username');
    }
    $rank_group_id = 0;
    while ( $row = $db->sql_fetchrow($result) )
    {
        if ( isset($ranksrow[$row['group_id']]) )
        {
            $rank_group_id = $row['group_id'];
            break;
        }
    }
    $db->sql_freeresult($result);

    for($i = 0; $i < $ranksrow[$rank_group_id]['count']; $i++)
    {
        if ( $user_posts >= $ranksrow[$rank_group_id][$i]['rank_min'] )
        {
            $poster_rank = $ranksrow[$rank_group_id][$i]['rank_title'];
            if ( $poster_rank )
            {
                $poster_rank = $poster_rank . '<br />';
            }
            if ( ereg('-#', $poster_rank) )
            {
                $poster_rank = '';
            }
            $rank_image = ( $ranksrow[$rank_group_id][$i]['rank_image'] ) ? '<img src="' . $images['rank_path'] . $ranksrow[$rank_group_id][$i]['rank_image'] . '" alt="" border="0" /><br />' : '';
            break;
        }
    }
}
#
#-----[ REPLACE WITH ]----------------------------------------
#
// MOD Multiple Ranks 2.1 by Matrix
require_once($phpbb_root_path . 'includes/functions_mg_ranks.'.$phpEx);
$ranks_sql = query_ranks();

$user_ranks = generate_ranks($profiledata, $ranks_sql);

$user_rank_01 = ($user_ranks['rank_01'] == '') ? '' : ($user_ranks['rank_01'] . '<br />');
$user_rank_01_img = ($user_ranks['rank_01_img'] == '') ? '' : ($user_ranks['rank_01_img'] . '<br />');
$user_rank_02 = ($user_ranks['rank_02'] == '') ? '' : ($user_ranks['rank_02'] . '<br />');
$user_rank_02_img = ($user_ranks['rank_02_img'] == '') ? '' : ($user_ranks['rank_02_img'] . '<br />');
$user_rank_03 = ($user_ranks['rank_03'] == '') ? '' : ($user_ranks['rank_03'] . '<br />');
$user_rank_03_img = ($user_ranks['rank_03_img'] == '') ? '' : ($user_ranks['rank_03_img'] . '<br />');
$user_rank_04 = ($user_ranks['rank_04'] == '') ? '' : ($user_ranks['rank_04'] . '<br />');
$user_rank_04_img = ($user_ranks['rank_04_img'] == '') ? '' : ($user_ranks['rank_04_img'] . '<br />');
$user_rank_05 = ($user_ranks['rank_05'] == '') ? '' : ($user_ranks['rank_05'] . '<br />');
$user_rank_05_img = ($user_ranks['rank_05_img'] == '') ? '' : ($user_ranks['rank_05_img'] . '<br />');
$user_rank_06 = ($user_ranks['rank_06'] == '') ? '' : ($user_ranks['rank_06'] . '<br />');
$user_rank_06_img = ($user_ranks['rank_06_img'] == '') ? '' : ($user_ranks['rank_06_img'] . '<br />');
$user_rank_07 = ($user_ranks['rank_07'] == '') ? '' : ($user_ranks['rank_07'] . '<br />');
$user_rank_07_img = ($user_ranks['rank_07_img'] == '') ? '' : ($user_ranks['rank_07_img'] . '<br />');
$user_rank_08 = ($user_ranks['rank_08'] == '') ? '' : ($user_ranks['rank_08'] . '<br />');
$user_rank_08_img = ($user_ranks['rank_08_img'] == '') ? '' : ($user_ranks['rank_08_img'] . '<br />');
$user_rank_09 = ($user_ranks['rank_09'] == '') ? '' : ($user_ranks['rank_09'] . '<br />');
$user_rank_09_img = ($user_ranks['rank_09_img'] == '') ? '' : ($user_ranks['rank_09_img'] . '<br />');
// MOD Multiple Ranks 2.1 by Matrix
#
#-----[ FIND ]------------------------------------------------
#
    'POSTER_RANK' => $poster_rank,
    'RANK_IMAGE' => $rank_image,
#
#-----[ REPLACE WITH ]----------------------------------------
#
    // MOD Multiple Ranks 2.1 by Matrix
    'USER_RANK_01' => $user_rank_01,
    'USER_RANK_01_IMG' => $user_rank_01_img,
    'USER_RANK_02' => $user_rank_02,
    'USER_RANK_02_IMG' => $user_rank_02_img,
    'USER_RANK_03' => $user_rank_03,
    'USER_RANK_03_IMG' => $user_rank_03_img,
    'USER_RANK_04' => $user_rank_04,
    'USER_RANK_04_IMG' => $user_rank_04_img,
    'USER_RANK_05' => $user_rank_05,
    'USER_RANK_05_IMG' => $user_rank_05_img,
    'USER_RANK_06' => $user_rank_06,
    'USER_RANK_06_IMG' => $user_rank_06_img,
    'USER_RANK_07' => $user_rank_07,
    'USER_RANK_07_IMG' => $user_rank_07_img,
    'USER_RANK_08' => $user_rank_08,
    'USER_RANK_08_IMG' => $user_rank_08_img,
    'USER_RANK_09' => $user_rank_09,
    'USER_RANK_09_IMG' => $user_rank_09_img,
    // MOD Multiple Ranks 2.1 by Matrix
#
#-----[ OPEN ]------------------------------------------------
#
language/lang_english/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#
// MOD Multiple Ranks 2.1 by Matrix
$lang['Staff'] = 'Staff';
$lang['Rank'] = 'Rank';
$lang['Rank_Header'] = 'Ranks';
$lang['Rank_Image'] = 'Rank Image';
$lang['Rank_Posts_Count'] = 'Automatic ranking by posts';
$lang['Rank_Days_Count'] = 'Automatic ranking by days';
$lang['Rank_Min_Des'] = 'Minimum messages/days';
$lang['Rank_Min_M'] = 'Minimum Messages';
$lang['Rank_Max_M'] = 'Max Messages';
$lang['Rank_Min_D'] = 'Minimum Days';
$lang['Rank_Max_D'] = 'Max Days';
$lang['Rank_Special'] = 'Special Rank';
$lang['Rank_Special_Guest'] = 'Special Rank For Guests';
$lang['Rank_Special_Banned'] = 'Special Rank For Banned';
$lang['Current_Rank_Image'] = 'Current rank image';
$lang['No_Rank'] = 'No rank assigned';
$lang['No_Rank_Image'] = 'No rank image';
$lang['No_Rank_Special'] = 'No special rank assigned';
$lang['Memberlist_Administrator'] = 'Administrator';
$lang['Memberlist_Moderator'] = 'Moderator';
$lang['Memberlist_User'] = 'User';
$lang['Guest_User'] = 'Guest';
$lang['Banned_User'] = 'Banned';
$lang['Rank1_title'] = 'Rank 1 Title';
$lang['Rank2_title'] = 'Rank 2 Title';
$lang['Rank3_title'] = 'Rank 3 Title';
$lang['Rank4_title'] = 'Rank 4 Title';
$lang['Rank5_title'] = 'Rank 5 Title';
$lang['Rank6_title'] = 'Rank 6 Title';
$lang['Rank7_title'] = 'Rank 7 Title';
$lang['Rank8_title'] = 'Rank 8 Title';
$lang['Rank9_title'] = 'Rank 9 Title';
// MOD Multiple Ranks 2.1 by Matrix

#
#-----[ OPEN ]------------------------------------------------
#
language/lang_polish/lang_main.php
#
#-----[ FIND ]------------------------------------------------
#
?>
#
#-----[ BEFORE, ADD ]-----------------------------------------
#

// MOD Multiple Ranks 2.1 by Matrix
$lang['Rank'] = 'Ranga';
$lang['Rank_Header'] = 'Rangi';
$lang['Rank_Image'] = 'Obraz Rangi';
$lang['Rank_Posts_Count'] = 'Automatyczne rangi postów';
$lang['Rank_Days_Count'] = 'Automatyczne rangi dni';
$lang['Rank_Min_Des'] = 'Minimum postów/dni';
$lang['Rank_Min_M'] = 'Minimum postów';
$lang['Rank_Max_M'] = 'Maksymum postów';
$lang['Rank_Min_D'] = 'Minimum dni';
$lang['Rank_Max_D'] = 'Maksymum dni';
$lang['Rank_Special'] = 'Rangi specjalne';
$lang['Rank_Special_Guest'] = 'Rangi specjalne dla Go&#182;ci';
$lang['Rank_Special_Banned'] = 'Rangi specjalne dla Zbanowanych';
$lang['Current_Rank_Image'] = 'Aktualne rangi graficzne';
$lang['No_Rank'] = 'Nie okre&#182;lono rang';
$lang['No_Rank_Image'] = 'Nie okre&#182;lono rang graficznych';
$lang['No_Rank_Special'] = 'Nie okre&#182;lono rang specjalnych';
$lang['Memberlist_Administrator'] = 'Administrator';
$lang['Memberlist_Moderator'] = 'Moderator';
$lang['Memberlist_User'] = 'Użytkownik';
$lang['Guest_User'] = 'Go&#182;ć';
$lang['Banned_User'] = 'Zbanowany';
$lang['Rank1_title'] = 'Nazwa Rangi 1';
$lang['Rank2_title'] = 'Nazwa Rangi 2';
$lang['Rank3_title'] = 'Nazwa Rangi 3';
$lang['Rank4_title'] = 'Nazwa Rangi 4';
$lang['Rank5_title'] = 'Nazwa Rangi 5';
$lang['Rank6_title'] = 'Nazwa Rangi 6';
$lang['Rank7_title'] = 'Nazwa Rangi 7';
$lang['Rank8_title'] = 'Nazwa Rangi 8';
$lang['Rank9_title'] = 'Nazwa Rangi 9';
// MOD Multiple Ranks 2.1 by Matrix

#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
{POSTER_RANK}{CUSTOM_RANK}{RANK_IMAGE}
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
{CUSTOM_RANK}{USER_RANK_01}{USER_RANK_01_IMG}{USER_RANK_02}{USER_RANK_02_IMG}{USER_RANK_03}{USER_RANK_03_IMG}{USER_RANK_04}{USER_RANK_04_IMG}{USER_RANK_05}{USER_RANK_05_IMG}{USER_RANK_06}{USER_RANK_06_IMG}{USER_RANK_07}{USER_RANK_07_IMG}{USER_RANK_08}{USER_RANK_08_IMG}{USER_RANK_09}{USER_RANK_09_IMG}
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/viewtopic_body.tpl
#
#-----[ IN-LINE FIND ]----------------------------------------
#
{postrow.POSTER_RANK}{postrow.CUSTOM_RANK}{postrow.RANK_IMAGE}
#
#-----[ IN-LINE REPLACE WITH ]--------------------------------
#
{postrow.CUSTOM_RANK}{postrow.USER_RANK_01}{postrow.USER_RANK_01_IMG}{postrow.USER_RANK_02}{postrow.USER_RANK_02_IMG}{postrow.USER_RANK_03}{postrow.USER_RANK_03_IMG}{postrow.USER_RANK_04}{postrow.USER_RANK_04_IMG}{postrow.USER_RANK_05}{postrow.USER_RANK_05_IMG}{postrow.USER_RANK_06}{postrow.USER_RANK_06_IMG}{postrow.USER_RANK_07}{postrow.USER_RANK_07_IMG}{postrow.USER_RANK_08}{postrow.USER_RANK_08_IMG}{postrow.USER_RANK_09}{postrow.USER_RANK_09_IMG}<br />
#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/ranks_edit_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
<form action="{S_RANK_ACTION}" method="post">
#
#-----[ REPLACE WITH ]----------------------------------------
#
<form action="{S_RANK_ACTION}" method="post" name="post">
#
#-----[ FIND ]------------------------------------------------
#
    <tr>
        <td class="row1"><span class="gen">{L_RANK_SPECIAL}</span></td>
        <td class="row2"><input type="radio" name="special_rank" value="1" {SPECIAL_RANK} />{L_YES} &nbsp;&nbsp;<input type="radio" name="special_rank" value="0" {NOT_SPECIAL_RANK} /> {L_NO}</td>
    </tr>
#
#-----[ REPLACE WITH ]----------------------------------------
#
    <tr>
        <td class="row1"><span class="gen">{L_RANK_SPECIAL}</span></td>
        <td class="row2"><input type="radio" name="special_rank" value="-1" {DAYS_RANK} />{L_DAYS_RANK}<br /><input type="radio" name="special_rank" value="0" {NOT_SPECIAL_RANK} />{L_POSTS_RANK}<br /><input type="radio" name="special_rank" value="1" {SPECIAL_RANK} />{L_SPECIAL_RANK}<br /><input type="radio" name="special_rank" value="2" {GUEST_RANK} />{L_GUEST}<br /><input type="radio" name="special_rank" value="3" {BANNED_RANK} />{L_BANNED}<br /></td>
    </tr>
#
#-----[ FIND ]------------------------------------------------
#
        <td class="row1" width="38%"><span class="gen">{L_RANK_MINIMUM}:</span></td>
#
#-----[ REPLACE WITH ]----------------------------------------
#
        <td class="row1" width="38%"><span class="gen">{L_MIN_M_D}:</span></td>
#
#-----[ FIND ]------------------------------------------------
#
        <td class="row2"><select name="rank_image" onchange="update_rank(this.options[selectedIndex].value);">{RANK_LIST}</select> &nbsp; <img name="rank_image" src="../images/spacer.gif" border="0" alt="" /> &nbsp;</td>
#
#-----[ REPLACE WITH ]----------------------------------------
#
        <td class="row2"><select name="rank_image_path" onchange="update_rank(this.options[selectedIndex].value);">{RANK_LIST}</select></td>
    </tr>
    <tr>
        <td class="row1" width="38%"><span class="gen">{L_CURRENT_RANK}:</span></td>
        <td class="row2">{IMAGE_DISPLAY}</td>
    </tr>

#
#-----[ OPEN ]------------------------------------------------
#
templates/subSilver/admin/user_edit_body.tpl
#
#-----[ FIND ]------------------------------------------------
#
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK}</span></td>
        <td class="row2"><select name="user_rank">{RANK_SELECT_BOX}</select></td>
    </tr>
#
#-----[ REPLACE WITH ]----------------------------------------
#
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK1}</span></td>
        <td class="row2"><select name="user_rank">{RANK1_SELECT_BOX}</select></td>
    </tr>
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK2}</span></td>
        <td class="row2"><select name="user_rank2">{RANK2_SELECT_BOX}</select></td>
    </tr>
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK3}</span></td>
        <td class="row2"><select name="user_rank3">{RANK3_SELECT_BOX}</select></td>
    </tr>
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK4}</span></td>
        <td class="row2"><select name="user_rank4">{RANK4_SELECT_BOX}</select></td>
    </tr>
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK5}</span></td>
        <td class="row2"><select name="user_rank5">{RANK5_SELECT_BOX}</select></td>
    </tr>
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK6}</span></td>
        <td class="row2"><select name="user_rank6">{RANK6_SELECT_BOX}</select></td>
    </tr>
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK7}</span></td>
        <td class="row2"><select name="user_rank7">{RANK7_SELECT_BOX}</select></td>
    </tr>
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK8}</span></td>
        <td class="row2"><select name="user_rank8">{RANK8_SELECT_BOX}</select></td>
    </tr>
    <tr>
        <td class="row1"><span class="gen">{L_SELECT_RANK9}</span></td>
        <td class="row2"><select name="user_rank9">{RANK9_SELECT_BOX}</select></td>
    </tr>
#
#-----[ SAVE/CLOSE ALL FILES ]--------------------------------
#
# EoM


A mimo to mam tylko 4 rangi do ustawienia - gdzie jest błąd?

[ Dodano: 09-03-2013, 01:58 ]
Już wiem przeoczyłem to

#
admin/admin_users.php

#-----[ IN-LINE AFTER, ADD ]----------------------------------
#
, user_rank2 = $user_rank2, user_rank3 = $user_rank3, user_rank4 = $user_rank4, user_rank5 = $user_rank5, user_rank6 = $user_rank6, user_rank7 = $user_rank7, user_rank8 = $user_rank8, user_rank9 = $user_rank9

[ Dodano: 09-03-2013, 02:04 ]
Paczka do pobrania.

Master93 - 27-10-2013, 12:39

Kod:
z których liń to usunąć, bo tych tekstów jest parę?

[code]#
#-----[ FIND AND DELETE ]------------------------------------------------
#
        $poster_rank = '';
#
#-----[ FIND AND DELETE ]------------------------------------------------
#
        $rank_image = '';[/code]


looki10 - 18-03-2014, 19:40

Mógłby ktoś wrzucić tego modka, bo nie mogę wejść w link.
Oneitatsu - 18-03-2014, 20:22

mirror nie działa, ale działa załącznik - na samym końcu pierwszego postu.


Powered by phpBB modified by Przemo © 2003 phpBB Group