1

Тема: [Modification] Show rank image in viewtopic.php

Hello, this tutorial will show you how to display the image of rank according to groups topics.

1. Open viewtopic.php and find:

$forum_page['author_ident']['avatar'] = '<li class="useravatar">'.$forum_page['avatar_markup'].'</li>';
            }

add below:

// Начало на бета кода за ранговете

            

$rang = $cur_post['g_id'];
            if($rang == "1") $userrang = '<img class="popup" src="'.$base_url.'/img/rang/admin.png" title="Група: Администратори">';
            if($rang == "3") $userrang = '<img class="popup" src="'.$base_url.'/img/rang/potrebitel.png" title="Група: Потребители">';
            if($rang == "4") $userrang = '<img class="popup" src="'.$base_url.'/img/rang/moderator.png" title="Група: Модератори">';
            $skype = $cur_post['skype'];
            // if($rang == "4") $userrang = '30.png'; 
            {
            $forum_page['author_ident']['rang'] = '<li>'.$userrang.'</li>';
            }

That's it!

Поделиться