Unofficial modifications
nieoficjalne modyfikacje for?w phpBB by Przemo

Modyfikacje mniejsze - Avatar w prywatnych wiadomo?ciach

Rain - Pon 16 Kwi, 2007
Temat postu: Avatar w prywatnych wiadomo?ciach
Kod
##############################################################
## Nazwa MODA: Avatar in PM
## Autor MODA: lefty74 < lefty_74@hotmail.com > (Heiko Carstens) http://www.lefty74.com
## Opis MODA: Pokazuje Avatar w prywatnych wiadomo?ciach (W skrzynce/Wys?ane/Zapisane/Do wys?ania)
## Poprawki i dostosowanie do phpbb by przemo: Rain <www.noobforum.xp.>
## Wersja MODA: 1.0.1
##
## Poziom instalacji: (Easy)
## Czas instalacji: 5 Minutes
## PLiki do edycji: privmsg.php,
## templates/subSilver/privmsgs_body.tpl,
##
## Do?±czone pliki: brak
## Licencja: http://opensource.org/licenses/gpl-license.php GNU General Public License v2
##############################################################
## For security purposes, please check: http://www.phpbb.com/mods/
## for the latest version of this MOD. Although MODs are checked
## before being allowed in the MODs Database there is no guarantee
## that there are no security problems within the MOD. No support
## will be given for MODs not found within the MODs Database which
## can be found at http://www.phpbb.com/mods/
##############################################################
## Nim zainstalujesz MODa zrob kopie zapasow± wszystkich edytowanych plik?w!
##############################################################

#
#-----[ OTW?RZ ]------------------------------------------
#
privmsg.php
#
#-----[ ZNAJD¬ ]------------------------------------------
#
$sql = "SELECT pm.privmsgs_type, pm.privmsgs_id, pm.privmsgs_date, pm.privmsgs_subject, u.user_id, u.username
#
#-----[ W LINI ZNAJD¬ ]------------------------------------------
#
u.username
#
#-----[ PO TYM DODAJ ]------------------------------------------
#
, u.user_avatar, u.user_avatar_type, u.user_allowavatar

#
#-----[ ZNAJD¬ ]------------------------------------------
#
'L_SAVE_MARKED' => $lang['Save_marked'],
#
#-----[ PONI?EJ DODAJ ]------------------------------------------
#
'L_AVATAR' => $lang['Avatar'],
#
#-----[ ZNAJD¬ ]------------------------------------------
#
$msg_date = create_date($board_config['default_dateformat'], $row['privmsgs_date'], $board_config['board_timezone']);
#
#-----[ PONI?EJ DODAJ ]------------------------------------------
#
$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;
}
}
#
#-----[ ZNAJD¬ ]------------------------------------------
#
'DATE' => $msg_date,
#
#-----[ PONI?EJ DODAJ ]------------------------------------------
#
'AVATAR' => $msg_avatar,
#
#-----[ OTW?RZ ]------------------------------------------
#
templates/subSilver/privmsgs_body.tpl
#
#-----[ ZNAJD¬ ]------------------------------------------
#
<td colspan="3" width="100%" class="row1" nowrap="nowrap"><span class="gensmall">{BOX_SIZE_STATUS}</span></td>
#
#-----[ ZWI?KSZ ]------------------------------------------
#
<td colspan="3" +1
#
#
#-----[ ZNAJD¬ ]------------------------------------------
#
<td colspan="3" width="100%" class="row2">
#
#-----[ ZWI?KSZ ]------------------------------------------
#
<td colspan="3" +1
#
##-----[ ZNAJD¬ ]------------------------------------------
#
<th width="20%" class="thTop" nowrap="nowrap">&nbsp;{L_FROM_OR_TO}&nbsp;</th>
#
#-----[ PONI?EJ DODAJ ]------------------------------------------
#
<th width="5%" class="thTop" nowrap="nowrap">&nbsp;{L_AVATAR}&nbsp;</th>
#
#-----[ ZNAJD¬ ]------------------------------------------
#
<td width="20%" valign="middle" align="center" class="{listrow.ROW_CLASS}"><span class="name">&nbsp;<a href="{listrow.U_FROM_USER_PROFILE}" class="name"{listrow.STYLE}>{listrow.FROM}</a></span></td>>
#
#-----[ PONI?EJ DODAJ ]------------------------------------------
#
<td width="5%" valign="middle" align="center" class="{listrow.ROW_CLASS}"><a href="{listrow.U_FROM_USER_PROFILE}">{listrow.AVATAR}</a></td>
#
#-----[ ZNAJD¬ ]------------------------------------------
#
<td class="row1" colspan="5" align="center" valign="middle"><span class="gen">{L_NO_MESSAGES}</span></td>
#
#-----[ ZWI?KSZ ]------------------------------------------
#
<td class="row1" colspan="5" +1
#
#-----[ ZNAJD¬ ]------------------------------------------
#
<td class="catBottom" colspan="5" height="28" align="right"> {S_HIDDEN_FIELDS}
#
#-----[ ZWI?KSZ ]------------------------------------------
#
<td class="catBottom" colspan="5" +1
#
#-----[ ZAPISZ/ZAKO?CZ ]------------------------------------------

DEMO

kidzior - Pon 16 Kwi, 2007

A, jak sprawa wygl?da w PW od moderator?w, np. info o przesuni?ciu tematu/skasowaniu posta?
Rain - Pon 16 Kwi, 2007

kidzior napisał/a
A, jak sprawa wygl?da w PW od moderator?w, np. info o przesuni?ciu tematu/skasowaniu posta?

Tak to wyglada:


Powered by phpBB modified by Przemo © 2003 phpBB Group