Pagina 1 van 1

Avatar in memberlist

Geplaatst: 22 mar 2006, 17:46
door Tiendeschuurke
I installed this mod

Code: Selecteer alles

######################################################## 
##
## 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">&nbsp;{memberrow.WWW_IMG}&nbsp;</td>
After add: >>>
 <td class="{memberrow.ROW_CLASS}" align="center">&nbsp;{memberrow.AVATAR_IMG}&nbsp;</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,
Maar het toont alleen de avatars die uit de gallerij komen en niet diegene die werden geupload... Enige suggesties?