Empty commit

This commit is contained in:
Git 2014-03-19 08:00:54 +00:00
parent 14d8d133f5
commit ad360356e6
10 changed files with 46 additions and 28 deletions

View File

@ -6,7 +6,7 @@ public static function render_mod_donations($UserID) {
<table class="layout" id="donation_box">
<tr class="colhead">
<td colspan="2">
<a href="#donor_ranks" class="brackets anchor">#</a> Donor System (add points)
Donor System (add points)
</td>
</tr>
<tr>
@ -34,7 +34,7 @@ public static function render_mod_donations($UserID) {
<table class="layout" id="donor_points_box">
<tr class="colhead">
<td colspan="3" class="tooltip" title='Use this tool only when manually correcting values. If crediting donations normally, use the "Donor System (add points)" tool'>
<a href="#donor_points" class="brackets anchor">#</a> Donor System (modify values)
Donor System (modify values)
</td>
</tr>
<tr>
@ -121,7 +121,7 @@ public static function render_donation_history($DonationHistory) {
?>
<div class="box box2" id="donation_history_box">
<div class="head">
<a href="#donation_history_box" class="brackets anchor">#</a> Donation History <a href="#" onclick="$('#donation_history').gtoggle(); return false;" class="brackets">View</a>
Donation History <a href="#" onclick="$('#donation_history').gtoggle(); return false;" class="brackets">View</a>
</div>
<? $Row = 'b'; ?>
<div class="hidden" id="donation_history">

View File

@ -1,5 +1,11 @@
CHANGE LOG
2014-03-18 by alderaan
Add a "[Jump to staff tools]" button on user profiles that links to a page anchor after the "Recent Snatches", "Recent Uploads", collage sections, etc.
2014-03-18 by alderaan
Remove page anchor buttons on user profiles
2014-03-18 by alderaan
README: State that Sphinx 2.0.6 or newer is required

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@
error(403);
}
// Get topicid, forumid, number of pages
// Get topic ID, forum ID, number of pages
$DB->query("
SELECT
TopicID,
@ -44,7 +44,8 @@
list($LastID) = $DB->next_record();
$DB->query("
UPDATE forums AS f, forums_topics AS t
SET f.NumPosts = f.NumPosts - 1, t.NumPosts = t.NumPosts - 1
SET f.NumPosts = f.NumPosts - 1,
t.NumPosts = t.NumPosts - 1
WHERE f.ID = '$ForumID'
AND t.ID = '$TopicID'");
@ -144,4 +145,7 @@
// quote notifications
Subscriptions::flush_quote_notifications('forums', $TopicID);
$DB->query("DELETE FROM users_notify_quoted WHERE Page = 'forums' AND PostID = '" . $PostID . "'");
$DB->query("
DELETE FROM users_notify_quoted
WHERE Page = 'forums'
AND PostID = '$PostID'");

View File

@ -432,7 +432,11 @@
list($AuthorID, $Username, $PermissionID, $Paranoia, $Artist, $Donor, $Warned, $Avatar, $Enabled, $UserTitle) = array_values(Users::user_info($AuthorID));
?>
<table class="forum_post wrap_overflow box vertical_margin<?
if (((!$ThreadInfo['IsLocked'] || $ThreadInfo['IsSticky']) && $PostID > $LastRead && strtotime($AddedTime) > $LoggedUser['CatchupTime']) || (isset($RequestKey) && $Key == $RequestKey)) {
if (((!$ThreadInfo['IsLocked'] || $ThreadInfo['IsSticky'])
&& $PostID > $LastRead
&& strtotime($AddedTime) > $LoggedUser['CatchupTime']
) || (isset($RequestKey) && $Key == $RequestKey)
) {
echo ' forum_unread';
}
if (!Users::has_avatars_enabled()) {

View File

@ -501,7 +501,6 @@
case 'take_mass_pm':
include(SERVER_ROOT.'/sections/tools/managers/take_mass_pm.php');
break;
default:
include(SERVER_ROOT.'/sections/tools/tools.php');
}

View File

@ -178,6 +178,8 @@ function create_row($Title, $URL, $HasPermission = false, $Tooltip = false) {
// begin Site Information category
$ToolsHTML = "";
create_row("Economic stats", "tools.php?action=economic_stats", check_perms("site_view_flow"));
create_row("Economic stats", "tools.php?action=economic_stats", check_perms("site_view_flow"));
create_row("Invite pool", "tools.php?action=invite_pool", check_perms("users_view_invites"));
create_row("Registration log", "tools.php?action=registration_log", check_perms("users_view_ips") && check_perms("users_view_email"));
create_row("Torrent stats", "tools.php?action=torrent_stats", check_perms("site_view_flow"));

View File

@ -197,7 +197,7 @@ function user_dupes_table($UserID) {
<input type="hidden" id="form_comment_hash" name="form_comment_hash" value="<?=$CommentHash?>" />
<div class="box box2" id="l_a_box">
<div class="head">
<a href="#l_a_box" class="brackets anchor">#</a> Linked Accounts (<?=max($DupeCount - 1, 0)?>) <a href="#" onclick="$('.linkedaccounts').gtoggle(); return false;" class="brackets">View</a>
Linked Accounts (<?=max($DupeCount - 1, 0)?>) <a href="#" onclick="$('.linkedaccounts').gtoggle(); return false;" class="brackets">View</a>
</div>
<table width="100%" class="layout hidden linkedaccounts">
<?=($DupeCount ? "<tr>\n" : '')?>

View File

@ -229,6 +229,11 @@ function check_paranoia_here($Setting) {
<a href="user.php?action=clearcache&amp;id=<?=$UserID?>" class="brackets">Clear cache</a>
<?
}
if (check_perms('users_mod')) {
?>
<a href="#staff_tools" class="brackets">Jump to staff tools</a>
<?
}
?>
</div>
@ -623,7 +628,7 @@ function check_paranoia_here($Setting) {
<table class="layout recent" id="recent_snatches" cellpadding="0" cellspacing="0" border="0">
<tr class="colhead">
<td colspan="5">
<a href="#recent_snatches" class="brackets anchor">#</a> Recent Snatches
Recent Snatches
</td>
</tr>
<tr>
@ -668,7 +673,7 @@ function check_paranoia_here($Setting) {
<table class="layout recent" id="recent_uploads" cellpadding="0" cellspacing="0" border="0">
<tr class="colhead">
<td colspan="5">
<a href="#recent_uploads" class="brackets anchor">#</a> Recent Uploads
Recent Uploads
</td>
</tr>
<tr>
@ -712,7 +717,7 @@ function check_paranoia_here($Setting) {
<tr class="colhead">
<td colspan="5">
<span style="float: left;">
<a href="#collage<?=$CollageID?>_box" class="brackets anchor">#</a> <?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
<?=display_str($CName)?> - <a href="collages.php?id=<?=$CollageID?>" class="brackets">See full</a>
</span>
<span style="float: right;">
<a href="#" onclick="$('#collage<?=$CollageID?>_box .images').gtoggle(); this.innerHTML = (this.innerHTML == 'Hide' ? 'Show' : 'Hide'); return false;" class="brackets"><?=$FirstCol ? 'Hide' : 'Show' ?></a>
@ -739,8 +744,10 @@ function check_paranoia_here($Setting) {
<?
$FirstCol = false;
}
?>
<!-- for the "jump to staff tools" button -->
<a id="staff_tools"></a>
<?
// Linked accounts
if (check_perms('users_mod')) {
@ -754,7 +761,7 @@ function check_paranoia_here($Setting) {
?>
<div class="box" id="invitetree_box">
<div class="head">
<a href="#invitetree_box" class="brackets anchor">#</a> Invite Tree <a href="#" onclick="$('#invitetree').gtoggle(); return false;" class="brackets">View</a>
Invite Tree <a href="#" onclick="$('#invitetree').gtoggle(); return false;" class="brackets">View</a>
</div>
<div id="invitetree" class="hidden">
<? $Tree->make_tree(); ?>
@ -783,7 +790,7 @@ function check_paranoia_here($Setting) {
?>
<div class="box" id="requests_box">
<div class="head">
<a href="#requests_box" class="brackets anchor">#</a> Requests <a href="#" onclick="$('#requests').gtoggle(); return false;" class="brackets">View</a>
Requests <a href="#" onclick="$('#requests').gtoggle(); return false;" class="brackets">View</a>
</div>
<div id="requests" class="request_table hidden">
<table cellpadding="6" cellspacing="1" border="0" class="border" width="100%">
@ -878,7 +885,7 @@ function check_paranoia_here($Setting) {
?>
<div class="box" id="staffpms_box">
<div class="head">
<a href="#staffpms_box" class="brackets anchor">#</a> Staff PMs <a href="#" onclick="$('#staffpms').gtoggle(); return false;" class="brackets">View</a>
Staff PMs <a href="#" onclick="$('#staffpms').gtoggle(); return false;" class="brackets">View</a>
</div>
<table width="100%" class="message_table hidden" id="staffpms">
<tr class="colhead">
@ -950,7 +957,7 @@ function check_paranoia_here($Setting) {
<div class="box box2" id="staff_notes_box">
<div class="head">
<a href="#staff_notes_box" class="brackets anchor">#</a> Staff Notes
Staff Notes
<a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Edit</a>
<a href="#" onclick="$('#staffnotes').gtoggle(); return false;" class="brackets">Toggle</a>
</div>
@ -968,7 +975,7 @@ function check_paranoia_here($Setting) {
<table class="layout" id="user_info_box">
<tr class="colhead">
<td colspan="2">
<a href="#user_info_box" class="brackets anchor">#</a> User Information
User Information
</td>
</tr>
<? if (check_perms('users_edit_usernames', $Class)) { ?>
@ -1156,7 +1163,7 @@ function check_paranoia_here($Setting) {
<table class="layout" id="warn_user_box">
<tr class="colhead">
<td colspan="2">
<a href="#warn_user_box" class="brackets anchor">#</a> Warnings
Warnings
</td>
</tr>
<tr>
@ -1215,7 +1222,7 @@ function check_paranoia_here($Setting) {
<table class="layout" id="user_privs_box">
<tr class="colhead">
<td colspan="2">
<a href="#user_privs_box" class="brackets anchor">#</a> User Privileges
User Privileges
</td>
</tr>
<? if (check_perms('users_disable_posts') || check_perms('users_disable_any')) {
@ -1310,7 +1317,7 @@ function check_paranoia_here($Setting) {
<table class="layout" id="session_box">
<tr class="colhead">
<td colspan="2">
<a href="#session_box" class="brackets anchor">#</a> Session
Session
</td>
</tr>
<tr>
@ -1331,7 +1338,7 @@ function check_paranoia_here($Setting) {
<table class="layout" id="submit_box">
<tr class="colhead">
<td colspan="2">
<a href="#submit_box" class="brackets anchor">#</a> Submit
Submit
</td>
</tr>
<tr>

View File

@ -507,10 +507,6 @@ tr.torrent .bookmark>a:after {
margin-top: 5px;
}
.anchor {
font-size: 85%;
font-weight: normal;
}
.option_group {
margin-bottom: 10px;
}