mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Minor improvements (#315)
* Minor improvements * Update memberlist.tpl * Update viewtopic.tpl * Update CHANGELOG.md
This commit is contained in:
parent
56e2db2e78
commit
7710877505
@ -9,7 +9,7 @@
|
||||
|
||||
- Release v2.1.5-2023.10 🎉
|
||||
- Updated Text_LangCorrect class [\#309](https://github.com/torrentpier/torrentpier-lts/pull/309) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#297](https://github.com/torrentpier/torrentpier-lts/pull/297), [\#298](https://github.com/torrentpier/torrentpier-lts/pull/298), [\#300](https://github.com/torrentpier/torrentpier-lts/pull/300), [\#301](https://github.com/torrentpier/torrentpier-lts/pull/301), [\#302](https://github.com/torrentpier/torrentpier-lts/pull/302), [\#303](https://github.com/torrentpier/torrentpier-lts/pull/303), [\#305](https://github.com/torrentpier/torrentpier-lts/pull/305), [\#306](https://github.com/torrentpier/torrentpier-lts/pull/306), [\#307](https://github.com/torrentpier/torrentpier-lts/pull/307), [\#310](https://github.com/torrentpier/torrentpier-lts/pull/310), [\#312](https://github.com/torrentpier/torrentpier-lts/pull/312), [\#313](https://github.com/torrentpier/torrentpier-lts/pull/313) ([belomaxorka](https://github.com/belomaxorka))
|
||||
- Minor improvements [\#297](https://github.com/torrentpier/torrentpier-lts/pull/297), [\#298](https://github.com/torrentpier/torrentpier-lts/pull/298), [\#300](https://github.com/torrentpier/torrentpier-lts/pull/300), [\#301](https://github.com/torrentpier/torrentpier-lts/pull/301), [\#302](https://github.com/torrentpier/torrentpier-lts/pull/302), [\#303](https://github.com/torrentpier/torrentpier-lts/pull/303), [\#305](https://github.com/torrentpier/torrentpier-lts/pull/305), [\#306](https://github.com/torrentpier/torrentpier-lts/pull/306), [\#307](https://github.com/torrentpier/torrentpier-lts/pull/307), [\#310](https://github.com/torrentpier/torrentpier-lts/pull/310), [\#312](https://github.com/torrentpier/torrentpier-lts/pull/312), [\#313](https://github.com/torrentpier/torrentpier-lts/pull/313), [\#315](https://github.com/torrentpier/torrentpier-lts/pull/315) ([belomaxorka](https://github.com/belomaxorka))
|
||||
|
||||
## [v2.1.5-2023.09](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.09) (2023-10-04)
|
||||
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.08-HotFix...v2.1.5-2023.09)
|
||||
|
@ -82,6 +82,9 @@ else if ($signature)
|
||||
$signature = bbcode2html($signature);
|
||||
}
|
||||
|
||||
$this_date = bb_date(TIMENOW, 'md', false);
|
||||
$poster_birthday = ($profiledata['user_id'] != GUEST_UID && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? bb_date(strtotime($profiledata['user_birthday']), 'md', false) : '';
|
||||
|
||||
$template->assign_vars(array(
|
||||
'PAGE_TITLE' => sprintf($lang['VIEWING_USER_PROFILE'], $profiledata['username']),
|
||||
'USERNAME' => $profiledata['username'],
|
||||
@ -108,6 +111,7 @@ $template->assign_vars(array(
|
||||
'USER_POINTS' => $profiledata['user_points'],
|
||||
'GENDER' => ($bb_cfg['gender']) ? $lang['GENDER_SELECT'][$profiledata['user_gender']] : '',
|
||||
'BIRTHDAY' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? $profiledata['user_birthday'] : '',
|
||||
'BIRTHDAY_ICON' => ($bb_cfg['birthday_enabled'] && $this_date == $poster_birthday) ? '<img src="' . $images['icon_birthday'] . '" alt="' . $lang['HAPPY_BIRTHDAY'] . '" title="' . $lang['HAPPY_BIRTHDAY'] . '" border="0" />' : '',
|
||||
'AGE' => ($bb_cfg['birthday_enabled'] && !empty($profiledata['user_birthday']) && $profiledata['user_birthday'] != '1900-01-01') ? birthday_age($profiledata['user_birthday']) : '',
|
||||
|
||||
'L_VIEWING_PROFILE' => sprintf($lang['VIEWING_USER_PROFILE'], $profiledata['username']),
|
||||
|
@ -152,7 +152,7 @@ $template->assign_vars(array(
|
||||
));
|
||||
|
||||
// per-letter selection end
|
||||
$sql = "SELECT username, user_id, user_rank, user_opt, user_posts, user_regdate, user_from, user_website, user_email FROM ". BB_USERS ." WHERE user_id NOT IN(". EXCLUDED_USERS_CSV .")";
|
||||
$sql = "SELECT username, user_id, user_rank, user_opt, user_posts, user_regdate, user_from, user_website, user_email, avatar_ext_id FROM ". BB_USERS ." WHERE user_id NOT IN(". EXCLUDED_USERS_CSV .")";
|
||||
if ( $username )
|
||||
{
|
||||
$username = preg_replace('/\*/', '%', clean_username($username));
|
||||
@ -200,6 +200,7 @@ if ($result = DB()->fetch_rowset($sql))
|
||||
'ROW_NUMBER' => $i + ( $start + 1 ),
|
||||
'ROW_CLASS' => $row_class,
|
||||
'USER' => profile_url($row),
|
||||
'AVATAR_IMG' => get_avatar($row['user_id'], $row['avatar_ext_id'], !bf($row['user_opt'], 'user_opt', 'dis_avatar'), '', 50, 50),
|
||||
'FROM' => $from,
|
||||
'JOINED_RAW' => $row['user_regdate'],
|
||||
'JOINED' => $joined,
|
||||
|
@ -39,7 +39,7 @@
|
||||
<!-- BEGIN memberrow -->
|
||||
<tr class="{memberrow.ROW_CLASS} tCenter">
|
||||
<td>{memberrow.ROW_NUMBER}</td>
|
||||
<td><b>{memberrow.USER}</b></td>
|
||||
<td><div class="mrg_2">{memberrow.AVATAR_IMG}</div><b>{memberrow.USER}</b></td>
|
||||
<td>{memberrow.PM}</td>
|
||||
<!-- IF IS_ADMIN --><td>{memberrow.EMAIL}</td><!-- ENDIF -->
|
||||
<td>{memberrow.FROM}</td>
|
||||
|
@ -221,6 +221,7 @@ ajax.callback.gen_passkey = function(data){
|
||||
{RANK_IMAGE}
|
||||
<!-- ENDIF -->
|
||||
</p>
|
||||
<!-- IF BIRTHDAY_ICON --><div class="mrg_8">{BIRTHDAY_ICON}</div><!-- ENDIF -->
|
||||
<h4 class="cat border bw_TB" id="username">{L_CONTACT} <span class="editable bold">{USERNAME}</span></h4>
|
||||
|
||||
<div class="spacer_4"></div>
|
||||
|
@ -378,7 +378,7 @@ function build_poll_add_form (src_el)
|
||||
<div class="post_head">
|
||||
<p style="float: left;<!-- IF TEXT_BUTTONS --> padding: 4px 0 3px;<!-- ELSE --> padding-top: 5px;<!-- ENDIF -->">
|
||||
<!-- IF postrow.IS_UNREAD -->{MINIPOST_IMG_NEW}<!-- ELSE -->{MINIPOST_IMG}<!-- ENDIF -->
|
||||
<a class="small" href="{POST_URL}{postrow.POST_ID}#{postrow.POST_ID}" title="{L_POST_LINK}">{postrow.POST_DATE}</a>
|
||||
<a class="small" href="{POST_URL}{postrow.POST_ID}#{postrow.POST_ID}" title="{L_POST_LINK}">{postrow.POST_DATE} | #{postrow.POST_NUMBER}</a>
|
||||
<!-- IF postrow.POSTED_AFTER -->
|
||||
<span class="posted_since">({L_POSTED_AFTER} {postrow.POSTED_AFTER})</span>
|
||||
<!-- ENDIF -->
|
||||
|
@ -367,7 +367,7 @@ if ($t_data['topic_show_first_post'] && $start)
|
||||
u.user_regdate, u.user_sig,
|
||||
u.avatar_ext_id,
|
||||
u.user_opt, u.user_gender, u.user_birthday,
|
||||
p.*, g.group_name, g.group_id, g.group_signature, g.avatar_ext_id as rg_avatar_id,
|
||||
p.*, g.group_name, g.group_id, g.group_description, g.group_signature, g.avatar_ext_id as rg_avatar_id,
|
||||
u2.username as mc_username, u2.user_rank as mc_user_rank,
|
||||
h.post_html, IF(h.post_html IS NULL, pt.post_text, NULL) AS post_text
|
||||
FROM ". BB_POSTS ." p
|
||||
@ -648,7 +648,7 @@ if ($topic_has_poll)
|
||||
|
||||
$prev_post_time = $max_post_time = 0;
|
||||
|
||||
$this_date = bb_date(TIMENOW ,'md', false);
|
||||
$this_date = bb_date(TIMENOW, 'md', false);
|
||||
|
||||
for($i = 0; $i < $total_posts; $i++)
|
||||
{
|
||||
@ -669,6 +669,7 @@ for($i = 0; $i < $total_posts; $i++)
|
||||
$rg_id = ($postrow[$i]['poster_rg_id']) ? $postrow[$i]['poster_rg_id'] : 0;
|
||||
$rg_avatar = get_avatar(GROUP_AVATAR_MASK . $rg_id, $postrow[$i]['rg_avatar_id']);
|
||||
$rg_name = ($postrow[$i]['group_name']) ? htmlCHR($postrow[$i]['group_name']) : '';
|
||||
$rg_desc = ($postrow[$i]['group_description']) ? bbcode2html(htmlCHR($postrow[$i]['group_description'])) : '';
|
||||
$rg_signature = ($postrow[$i]['group_signature']) ? bbcode2html(htmlCHR($postrow[$i]['group_signature'])) : '';
|
||||
|
||||
$poster_avatar = '';
|
||||
@ -814,7 +815,7 @@ for($i = 0; $i < $total_posts; $i++)
|
||||
'DELETE' => $delpost_btn,
|
||||
'IP' => $ip_btn,
|
||||
|
||||
'POSTER_BIRTHDAY' => ($bb_cfg['birthday_enabled'] && $this_date == $poster_birthday) ? '<img src="'. $images['icon_birthday'] .'" alt="" title="'. $lang['HAPPY_BIRTHDAY'] .'" border="0" />' : '',
|
||||
'POSTER_BIRTHDAY' => ($bb_cfg['birthday_enabled'] && $this_date == $poster_birthday) ? '<img src="'. $images['icon_birthday'] .'" alt="'. $lang['HAPPY_BIRTHDAY'] .'" title="'. $lang['HAPPY_BIRTHDAY'] .'" border="0" />' : '',
|
||||
|
||||
'MC_COMMENT' => ($mc_type) ? bbcode2html($mc_comment) : '',
|
||||
'MC_BBCODE' => ($mc_type) ? $mc_comment : '',
|
||||
@ -824,6 +825,7 @@ for($i = 0; $i < $total_posts; $i++)
|
||||
|
||||
'RG_AVATAR' => $rg_avatar,
|
||||
'RG_NAME' => $rg_name,
|
||||
'RG_DESC' => $rg_desc,
|
||||
'RG_URL' => GROUP_URL . $rg_id,
|
||||
'RG_FIND_URL' => 'tracker.php?srg='. $rg_id,
|
||||
'RG_SIG' => $rg_signature,
|
||||
|
Loading…
Reference in New Issue
Block a user