Kod: Tümünü seç
########################################################
##
## Mod Title: Avatar in memberlist
## Mod Version: 1.0.0
## Author: Kenny aka Gordon (http://kdg.fm.pri.ee/)
##
## Description:
## This mod will add user's avatar to the memberlist
## if the user has specified it in his/her profile.
## It was designed for PHPBB 2.0+
##
## Installation Level: Easy as hell!
## Installation Time: pretty short
##
########################################################
// Directions: -----------------------------------------
› Open /templates/themename/memberlist_body.tpl
Find: >>>
<th class="thCornerR" nowrap="nowrap">{L_WEBSITE}</th>
After add: >>>
<th class="thCornerR" nowrap="nowrap">Avatar</th>
Find: >>>
<td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.WWW_IMG} </td>
After add: >>>
<td class="{memberrow.ROW_CLASS}" align="center"> {memberrow.AVATAR_IMG} </td>
Find: >>>
<td class="catbottom" colspan="9"
NOTE: if u have installed other hacks that modify the memberlist, there could be different nunber (not 9)
Replace with: >>>
<td class="catbottom" colspan="10"
› Open /memberlist.php
Find: >>>
$www = ( $row['user_website'] ) ? '<a href="' . $row['user_website'] . '" target="_userwww">' . $lang['Visit_website'] . '</a>' : '';
After add: >>>
$avatar_img = ($row['user_avatar'] && $row['user_avatar_type']==2 ? '<img src=' . $row['user_avatar'] . '>' : ($row['user_avatar'] && $row['user_avatar_type']==3 ? '<img src=images/avatars/gallery/' . $row['user_avatar'] . '>' : false));
Find: >>>
'WWW' => $www,
After add: >>>
'AVATAR_IMG' => $avatar_img,