BitTorrent Трекер RusTrek.ru http://5.45.70.241/ |
|
Зарегистрирован дней! http://5.45.70.241/viewtopic.php?f=817&t=3933 |
Страница 1 из 1 |
Автор: | oartemka178 [ 2010-12-04 03:48 ] |
Заголовок сообщения: | Зарегистрирован дней! |
Мод добавляет в профиль пользователя, количество зарегистрированных дней на сайте. Установка # #-----[ OPEN ]------------------------------------------ # includes/usercp_viewprofile.php # #-----[ FIND ]------------------------------------------ # Код: 'AVATAR_IMG' => $avatar_img, # #-----[ AFTER, ADD ]------------------------------------------ # Код: 'MEMBERDAYS' => $memberdays, 'L_MEMBERDAYS' => $lang['Memberdays'], # #-----[ OPEN ]------------------------------------------ # Код: language/lang_russian/lang_main.php -------------- # #-----[ в самый низ,добавить ]------------------------------------------ # Код: $lang['Memberdays'] = 'Total days member'; # #-----[ OPEN ]------------------------------------ # templates/ваш шаблон/usercp_viewprofile.tpl #(change this for every template you use) #-----[ FIND ]------------------------------------------ # Код: <tr> <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_JOINED}: </span></td> <td width="100%"><b><span class="gen">{JOINED}</span></b></td> </tr> # #-----[ AFTER, ADD ]------------------------------------ # Код: <tr> <td valign="middle" align="right" nowrap="nowrap"><span class="gen">{L_MEMBERDAYS}: </span></td> <td width="100%"><b><span class="gen">{MEMBERDAYS}</span></b></td> </tr> # #-----[ OPEN ]------------------------------------------ # viewtopic.php # #-----[ FIND ]------------------------------------------ # Код: $poster_posts = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Posts'] . ': ' . $postrow[$i]['user_posts'] : ''; # #-----[ AFTER, ADD ]------------------------------------------ # Код: $memberdays = ( $postrow[$i]['user_id'] != ANONYMOUS ) ? $lang['Memberdays'] . ': ' . max(1, round( ( time() - $postrow[$i]['user_regdate'] ) / 86400 )): ''; # #-----[ FIND ]------------------------------------------ # Код: 'POSTER_AVATAR' => $poster_avatar, # #-----[ AFTER, ADD ]------------------------------------------ # Код: 'MEMBERDAYS' => $memberdays, # #-----[ OPEN ]------------------------------------ # templates/ваш шаблон/viewtopic_body.tpl # #-----[ FIND ]------------------------------------------ # Код: {postrow.POSTER_JOINED}<br /> # #-----[ AFTER, ADD ]------------------------------------ # Код: {postrow.MEMBERDAYS}<br /> # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM |
Страница 1 из 1 | Часовой пояс: UTC + 3 часа |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |