Billy2423 yazdı:Here is the code I made to get the Top X Posters and color groups to work together..
Open includes/functions.php
Find:
- Kod: Tümünü seç
// $top_posters = array();
while( $row = $db->sql_fetchrow($result) )
{
$style_color = '';
if ( $row['user_level'] == ADMIN )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor3'] . '"';
}
else if ( $row['user_level'] == MOD )
{
$row['username'] = '<b>' . $row['username'] . '</b>';
$style_color = 'style="color:#' . $theme['fontcolor2'] . '"';
}
$top_posters .= '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'>' . $row['username'] . '</a> (' . $row['user_posts'] . '), ';
}
// return $top_posters;
Replace with:
- Kod: Tümünü seç
// $top_posters = array();
while( $row = $db->sql_fetchrow($result) )
{
$style_color = color_group_colorize_name($row['user_id'],true);
$top_posters .= '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=" . $row['user_id']) . '"' . $style_color .'</a> (' . $row['user_posts'] . '), ';
}
// return $top_posters;
Now your color groups will show...
tekok yazdı:bunu nasıl kuracağız?
Egos yazdı:Arkadaslar dosyayı indirdim ama install dosyası acayip karısık bi türlü cözemedim, kurdum hata verdi aslında mod kurabiliyorum ama bunu anlayamadim, biraz aciklayabilirmisiniz ? Simdiden tesekkürler
Bu forumu görüntüleyenler: Kayıtlı kullanıcı yok ve 0 misafir