Eğer phpBB3'deki gibi Site Yöneticisi ve Bölüm Yetkilisi isimlerinin başlık görüntülemede[viewtopic] renklenmesini phpBB2'de istiyorsanız, aşağıdaki kodları uygulamalısınız ancak XS modu yüklü olmalıdır. Renkler temanın seçtiği renklerle aynı olacaktır,yüklemesi fazla sürmeyecektir ancak yedek almanız önerilir
Kolay Gelsin!
- Kod: Tümünü seç
#
#-----[ AÇ ]------------------------------------------
#
viewtopic.php
#
#-----[ BUL ]------------------------------------------
#
$sql = "SELECT u.username, u.user_id,
#
#-----[ SATIR İÇİNDE BUL ]------------------------------------------
#
u.user_id,
#
#-----[ SATIR İÇİNDE SONRASINA EKLE ]------------------------------------------
#
u.user_level,
#
#-----[ BUL ]------------------------------------------
#
'POSTER_NAME' => $poster,
#
#-----[ SATIR İÇİNDE SONRASINA EKLE ]------------------------------------------
#
'USER_LEVEL' => $postrow[$i]['user_level'],
#
#-----[ AÇ ]------------------------------------------
#
templates/TEMAADINIZ/xs/xs_topic.tpl
#
#-----[ BUL ]------------------------------------------
#
if(!empty($postrow_item['PROFILE']) && strpos($postrow_item['POSTER_NAME'], '<') === false)
{
#
#-----[ SONRASINA EKLE ]------------------------------------------
#
$user_style = ( $postrow_item['USER_LEVEL'] == ADMIN ) ? ' style="color: #' . $theme['fontcolor3'] . '"' : ( ( $postrow_item['USER_LEVEL'] == MOD ) ? ' style="color: #' . $theme['fontcolor2'] . '"' : '' );
#
#-----[ BUL ]------------------------------------------
#
$replace = array($postrow_item['POSTER_NAME'], '<a class="post-name" ');
#
#-----[ DEĞİŞTİR ]------------------------------------------
#
$replace = array($postrow_item['POSTER_NAME'], "<a class=\"post-name\"$user_style ");