mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-01-18 20:21:37 +00:00
Fix sentbox search
Incorrect hash used in RSS news feed links JS ctrl+f-ish search on upload rules page
This commit is contained in:
parent
c58f94a36f
commit
7a64bf0d36
@ -65,7 +65,7 @@
|
||||
if (strtotime($NewsTime) >= time()) {
|
||||
continue;
|
||||
}
|
||||
echo $Feed->item($Title, $Text->strip_bbcode($Body), 'index.php#'.$NewsID, SITE_NAME.' Staff','','',$NewsTime);
|
||||
echo $Feed->item($Title, $Text->strip_bbcode($Body), 'index.php#news'.$NewsID, SITE_NAME.' Staff','','',$NewsTime);
|
||||
if (++$Count > 4) {
|
||||
break;
|
||||
}
|
||||
|
@ -97,6 +97,7 @@
|
||||
<? } else { ?>
|
||||
<form action="inbox.php" method="get" id="searchbox">
|
||||
<div>
|
||||
<input type="hidden" name="action" value="<?=$Section?>" />
|
||||
<input type="radio" name="searchtype" value="user" checked="checked" /> User
|
||||
<input type="radio" name="searchtype" value="subject" /> Subject
|
||||
<input type="radio" name="searchtype" value="message" /> Message
|
||||
|
@ -2,11 +2,49 @@
|
||||
//Include the header
|
||||
show_header('Uploading Rules');
|
||||
?>
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.0/jquery.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
var original_value = $('#search_string').val();
|
||||
$('#search_string').keyup(function() {
|
||||
var query_string = $('#search_string').val();
|
||||
var q = query_string.replace(/\s+/gm, '').split('+');
|
||||
var regex = new Array();
|
||||
for (var i = 0; i < q.length; i++) {
|
||||
regex[i] = new RegExp(q[i], 'mi');
|
||||
}
|
||||
$('#actual_rules li').each(function() {
|
||||
var show = true;
|
||||
for (var i = 0; i < regex.length; i++) {
|
||||
if (!regex[i].test($(this).html())) {
|
||||
show = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
$(this).toggle(show);
|
||||
});
|
||||
$('.before_rules').toggle(query_string.length == 0);
|
||||
});
|
||||
$('#search_string').focus(function() {
|
||||
if ($(this).val() == original_value) {
|
||||
$(this).val('');
|
||||
}
|
||||
});
|
||||
$('#search_string').blur(function() {
|
||||
if ($(this).val() == '') {
|
||||
$(this).val(original_value);
|
||||
$('.before_rules').show();
|
||||
}
|
||||
})
|
||||
});
|
||||
</script>
|
||||
<!-- Uploading Rules -->
|
||||
<div class="thin">
|
||||
<!-- Uploading Rules Index Links -->
|
||||
<h4 id="Index">Index</h4>
|
||||
|
||||
<input type="text" id="search_string" value="Filter (empty to reset)" />
|
||||
<span id="Index">Example: The search term <strong>FLAC</strong> returns all rules containing <strong>FLAC</strong>. The search term <strong>FLAC+trump</strong> returns all rules containing both <strong>FLAC</strong> and <strong>trump</strong>.</span>
|
||||
<br />
|
||||
<div class="before_rules">
|
||||
<div class="box pad" style="padding:10px 10px 10px 20px;">
|
||||
<ul>
|
||||
<li id="Introk"><a href="#Index"><strong>↑</strong></a> <a href="#Intro"><strong>Introduction</strong></a></li>
|
||||
@ -81,13 +119,17 @@
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Actual Uploading Rules -->
|
||||
<div id="actual_rules">
|
||||
<div class="before_rules">
|
||||
<h4 id="Intro"><a href="#Introk"><strong>↑</strong></a> Introduction</h4>
|
||||
<div class="box pad" style="padding:10px 10px 10px 20px;">
|
||||
<p>The upload rules below appear overwhelmingly long and detailed at first glance. However, the length is for explaining the rules clearly and thoroughly. A summary of each rule is in <strong>bold text</strong> before the actual rule for easier reading. You may also find the corresponding rule sections in the <a href="#Index">Index</a>. The corresponding <a href="#"><strong>↑</strong></a> (move one level up) and <a href="#Index">rule section links</a> (move down into the document) help provide quick navigation.</p>
|
||||
<p>If you are still unsure of what a rule means before uploading something, PLEASE ask at any of the following forms of site user support: <a href="staff.php">First-Line Support</a>, <a href="forums.php?action=viewforum&forumid=8">The Help Forum</a>, <a href="wiki.php?action=article&name=IRC">#what.cd-help on IRC</a>. Privately message a <a href="staff.php">moderator</a> on the site if other support has directed you to a moderator for resolution or support has been unhelpful in your case. If you find any dead links in the upload rules, let a <a href="staff.php">staff member</a> know so it can be promptly fixed.</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h4 id="h1"><a href="#h1k"><strong>↑</strong></a> <a href="#h1">1.</a> Uploading Rules</h4>
|
||||
|
||||
@ -640,6 +682,7 @@
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- END Other Sections -->
|
||||
<? include('jump.php'); ?>
|
||||
|
Loading…
Reference in New Issue
Block a user