Unofficial modifications
nieoficjalne modyfikacje for?w phpBB by Przemo

Foreign support - How many days registered in profile and topic view

kidzior - Pon 30 Kwi, 2007
Temat postu: How many days registered in profile and topic view
Mod Author: Gracek
http://mody.lastinn.info/...ematu-t448.html
Translate: kidzior http://www.niezal.org

Wiadomo?? ukryta / Hidden message
Aby zobaczy? wiadomo?? postaw piwo autorowi piwo.
Profile:
Kod
#
#-----[ COPY ]------------------------------------------
#
copy memberdays_profile.php from archive to /includes/mods_info/
#
#-----[ OPEN ]------------------------------------------
#
includes/usercp_viewprofile.php
#
#-----[ FIND ]------------------------------------------
#
'AVATAR_IMG' => $avatar_img,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'PERIOD' => sprintf($lang['Period'], $memberdays),
#
#-----[ OPEN ]------------------------------------
#
templates/YOUR_THEME/profile_view_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}:&nbsp;</span></td>
<td width="100%"><b><span class="gen">{JOINED}</span></b></td>
</tr>
#
#-----[ REPLACE WITH ]------------------------------------
#
<tr>
<td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}:&nbsp;</span></td>
<td width="100%"><b><span class="gen">{JOINED}</span></b>&nbsp;({PERIOD})</td>
</tr>
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM #



Viewtopic:
Kod
#
#-----[ COPY ]------------------------------------------
#
copy memberdays_topic.php from archive to /includes/mods_info/
#
#-----[ OPEN ]------------------------------------------
#
viewtopic.php
#
#-----[ FIND ]------------------------------------------
#
$poster_posts = $postrow[$i]['user_posts'];
#
#-----[ AFTER, ADD ]------------------------------------------
#
$memberdays = ($postrow[$i]['user_id'] != ANONYMOUS) ? max(1, round(( time() - $postrow[$i]['user_regdate'])/ 86400)):'' ;
#
#-----[ FIND ]------------------------------------------
#
'POSTER_AVATAR' => $poster_avatar,
#
#-----[ AFTER, ADD ]------------------------------------------
#
'PERIOD' => sprintf($lang['Period'], $memberdays) . '<br />',
#
#-----[ OPEN ]------------------------------------
#
templates/YOUR_THEME/viewtopic_body.tpl
#
#-----[ FIND ]------------------------------------------
#
{postrow.POSTER_JOINED}
#
#-----[ IN LINE, ADD ]------------------------------------
#
{postrow.PERIOD}
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM #


Powered by phpBB modified by Przemo © 2003 phpBB Group