|
Unofficial modifications nieoficjalne modyfikacje for?w phpBB by Przemo |
|
Foreign support - Avatar in PM
kidzior - Pon 30 Kwi, 2007 Temat postu: Avatar in PM ## Description: Shows avatars in PM (Inbox, Send etc.)
## Author for Przemo: Rain <www.noobforum.xp.>
## Translate: kidzior http://www.niezal.org
## Version: 1.0.1
##
## Dificulty: (Easy)
## Time for install: 5 Minutes
## Files to edit:
## privmsg.php
## templates/subSilver/privmsgs_body.tpl
http://mody.lastinn.info/...iach-t1303.html
Wiadomo?? ukryta / Hidden message Aby zobaczy? wiadomo?? postaw piwo autorowi piwo. | #
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "SELECT pm.privmsgs_type, pm.privmsgs_id, pm.privmsgs_date, pm.privmsgs_subject, u.user_id, u.username
#
#-----[ IN LINE FIND ]------------------------------------------
#
u.username
#
#-----[ AFTER ADD ]------------------------------------------
#
, u.user_avatar, u.user_avatar_type, u.user_allowavatar
#
#-----[ FIND ]------------------------------------------
#
'L_SAVE_MARKED' => $lang['Save_marked'],
#
#-----[ BEFORE ADD ]------------------------------------------
#
'L_AVATAR' => $lang['Avatar'],
#
#-----[ FIND ]------------------------------------------
#
$msg_date = create_date($board_config['default_dateformat'], $row['privmsgs_date'], $board_config['board_timezone']);
#
#-----[ BEFORE ADD ]------------------------------------------
#
$msg_avatar = '';
if ( $row['user_avatar_type'] && $row['user_allowavatar'] )
{
switch( $row['user_avatar_type'] )
{
case USER_AVATAR_UPLOAD:
$msg_avatar = ( $board_config['allow_avatar_upload'] ) ? '<img src="' . $board_config['avatar_path'] . '/' . $row['user_avatar'] . '" height="40" alt="" border="0" />' : '';
break;
case USER_AVATAR_REMOTE:
$msg_avatar = ( $board_config['allow_avatar_remote'] ) ? '<img src="' . $row['user_avatar'] . '" height="40" alt="" border="0" />' : '';
break;
case USER_AVATAR_GALLERY:
$msg_avatar = ( $board_config['allow_avatar_local'] ) ? '<img src="' . $board_config['avatar_gallery_path'] . '/' . $row['user_avatar'] . '" height="40" alt="" border="0" />' : '';
break;
}
}
#
#-----[ FIND ]------------------------------------------
#
'DATE' => $msg_date,
#
#-----[ BEFORE ADD ]------------------------------------------
#
'AVATAR' => $msg_avatar,
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/privmsgs_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<td colspan="3" width="100%" class="row1" nowrap="nowrap"><span class="gensmall">{BOX_SIZE_STATUS}</span></td>
#
#-----[ MAKE LARGER ]------------------------------------------
#
<td colspan="3" +1
#
#
#-----[ FIND ]------------------------------------------
#
<td colspan="3" width="100%" class="row2">
#
#-----[ MAKE LARGER ]------------------------------------------
#
<td colspan="3" +1
#
##-----[ FIND ]------------------------------------------
#
<th width="20%" class="thTop" nowrap="nowrap"> {L_FROM_OR_TO} </th>
#
#-----[ BEFORE ADD ]------------------------------------------
#
<th width="5%" class="thTop" nowrap="nowrap"> {L_AVATAR} </th>
#
#-----[ FIND ]------------------------------------------
#
<td width="20%" valign="middle" align="center" class="{listrow.ROW_CLASS}"><span class="name"> <a href="{listrow.U_FROM_USER_PROFILE}" class="name"{listrow.STYLE}>{listrow.FROM}</a></span></td>>
#
#-----[ BEFORE ADD ]------------------------------------------
#
<td width="5%" valign="middle" align="center" class="{listrow.ROW_CLASS}"><a href="{listrow.U_FROM_USER_PROFILE}">{listrow.AVATAR}</a></td>
#
#-----[ FIND ]------------------------------------------
#
<td class="row1" colspan="5" align="center" valign="middle"><span class="gen">{L_NO_MESSAGES}</span></td>
#
#-----[ MAKE LARGER ]------------------------------------------
#
<td class="row1" colspan="5" +1
#
#-----[ FIND ]------------------------------------------
#
<td class="catBottom" colspan="5" height="28" align="right"> {S_HIDDEN_FIELDS}
#
#-----[ MAKE LARGER ]------------------------------------------
#
<td class="catBottom" colspan="5" +1
#
#-----[ SAVE/CLOSE ]------------------------------------------ |
|
|