Skip to content

Commit 61ba4e7

Browse files
committed
Update admin_users page
1 parent 0f88a62 commit 61ba4e7

File tree

6 files changed

+15
-15
lines changed

6 files changed

+15
-15
lines changed

admin_users.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -213,14 +213,14 @@
213213
{
214214
$user_title = get_title($user_data[$cur_poster['poster_id']]);
215215

216-
$actions = '<a href="admin_users.php?ip_stats='.$user_data[$cur_poster['poster_id']]['id'].'">'.$lang_admin_users['Results view IP link'].'</a> | <a href="search.php?action=show_user_posts&amp;user_id='.$user_data[$cur_poster['poster_id']]['id'].'">'.$lang_admin_users['Results show posts link'].'</a>';
216+
$actions = $pun_user['g_id'] == PUN_ADMIN ? '<a href="admin_users.php?ip_stats='.$user_data[$cur_poster['poster_id']]['id'].'">'.$lang_admin_users['Results view IP link'].'</a>' : '&#160;';
217217

218218
?>
219219
<tr>
220220
<td class="tcl"><?php echo '<a href="profile.php?id='.$user_data[$cur_poster['poster_id']]['id'].'">'.pun_htmlspecialchars($user_data[$cur_poster['poster_id']]['username']).'</a>' ?></td>
221221
<td class="tc2"><a href="mailto:<?php echo pun_htmlspecialchars($user_data[$cur_poster['poster_id']]['email']) ?>"><?php echo pun_htmlspecialchars($user_data[$cur_poster['poster_id']]['email']) ?></a></td>
222222
<td class="tc3"><?php echo $user_title ?></td>
223-
<td class="tc4"><?php echo forum_number_format($user_data[$cur_poster['poster_id']]['num_posts']) ?></td>
223+
<td class="tc4"><a href="search.php?action=show_user_posts&amp;user_id=<?php echo $user_data[$cur_poster['poster_id']]['id'] ?>"><?php echo forum_number_format($user_data[$cur_poster['poster_id']]['num_posts']) ?></a></td>
224224
<td class="tc5"><?php echo ($user_data[$cur_poster['poster_id']]['admin_note'] != '') ? pun_htmlspecialchars($user_data[$cur_poster['poster_id']]['admin_note']) : '&#160;' ?></td>
225225
<td class="tcr"><?php echo $actions ?></td>
226226
</tr>
@@ -890,14 +890,14 @@
890890
if (($user_data['g_id'] == '' || $user_data['g_id'] == PUN_UNVERIFIED) && $user_title != $lang_common['Banned'])
891891
$user_title = '<span class="warntext">'.$lang_admin_users['Not verified'].'</span>';
892892

893-
$actions = ($pun_user['g_id'] == PUN_ADMIN ? '<a href="admin_users.php?ip_stats='.$user_data['id'].'">'.$lang_admin_users['Results view IP link'].'</a> | ' : '').'<a href="search.php?action=show_user_posts&amp;user_id='.$user_data['id'].'">'.$lang_admin_users['Results show posts link'].'</a>';
893+
$actions = $pun_user['g_id'] == PUN_ADMIN ? '<a href="admin_users.php?ip_stats='.$user_data['id'].'">'.$lang_admin_users['Results view IP link'].'</a>' : '&#160;';
894894

895895
?>
896896
<tr>
897897
<td class="tcl"><?php echo '<a href="profile.php?id='.$user_data['id'].'">'.pun_htmlspecialchars($user_data['username']).'</a>' ?></td>
898898
<td class="tc2"><a href="mailto:<?php echo pun_htmlspecialchars($user_data['email']) ?>"><?php echo pun_htmlspecialchars($user_data['email']) ?></a></td>
899899
<td class="tc3"><?php echo $user_title ?></td>
900-
<td class="tc4"><?php echo forum_number_format($user_data['num_posts']) ?></td>
900+
<td class="tc4"><a href="search.php?action=show_user_posts&amp;user_id=<?php echo $user_data['id'] ?>"><?php echo forum_number_format($user_data['num_posts']) ?></a></td>
901901
<td class="tc5"><?php echo ($user_data['admin_note'] != '') ? pun_htmlspecialchars($user_data['admin_note']) : '&#160;' ?></td>
902902
<td class="tcr"><?php echo $actions ?></td>
903903
<?php if ($can_action): ?> <td class="tcmod"><input type="checkbox" name="users[<?php echo $user_data['id'] ?>]" value="1" /></td>

style/Air/base_admin.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
}
144144

145145
#users2 .tcr {
146-
width: 20%;
146+
width: 10%;
147147
}
148148

149149
#bans1 .tcr {
@@ -152,7 +152,7 @@
152152
}
153153

154154
#users2 .tcmod {
155-
width: 10%;
155+
width: 2em;
156156
text-align: center;
157157
}
158158

style/Earth/base_admin.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
}
144144

145145
#users2 .tcr {
146-
width: 20%;
146+
width: 10%;
147147
}
148148

149149
#bans1 .tcr {
@@ -152,7 +152,7 @@
152152
}
153153

154154
#users2 .tcmod {
155-
width: 10%;
155+
width: 2em;
156156
text-align: center;
157157
}
158158

style/Fire/base_admin.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
}
144144

145145
#users2 .tcr {
146-
width: 20%;
146+
width: 10%;
147147
}
148148

149149
#bans1 .tcr {
@@ -152,7 +152,7 @@
152152
}
153153

154154
#users2 .tcmod {
155-
width: 10%;
155+
width: 2em;
156156
text-align: center;
157157
}
158158

style/GrayOrange/base_admin.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
}
144144

145145
#users2 .tcr {
146-
width: 20%;
146+
width: 10%;
147147
}
148148

149149
#bans1 .tcr {
@@ -152,7 +152,7 @@
152152
}
153153

154154
#users2 .tcmod {
155-
width: 10%;
155+
width: 2em;
156156
text-align: center;
157157
}
158158

style/imports/base_admin.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ table#forumperms .atcl {text-align: left; width: 15em; white-space: nowrap}
4242

4343
/*** User/Ban Search Result Tables ***/
4444
#users2 th, #bans1 th {text-align: left}
45-
#users2 th.tcmod {text-align: center}
45+
#users2 th.tcmod {text-align: center; overflow: hidden;}
4646
#users2 .tcl, #bans1 .tcl {width: auto; text-align: left; padding: 4px 6px}
4747
#users2 .tc2, #bans1 .tc2 {width: 18%; text-align: left; padding: 4px 6px}
4848
#users2 .tc3, #users2 .tc5, #bans1 .tc3, #bans1 .tc5, #bans1 .tc6 {width: 12%; text-align: left; padding: 4px 6px}
4949
#users2 .tc4, #bans1 .tc4 {width: 10%; text-align: center}
50-
#users2 .tcr {width: 20%;}
50+
#users2 .tcr {width: 10%;}
5151
#bans1 .tcr {width: 15%; white-space: nowrap}
52-
#users2 .tcmod {width: 10%; text-align: center}
52+
#users2 .tcmod {width: 2em; text-align: center}
5353
#adminconsole #linkst, #adminconsole #linksb a {font-weight: bold}
5454

5555
/*** Plugins ***/

0 commit comments

Comments
 (0)