Empty commit

This commit is contained in:
Git 2013-10-24 08:01:05 +00:00
parent d412ed5d58
commit 6557395078
24 changed files with 268 additions and 224 deletions

View File

@ -81,7 +81,7 @@ public function get_primary() {
* @param string $Primary * @param string $Primary
*/ */
public function set_primary($Primary) { public function set_primary($Primary) {
$this->Primary = (string) $Primary; $this->Primary = (string)$Primary;
} }
/** /**

View File

@ -36,7 +36,7 @@ public static function render_artist_controls($Selected, $View) {
private static function get_selected_link($String, $Selected) { private static function get_selected_link($String, $Selected) {
if ($Selected) { if ($Selected) {
return "<strong>" . $String . "</strong>"; return "<strong>$String</strong>";
} else { } else {
return $String; return $String;
} }
@ -87,11 +87,11 @@ private static function render_list($Url, $Name, $Image) {
if (!empty($Image)) { if (!empty($Image)) {
$UseTooltipster = !isset(G::$LoggedUser['Tooltipster']) || G::$LoggedUser['Tooltipster']; $UseTooltipster = !isset(G::$LoggedUser['Tooltipster']) || G::$LoggedUser['Tooltipster'];
$Image = ImageTools::process($Image); $Image = ImageTools::process($Image);
$Title = "title=\"&lt;img class=&quot;large_tile&quot; src=&quot;$Image&quot; alt=&quot;&quot; />\""; $Title = "title=\"&lt;img class=&quot;large_tile&quot; src=&quot;$Image&quot; alt=&quot;&quot; /&gt;\"";
$Name = display_str($Name); $Name = display_str($Name);
?> ?>
<li> <li>
<a class="tooltip_image" <?=$Title?> href="<?=$Url?><?=$Name?>"><?=$Name?></a> <a class="tooltip_image" data-title-plain="<?=$Name?>" <?=$Title?> href="<?=$Url?><?=$Name?>"><?=$Name?></a>
</li> </li>
<? <?
} }

View File

@ -4,7 +4,7 @@
<? if (!empty($Options['disclaimer'])) { ?> <? if (!empty($Options['disclaimer'])) { ?>
<br /><br /> <br /><br />
<div id="disclaimer_container" class="thin" style="text-align: center; margin-bottom: 20px;"> <div id="disclaimer_container" class="thin" style="text-align: center; margin-bottom: 20px;">
None of the files shown here are actually hosted on this server. The links are provided solely by this site's users. These BitTorrent files are meant for the distribution of backup files. By downloading the BitTorrent file, you are claiming that you own the original file. The administrator of this site (https://<?=SSL_SITE_URL?>) holds NO RESPONSIBILITY if these files are misused in any way and cannot be held responsible for what its users post, or any other actions of it. None of the files shown here are actually hosted on this server. The links are provided solely by this site's users. These BitTorrent files are meant for the distribution of backup files. By downloading the BitTorrent file, you are claiming that you own the original file. The administrator of this site (<?=site_url()?>) holds NO RESPONSIBILITY if these files are misused in any way and cannot be held responsible for what its users post, or any other actions of it.
</div> </div>
<? <?
} }

View File

@ -230,11 +230,11 @@
<ul id="userinfo_stats"> <ul id="userinfo_stats">
<li id="stats_seeding"> <li id="stats_seeding">
<a href="torrents.php?type=seeding&amp;userid=<?=G::$LoggedUser['ID']?>">Up</a>: <a href="torrents.php?type=seeding&amp;userid=<?=G::$LoggedUser['ID']?>">Up</a>:
<span class="stat" title="<?=Format::get_size(G::$LoggedUser['BytesUploaded'], 5)?>"><?=Format::get_size(G::$LoggedUser['BytesUploaded'])?></span> <span class="stat tooltip" title="<?=Format::get_size(G::$LoggedUser['BytesUploaded'], 5)?>"><?=Format::get_size(G::$LoggedUser['BytesUploaded'])?></span>
</li> </li>
<li id="stats_leeching"> <li id="stats_leeching">
<a href="torrents.php?type=leeching&amp;userid=<?=G::$LoggedUser['ID']?>">Down</a>: <a href="torrents.php?type=leeching&amp;userid=<?=G::$LoggedUser['ID']?>">Down</a>:
<span class="stat" title="<?=Format::get_size(G::$LoggedUser['BytesDownloaded'], 5)?>"><?=Format::get_size(G::$LoggedUser['BytesDownloaded'])?></span> <span class="stat tooltip" title="<?=Format::get_size(G::$LoggedUser['BytesDownloaded'], 5)?>"><?=Format::get_size(G::$LoggedUser['BytesDownloaded'])?></span>
</li> </li>
<li id="stats_ratio"> <li id="stats_ratio">
Ratio: <span class="stat"><?=Format::get_ratio_html(G::$LoggedUser['BytesUploaded'], G::$LoggedUser['BytesDownloaded'])?></span> Ratio: <span class="stat"><?=Format::get_ratio_html(G::$LoggedUser['BytesUploaded'], G::$LoggedUser['BytesDownloaded'])?></span>
@ -242,7 +242,7 @@
<? if (!empty(G::$LoggedUser['RequiredRatio'])) { ?> <? if (!empty(G::$LoggedUser['RequiredRatio'])) { ?>
<li id="stats_required"> <li id="stats_required">
<a href="rules.php?p=ratio">Required</a>: <a href="rules.php?p=ratio">Required</a>:
<span class="stat" title="<?=number_format(G::$LoggedUser['RequiredRatio'], 5)?>"><?=number_format(G::$LoggedUser['RequiredRatio'], 2)?></span> <span class="stat tooltip" title="<?=number_format(G::$LoggedUser['RequiredRatio'], 5)?>"><?=number_format(G::$LoggedUser['RequiredRatio'], 2)?></span>
</li> </li>
<? } <? }
if (G::$LoggedUser['FLTokens'] > 0) { ?> if (G::$LoggedUser['FLTokens'] > 0) { ?>

View File

@ -1,5 +1,20 @@
CHANGE LOG CHANGE LOG
2013-10-24 by alderaan
Layer Cake CSS now has a wider table of torrents on torrents.php
2013-10-23 by alderaan
Use less granular times and prevent word wrapping of datetimes in requests list
2013-10-23 by alderaan
When viewing the bookmarked requests page, don't show the requests search box if you have 0 bookmarked requests.
2013-10-23 by alderaan
On the bookmarked torrents page, if you have no bookmarked torrents with artists, display a message in "Top Artists" and always show "Artists: 0"
2013-10-23 by alderaan
Fix several bugs with unstyled tooltips (mostly caused by missing data-title-plain attributes)
2013-10-22 by alderaan 2013-10-22 by alderaan
Second avatars and donor icons will now be automatically reset by the image proxy if they are too large Second avatars and donor icons will now be automatically reset by the image proxy if they are too large

View File

@ -109,29 +109,29 @@
?> ?>
<div class="box thin"> <div class="box thin">
<div class="head"> <div class="head">
<?=(empty($_GET['action']) ? 'Create a blog post' : 'Edit blog post')?> <?=empty($_GET['action']) ? 'Create a blog post' : 'Edit blog post'?>
</div> </div>
<form class="<?=empty($_GET['action']) ? 'create_form' : 'edit_form'?>" name="blog_post" action="blog.php" method="post"> <form class="<?=empty($_GET['action']) ? 'create_form' : 'edit_form'?>" name="blog_post" action="blog.php" method="post">
<div class="pad"> <div class="pad">
<input type="hidden" name="action" value="<?=(empty($_GET['action']) ? 'takenewblog' : 'takeeditblog')?>" /> <input type="hidden" name="action" value="<?=empty($_GET['action']) ? 'takenewblog' : 'takeeditblog'?>" />
<input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" /> <input type="hidden" name="auth" value="<?=$LoggedUser['AuthKey']?>" />
<? if (!empty($_GET['action']) && $_GET['action'] == 'editblog') { ?> <? if (!empty($_GET['action']) && $_GET['action'] == 'editblog') { ?>
<input type="hidden" name="blogid" value="<?=$BlogID; ?>" /> <input type="hidden" name="blogid" value="<?=$BlogID; ?>" />
<? } ?> <? } ?>
<h3>Title</h3> <h3>Title</h3>
<input type="text" name="title" size="95"<? if (!empty($Title)) { echo ' value="'.display_str($Title).'"'; } ?> /><br /> <input type="text" name="title" size="95"<?=!empty($Title) ? ' value="'.display_str($Title).'"' : '';?> /><br />
<h3>Body</h3> <h3>Body</h3>
<textarea name="body" cols="95" rows="15"><? if (!empty($Body)) { echo display_str($Body); } ?></textarea> <br /> <textarea name="body" cols="95" rows="15"><?=!empty($Body) ? display_str($Body) : '';?></textarea> <br />
<input type="checkbox" value="1" name="important" id="important" checked="checked" /><label for="important">Important</label><br /> <input type="checkbox" value="1" name="important" id="important" checked="checked" /><label for="important">Important</label><br />
<h3>Thread ID</h3> <h3>Thread ID</h3>
<input type="text" name="thread" size="8"<? if (!empty($ThreadID)) { echo ' value="'.display_str($ThreadID).'"'; } ?> /> <input type="text" name="thread" size="8"<?=!empty($ThreadID) ? ' value="'.display_str($ThreadID).'"' : '';?> />
(Leave blank to create thread automatically) (Leave blank to create thread automatically)
<br /><br /> <br /><br />
<input id="subscribebox" type="checkbox" name="subscribe"<?=!empty($HeavyInfo['AutoSubscribe']) ? ' checked="checked"' : '' ?> tabindex="2" /> <input id="subscribebox" type="checkbox" name="subscribe"<?=!empty($HeavyInfo['AutoSubscribe']) ? ' checked="checked"' : '';?> tabindex="2" />
<label for="subscribebox">Subscribe</label> <label for="subscribebox">Subscribe</label>
<div class="center"> <div class="center">
<input type="submit" value="<?=(!isset($_GET['action']) ? 'Create blog post' : 'Edit blog post') ?>" /> <input type="submit" value="<?=!isset($_GET['action']) ? 'Create blog post' : 'Edit blog post';?>" />
</div> </div>
</div> </div>
</form> </form>
@ -173,27 +173,28 @@
foreach ($Blog as $BlogItem) { foreach ($Blog as $BlogItem) {
list($BlogID, $Author, $Title, $Body, $BlogTime, $ThreadID) = $BlogItem; list($BlogID, $Author, $Title, $Body, $BlogTime, $ThreadID) = $BlogItem;
?> ?>
<div id="blog<?=$BlogID?>" class="box"> <div id="blog<?=$BlogID?>" class="box">
<div class="head"> <div class="head">
<strong><?=$Title?></strong> - posted <?=time_diff($BlogTime);?> by <?=$Author?> <strong><?=$Title?></strong> - posted <?=time_diff($BlogTime);?> by <?=$Author?>
<? if (check_perms('admin_manage_blog')) { ?> <? if (check_perms('admin_manage_blog')) { ?>
- <a href="blog.php?action=editblog&amp;id=<?=$BlogID?>" class="brackets">Edit</a> - <a href="blog.php?action=editblog&amp;id=<?=$BlogID?>" class="brackets">Edit</a>
<a href="blog.php?action=deleteblog&amp;id=<?=$BlogID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" class="brackets">Delete</a> <a href="blog.php?action=deleteblog&amp;id=<?=$BlogID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" class="brackets">Delete</a>
<? } ?> <? } ?>
</div> </div>
<div class="pad"> <div class="pad">
<?=$Text->full_format($Body)?> <?=$Text->full_format($Body)?>
<? if ($ThreadID) { ?> <? if ($ThreadID) { ?>
<br /><br /> <br /><br />
<em><a href="forums.php?action=viewthread&amp;threadid=<?=$ThreadID?>">Discuss this post here</a></em> <em><a href="forums.php?action=viewthread&amp;threadid=<?=$ThreadID?>">Discuss this post here</a></em>
<? if (check_perms('admin_manage_blog')) { ?> <? if (check_perms('admin_manage_blog')) { ?>
<a href="blog.php?action=deadthread&amp;id=<?=$BlogID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" class="brackets">Remove link</a> <a href="blog.php?action=deadthread&amp;id=<?=$BlogID?>&amp;auth=<?=$LoggedUser['AuthKey']?>" class="brackets">Remove link</a>
<? <?
} }
} ?> }
</div> ?>
</div> </div>
<br /> </div>
<br />
<? <?
} }
?> ?>

View File

@ -5,7 +5,7 @@
error(403); error(403);
} }
$UserID = $_GET['userid']; $UserID = $_GET['userid'];
$Sneaky = ($UserID !== $LoggedUser['ID']); $Sneaky = $UserID !== $LoggedUser['ID'];
if (!is_number($UserID)) { if (!is_number($UserID)) {
error(404); error(404);
} }
@ -18,7 +18,7 @@
$UserID = $LoggedUser['ID']; $UserID = $LoggedUser['ID'];
} }
$Sneaky = ($UserID !== $LoggedUser['ID']); $Sneaky = $UserID !== $LoggedUser['ID'];
//$ArtistList = Bookmarks::all_bookmarks('artist', $UserID); //$ArtistList = Bookmarks::all_bookmarks('artist', $UserID);
@ -31,7 +31,7 @@
$ArtistList = $DB->to_array(); $ArtistList = $DB->to_array();
$Title = ($Sneaky) ? "$Username's bookmarked artists" : 'Your bookmarked artists'; $Title = $Sneaky ? "$Username's bookmarked artists" : 'Your bookmarked artists';
View::show_header($Title, 'browse'); View::show_header($Title, 'browse');
@ -48,7 +48,7 @@
</div> </div>
<div class="box pad" align="center"> <div class="box pad" align="center">
<? if (count($ArtistList) === 0) { ?> <? if (count($ArtistList) === 0) { ?>
<br /><h2>You have not bookmarked any artists.</h2> <h2>You have not bookmarked any artists.</h2>
</div> </div>
</div><!--content--> </div><!--content-->
<? <?

View File

@ -139,7 +139,7 @@ function compare($X, $Y) {
$LastRemasterCatalogueNumber = $Torrent['RemasterCatalogueNumber']; $LastRemasterCatalogueNumber = $Torrent['RemasterCatalogueNumber'];
$LastMedia = $Torrent['Media']; $LastMedia = $Torrent['Media'];
?> ?>
<tr class="group_torrent torrent_row groupid_<?=$GroupID?> edition_<?=$EditionID?><?=$SnatchedTorrentClass . $SnatchedGroupClass . (!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGrouping'] === 1 ? ' hidden' : '')?>"> <tr class="group_torrent torrent_row groupid_<?=$GroupID?> edition_<?=$EditionID?><?=$SnatchedTorrentClass . $SnatchedGroupClass . (!empty($LoggedUser['TorrentGrouping']) && $LoggedUser['TorrentGrouping'] === 1 ? ' hidden' : '')?>">
<td colspan="3"> <td colspan="3">
<span>[ <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">DL</a> <span>[ <a href="torrents.php?action=download&amp;id=<?=$TorrentID?>&amp;authkey=<?=$LoggedUser['AuthKey']?>&amp;torrent_pass=<?=$LoggedUser['torrent_pass']?>" title="Download">DL</a>
<? if (Torrents::can_use_token($Torrent)) { ?> <? if (Torrents::can_use_token($Torrent)) { ?>
@ -223,11 +223,12 @@ function compare($X, $Y) {
$DisplayName = "$DisplayName [$GroupYear]"; $DisplayName = "$DisplayName [$GroupYear]";
} }
$Tags = display_str($TorrentTags->format()); $Tags = display_str($TorrentTags->format());
$PlainTags = implode(', ', $TorrentTags->get_tags());
?> ?>
<li class="image_group_<?=$GroupID?>"> <li class="image_group_<?=$GroupID?>">
<a href="torrents.php?id=<?=$GroupID?>" class="bookmark_<?=$GroupID?>"> <a href="torrents.php?id=<?=$GroupID?>" class="bookmark_<?=$GroupID?>">
<? if ($WikiImage) { ?> <? if ($WikiImage) { ?>
<img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" width="117" /> <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="118" />
<? } else { ?> <? } else { ?>
<div style="width: 107px; padding: 5px;"><?=$DisplayName?></div> <div style="width: 107px; padding: 5px;"><?=$DisplayName?></div>
<? } ?> <? } ?>
@ -280,13 +281,11 @@ function compare($X, $Y) {
<div class="head"><strong>Stats</strong></div> <div class="head"><strong>Stats</strong></div>
<ul class="stats nobullet"> <ul class="stats nobullet">
<li>Torrents: <?=$NumGroups?></li> <li>Torrents: <?=$NumGroups?></li>
<? if (count($ArtistCount) > 0) { ?>
<li>Artists: <?=count($ArtistCount)?></li> <li>Artists: <?=count($ArtistCount)?></li>
<? } ?>
</ul> </ul>
</div> </div>
<div class="box box_tags"> <div class="box box_tags">
<div class="head"><strong>Top tags</strong></div> <div class="head"><strong>Top Tags</strong></div>
<div class="pad"> <div class="pad">
<ol style="padding-left: 5px;"> <ol style="padding-left: 5px;">
<? Tags::format_top(5) ?> <? Tags::format_top(5) ?>
@ -294,23 +293,30 @@ function compare($X, $Y) {
</div> </div>
</div> </div>
<div class="box box_artists"> <div class="box box_artists">
<div class="head"><strong>Top artists</strong></div> <div class="head"><strong>Top Artists</strong></div>
<div class="pad"> <div class="pad">
<ol style="padding-left: 5px;">
<? <?
uasort($ArtistCount, 'compare'); $Indent = "\t\t\t\t";
$i = 0; if (count($ArtistCount) > 0) {
foreach ($ArtistCount as $ID => $Artist) { echo "$Indent<ol style=\"padding-left: 5px;\">\n";
$i++; uasort($ArtistCount, 'compare');
if ($i > 10) { $i = 0;
break; foreach ($ArtistCount as $ID => $Artist) {
} $i++;
if ($i > 10) {
break;
}
?> ?>
<li><a href="artist.php?id=<?=$ID?>"><?=display_str($Artist['name'])?></a> (<?=$Artist['count']?>)</li> <li><a href="artist.php?id=<?=$ID?>"><?=display_str($Artist['name'])?></a> (<?=$Artist['count']?>)</li>
<? <?
} }
echo "$Indent</ol>\n";
} else {
echo "$Indent<ul class=\"nobullet\" style=\"padding-left: 5px;\">\n";
echo "$Indent\t<li>There are no artists to display.</li>\n";
echo "$Indent</ul>\n";
}
?> ?>
</ol>
</div> </div>
</div> </div>
</div> </div>
@ -324,16 +330,17 @@ function compare($X, $Y) {
$Page1 = array_slice($Collage, 0, $CollageCovers); $Page1 = array_slice($Collage, 0, $CollageCovers);
foreach ($Page1 as $Group) { foreach ($Page1 as $Group) {
echo $Group; echo $Group;
} ?> }
?>
</ul> </ul>
</div> </div>
<? if ($NumGroups > $CollageCovers) { ?> <? if ($NumGroups > $CollageCovers) { ?>
<div class="linkbox pager" style="clear: left;" id="pageslinksdiv"> <div class="linkbox pager" style="clear: left;" id="pageslinksdiv">
<span id="firstpage" class="invisible"><a href="#" class="pageslink" onclick="collageShow.page(0, this); return false;">&lt;&lt; First</a> | </span> <span id="firstpage" class="invisible"><a href="#" class="pageslink" onclick="collageShow.page(0, this); return false;">&lt;&lt; First</a> | </span>
<span id="prevpage" class="invisible"><a href="#" id="prevpage" class="pageslink" onclick="collageShow.prevPage(); return false;">&lt; Prev</a> | </span> <span id="prevpage" class="invisible"><a href="#" id="prevpage" class="pageslink" onclick="collageShow.prevPage(); return false;">&lt; Prev</a> | </span>
<? for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { ?> <? for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { ?>
<span id="pagelink<?=$i?>" class="<?=(($i > 4) ? 'hidden' : '')?><?=(($i === 0) ? ' selected' : '')?>"><a href="#" class="pageslink" onclick="collageShow.page(<?=$i?>, this); return false;"><?=($CollageCovers * $i + 1)?>-<?=min($NumGroups, $CollageCovers * ($i + 1))?></a><?=(($i !== ceil($NumGroups / $CollageCovers) - 1) ? ' | ' : '')?></span> <span id="pagelink<?=$i?>" class="<?=(($i > 4) ? 'hidden' : '')?><?=(($i === 0) ? ' selected' : '')?>"><a href="#" class="pageslink" onclick="collageShow.page(<?=$i?>, this); return false;"><?=($CollageCovers * $i + 1)?>-<?=min($NumGroups, $CollageCovers * ($i + 1))?></a><?=(($i !== ceil($NumGroups / $CollageCovers) - 1) ? ' | ' : '')?></span>
<? } ?> <? } ?>
<span id="nextbar" class="<?=(($NumGroups / $CollageCovers > 5) ? 'hidden' : '')?>"> | </span> <span id="nextbar" class="<?=(($NumGroups / $CollageCovers > 5) ? 'hidden' : '')?>"> | </span>
<span id="nextpage"><a href="#" class="pageslink" onclick="collageShow.nextPage(); return false;">Next &gt;</a></span> <span id="nextpage"><a href="#" class="pageslink" onclick="collageShow.nextPage(); return false;">Next &gt;</a></span>
<span id="lastpage" class="<?=(ceil($NumGroups / $CollageCovers) === 2 ? 'invisible' : '')?>"> | <a href="#" id="lastpage" class="pageslink" onclick="collageShow.page(<?=(ceil($NumGroups / $CollageCovers) - 1)?>, this); return false;">Last &gt;&gt;</a></span> <span id="lastpage" class="<?=(ceil($NumGroups / $CollageCovers) === 2 ? 'invisible' : '')?>"> | <a href="#" id="lastpage" class="pageslink" onclick="collageShow.page(<?=(ceil($NumGroups / $CollageCovers) - 1)?>, this); return false;">Last &gt;&gt;</a></span>
@ -341,8 +348,10 @@ function compare($X, $Y) {
<script type="text/javascript"> <script type="text/javascript">
collageShow.init(<?=json_encode($CollagePages)?>); collageShow.init(<?=json_encode($CollagePages)?>);
</script> </script>
<? } <?
} ?> }
}
?>
<table class="torrent_table grouping cats" id="torrent_table"> <table class="torrent_table grouping cats" id="torrent_table">
<tr class="colhead_dark"> <tr class="colhead_dark">
<td><!-- expand/collapse --></td> <td><!-- expand/collapse --></td>

View File

@ -96,9 +96,9 @@
} }
if (isset($_GET['tags_type']) && $_GET['tags_type'] === '0') { // Any if (isset($_GET['tags_type']) && $_GET['tags_type'] === '0') { // Any
$_GET['tags_type'] = 0; $_GET['tags_type'] = '0';
} else { // All } else { // All
$_GET['tags_type'] = 1; $_GET['tags_type'] = '1';
} }
if (!empty($Tags)) { if (!empty($Tags)) {
@ -167,13 +167,13 @@
?> ?>
<div class="thin"> <div class="thin">
<div class="header"> <div class="header">
<? if ($BookmarkView) { ?> <? if ($BookmarkView) { ?>
<h2>Your bookmarked collages</h2> <h2>Your bookmarked collages</h2>
<? } else { ?> <? } else { ?>
<h2>Browse collages<?=(!empty($UserLink) ? (isset($CollageIDs) ? " with contributions by $UserLink" : " started by $UserLink") : '')?></h2> <h2>Browse collages<?=(!empty($UserLink) ? (isset($CollageIDs) ? " with contributions by $UserLink" : " started by $UserLink") : '')?></h2>
<? } ?> <? } ?>
</div> </div>
<? if (!$BookmarkView) { ?> <? if (!$BookmarkView) { ?>
<div> <div>
<form class="search_form" name="collages" action="" method="get"> <form class="search_form" name="collages" action="" method="get">
<div><input type="hidden" name="action" value="search" /></div> <div><input type="hidden" name="action" value="search" /></div>
@ -195,10 +195,10 @@
<tr id="categories"> <tr id="categories">
<td class="label">Categories:</td> <td class="label">Categories:</td>
<td> <td>
<? foreach ($CollageCats as $ID => $Cat) { ?> <? foreach ($CollageCats as $ID => $Cat) { ?>
<input type="checkbox" value="1" name="cats[<?=$ID?>]" id="cats_<?=$ID?>"<? if (in_array($ID, $Categories)) { echo ' checked="checked"'; } ?> /> <input type="checkbox" value="1" name="cats[<?=$ID?>]" id="cats_<?=$ID?>"<? if (in_array($ID, $Categories)) { echo ' checked="checked"'; } ?> />
<label for="cats_<?=$ID?>"><?=$Cat?></label>&nbsp;&nbsp; <label for="cats_<?=$ID?>"><?=$Cat?></label>&nbsp;&nbsp;
<? } ?> <? } ?>
</td> </td>
</tr> </tr>
<tr id="search_name_description"> <tr id="search_name_description">
@ -212,14 +212,14 @@
<td class="label">Order by:</td> <td class="label">Order by:</td>
<td> <td>
<select name="order_by" class="ft_order_by"> <select name="order_by" class="ft_order_by">
<? foreach ($OrderVals as $Cur) { ?> <? foreach ($OrderVals as $Cur) { ?>
<option value="<?=$Cur?>"<? if (isset($_GET['order_by']) && $_GET['order_by'] === $Cur || (!isset($_GET['order_by']) && $Cur === 'Time')) { echo ' selected="selected"'; } ?>><?=$Cur?></option> <option value="<?=$Cur?>"<? if (isset($_GET['order_by']) && $_GET['order_by'] === $Cur || (!isset($_GET['order_by']) && $Cur === 'Time')) { echo ' selected="selected"'; } ?>><?=$Cur?></option>
<? } ?> <? } ?>
</select> </select>
<select name="order_way" class="ft_order_way"> <select name="order_way" class="ft_order_way">
<? foreach ($WayVals as $Cur) { ?> <? foreach ($WayVals as $Cur) { ?>
<option value="<?=$Cur?>"<? if (isset($_GET['order_way']) && $_GET['order_way'] === $Cur || (!isset($_GET['order_way']) && $Cur === 'Descending')) { echo ' selected="selected"'; } ?>><?=$Cur?></option> <option value="<?=$Cur?>"<? if (isset($_GET['order_way']) && $_GET['order_way'] === $Cur || (!isset($_GET['order_way']) && $Cur === 'Descending')) { echo ' selected="selected"'; } ?>><?=$Cur?></option>
<? } ?> <? } ?>
</select> </select>
</td> </td>
</tr> </tr>
@ -231,12 +231,15 @@
</table> </table>
</form> </form>
</div> </div>
<? } // if (!$BookmarkView) ?> <? } // if (!$BookmarkView) ?>
<div class="linkbox"> <div class="linkbox">
<? if (!$BookmarkView) { <?
if (check_perms('site_collages_create')) { ?> if (!$BookmarkView) {
if (check_perms('site_collages_create')) {
?>
<a href="collages.php?action=new" class="brackets">New collage</a> <a href="collages.php?action=new" class="brackets">New collage</a>
<? } <?
}
if (check_perms('site_collages_personal')) { if (check_perms('site_collages_personal')) {
$DB->query(" $DB->query("
@ -253,16 +256,18 @@
<a href="collages.php?id=<?=$CollageID?>" class="brackets">Personal collage</a> <a href="collages.php?id=<?=$CollageID?>" class="brackets">Personal collage</a>
<? } elseif ($CollageCount > 1) { ?> <? } elseif ($CollageCount > 1) { ?>
<a href="collages.php?action=mine" class="brackets">Personal collages</a> <a href="collages.php?action=mine" class="brackets">Personal collages</a>
<? } <?
}
} }
if (check_perms('site_collages_subscribe')) { ?> if (check_perms('site_collages_subscribe')) {
?>
<a href="userhistory.php?action=subscribed_collages" class="brackets">Subscribed collages</a> <a href="userhistory.php?action=subscribed_collages" class="brackets">Subscribed collages</a>
<? } ?> <? } ?>
<a href="bookmarks.php?type=collages" class="brackets">Bookmarked collages</a> <a href="bookmarks.php?type=collages" class="brackets">Bookmarked collages</a>
<? <? if (check_perms('site_collages_recover')) { ?>
if (check_perms('site_collages_recover')) { ?>
<a href="collages.php?action=recover" class="brackets">Recover collage</a> <a href="collages.php?action=recover" class="brackets">Recover collage</a>
<? } <?
}
if (check_perms('site_collages_create') || check_perms('site_collages_personal') || check_perms('site_collages_recover')) { if (check_perms('site_collages_create') || check_perms('site_collages_personal') || check_perms('site_collages_recover')) {
?> ?>
<br /> <br />
@ -274,11 +279,10 @@
<a href="bookmarks.php?type=artists" class="brackets">Artists</a> <a href="bookmarks.php?type=artists" class="brackets">Artists</a>
<a href="bookmarks.php?type=collages" class="brackets">Collages</a> <a href="bookmarks.php?type=collages" class="brackets">Collages</a>
<a href="bookmarks.php?type=requests" class="brackets">Requests</a> <a href="bookmarks.php?type=requests" class="brackets">Requests</a>
<? } ?>
<br /><br />
<? <?
$Pages = Format::get_pages($Page, $NumResults, COLLAGES_PER_PAGE, 9); }
echo $Pages; $Pages = Format::get_pages($Page, $NumResults, COLLAGES_PER_PAGE, 9);
echo $Pages;
?> ?>
</div> </div>
<? if (count($Collages) === 0) { ?> <? if (count($Collages) === 0) { ?>
@ -293,7 +297,8 @@
</div><!--content--> </div><!--content-->
<? View::show_footer(); <? View::show_footer();
die(); die();
} ?> }
?>
<table width="100%" class="collage_table"> <table width="100%" class="collage_table">
<tr class="colhead"> <tr class="colhead">
<td>Category</td> <td>Category</td>
@ -331,7 +336,8 @@
<td><?=Users::format_username($UserID, false, false, false)?></td> <td><?=Users::format_username($UserID, false, false, false)?></td>
</tr> </tr>
<? <?
} ?> }
?>
</table> </table>
<div class="linkbox"><?=$Pages?></div> <div class="linkbox"><?=$Pages?></div>
</div> </div>

View File

@ -235,11 +235,12 @@
$DisplayName = "$DisplayName [$GroupYear]"; $DisplayName = "$DisplayName [$GroupYear]";
} }
$Tags = display_str($TorrentTags->format()); $Tags = display_str($TorrentTags->format());
$PlainTags = implode(', ', $TorrentTags->get_tags());
?> ?>
<li class="image_group_<?=$GroupID?>"> <li class="image_group_<?=$GroupID?>">
<a href="torrents.php?id=<?=$GroupID?>"> <a href="torrents.php?id=<?=$GroupID?>">
<? if ($WikiImage) { ?> <? if ($WikiImage) { ?>
<img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" width="118" /> <img class="tooltip_interactive" src="<?=ImageTools::process($WikiImage, true)?>" alt="<?=$DisplayName?>" title="<?=$DisplayName?> <br /> <?=$Tags?>" data-title-plain="<?="$DisplayName ($PlainTags)"?>" width="118" />
<? } else { ?> <? } else { ?>
<span style="width: 107px; padding: 5px;"><?=$DisplayName?></span> <span style="width: 107px; padding: 5px;"><?=$DisplayName?></span>
<? } ?> <? } ?>
@ -254,7 +255,7 @@
} }
// Silly hack for people who are on the old setting // Silly hack for people who are on the old setting
$CollageCovers = (isset($LoggedUser['CollageCovers']) ? $LoggedUser['CollageCovers'] : 25 * (abs($LoggedUser['HideCollage'] - 1))); $CollageCovers = isset($LoggedUser['CollageCovers']) ? $LoggedUser['CollageCovers'] : 25 * (abs($LoggedUser['HideCollage'] - 1));
$CollagePages = array(); $CollagePages = array();
// Pad it out // Pad it out
@ -264,7 +265,6 @@
} }
} }
for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) {
$Groups = array_slice($Collage, $i * $CollageCovers, $CollageCovers); $Groups = array_slice($Collage, $i * $CollageCovers, $CollageCovers);
$CollagePage = ''; $CollagePage = '';
@ -324,7 +324,7 @@
<? <?
if (check_perms('zip_downloader')) { if (check_perms('zip_downloader')) {
if (isset($LoggedUser['Collector'])) { if (isset($LoggedUser['Collector'])) {
list($ZIPList,$ZIPPrefs) = $LoggedUser['Collector']; list($ZIPList, $ZIPPrefs) = $LoggedUser['Collector'];
$ZIPList = explode(':', $ZIPList); $ZIPList = explode(':', $ZIPList);
} else { } else {
$ZIPList = array('00', '11'); $ZIPList = array('00', '11');
@ -354,7 +354,7 @@
$LastGroupID = -1; $LastGroupID = -1;
foreach ($ZIPOptions as $Option) { foreach ($ZIPOptions as $Option) {
list($GroupID,$OptionID,$OptName) = $Option; list($GroupID, $OptionID, $OptName) = $Option;
if ($GroupID != $LastGroupID) { if ($GroupID != $LastGroupID) {
$LastGroupID = $GroupID; $LastGroupID = $GroupID;

View File

@ -222,7 +222,7 @@
</div> </div>
<div class="box box_votes"> <div class="box box_votes">
<div class="head"><strong>Top Contributors</strong></div> <div class="head"><strong>Top Contributors</strong></div>
<table class="layout"> <table class="layout" id="request_top_contrib">
<? <?
$VoteMax = ($VoteCount < 5 ? $VoteCount : 5); $VoteMax = ($VoteCount < 5 ? $VoteCount : 5);
$ViewerVote = false; $ViewerVote = false;
@ -431,33 +431,30 @@
</td> </td>
</tr> </tr>
<? } ?> <? } ?>
<tr>
<td colspan="2" class="center"><strong>Description</strong></td>
</tr>
<tr>
<td colspan="2">
<?= $Text->full_format($Request['Description']);?>
</td>
</tr>
</table> </table>
<div class="box2 box_request_desc">
<div class="head"><strong>Description</strong></div>
<div class="pad">
<?= $Text->full_format($Request['Description']);?>
</div>
</div>
<? <?
list($NumComments, $Page, $Thread, $LastRead) = Comments::load('requests', $RequestID); list($NumComments, $Page, $Thread, $LastRead) = Comments::load('requests', $RequestID);
?> ?>
<div class="linkbox"><a name="comments"></a> <div class="linkbox">
<a name="comments"></a>
<? <?
$Pages = Format::get_pages($Page, $NumComments, TORRENT_COMMENTS_PER_PAGE, 9, '#comments'); $Pages = Format::get_pages($Page, $NumComments, TORRENT_COMMENTS_PER_PAGE, 9, '#comments');
echo $Pages; echo $Pages;
?> ?>
</div> </div>
<? <?
//---------- Begin printing //---------- Begin printing
CommentsView::render_comments($Thread, $LastRead, "requests.php?action=view&amp;id=$RequestID"); CommentsView::render_comments($Thread, $LastRead, "requests.php?action=view&amp;id=$RequestID");
if ($Pages) { ?> if ($Pages) { ?>
<div class="linkbox pager"><?=$Pages?></div> <div class="linkbox pager"><?=$Pages?></div>
<? <?
} }

View File

@ -316,7 +316,7 @@
} }
$SphQLResult = $SphQL->query(); $SphQLResult = $SphQL->query();
$NumResults = $SphQLResult->get_meta('total_found'); $NumResults = (int)$SphQLResult->get_meta('total_found');
if ($NumResults > 0) { if ($NumResults > 0) {
$SphRequests = $SphQLResult->to_array('id'); $SphRequests = $SphQLResult->to_array('id');
if ($OrderBy === 'random') { if ($OrderBy === 'random') {
@ -355,17 +355,22 @@
<a href="bookmarks.php?type=requests" class="brackets">Requests</a> <a href="bookmarks.php?type=requests" class="brackets">Requests</a>
<? } ?> <? } ?>
</div> </div>
<? if ($BookmarkView && $NumResults === 0) { ?>
<div class="box pad" align="center">
<h2>You have not bookmarked any requests.</h2>
</div>
<? } else { ?>
<form class="search_form" name="requests" action="" method="get"> <form class="search_form" name="requests" action="" method="get">
<? if ($BookmarkView) { ?> <? if ($BookmarkView) { ?>
<input type="hidden" name="action" value="view" /> <input type="hidden" name="action" value="view" />
<input type="hidden" name="type" value="requests" /> <input type="hidden" name="type" value="requests" />
<? } elseif (isset($_GET['type'])) { ?> <? } elseif (isset($_GET['type'])) { ?>
<input type="hidden" name="type" value="<?=$_GET['type']?>" /> <input type="hidden" name="type" value="<?=$_GET['type']?>" />
<? } ?> <? } ?>
<input type="hidden" name="submit" value="true" /> <input type="hidden" name="submit" value="true" />
<? if (!empty($_GET['userid']) && is_number($_GET['userid'])) { ?> <? if (!empty($_GET['userid']) && is_number($_GET['userid'])) { ?>
<input type="hidden" name="userid" value="<?=$_GET['userid']?>" /> <input type="hidden" name="userid" value="<?=$_GET['userid']?>" />
<? } ?> <? } ?>
<table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%"> <table cellpadding="6" cellspacing="1" border="0" class="layout border" width="100%">
<tr id="search_terms"> <tr id="search_terms">
<td class="label">Search terms:</td> <td class="label">Search terms:</td>
@ -387,7 +392,7 @@
<input type="checkbox" name="show_filled"<? if (!$Submitted || !empty($_GET['show_filled']) || (!$Submitted && !empty($_GET['type']) && $_GET['type'] === 'filled')) { ?> checked="checked"<? } ?> /> <input type="checkbox" name="show_filled"<? if (!$Submitted || !empty($_GET['show_filled']) || (!$Submitted && !empty($_GET['type']) && $_GET['type'] === 'filled')) { ?> checked="checked"<? } ?> />
</td> </td>
</tr> </tr>
<? if (check_perms('site_see_old_requests')) { ?> <? if (check_perms('site_see_old_requests')) { ?>
<tr id="include_old"> <tr id="include_old">
<td class="label">Include old:</td> <td class="label">Include old:</td>
<td> <td>
@ -401,29 +406,27 @@
<input type="text" name="requester" size="75" value="<?=display_str($_GET['requester'])?>" /> <input type="text" name="requester" size="75" value="<?=display_str($_GET['requester'])?>" />
</td> </td>
</tr> </tr>
<? */} ?> <? */} ?>
</table> </table>
<table class="layout cat_list"> <table class="layout cat_list">
<? <?
$x = 1; $x = 1;
reset($Categories); reset($Categories);
foreach ($Categories as $CatKey => $CatName) { foreach ($Categories as $CatKey => $CatName) {
if ($x % 8 === 0 || $x === 1) { if ($x % 8 === 0 || $x === 1) {
?> ?>
<tr> <tr>
<? } ?> <? } ?>
<td> <td>
<input type="checkbox" name="filter_cat[<?=($CatKey + 1) ?>]" id="cat_<?=($CatKey + 1) ?>" value="1"<? if (isset($_GET['filter_cat'][$CatKey + 1])) { ?> checked="checked"<? } ?> /> <input type="checkbox" name="filter_cat[<?=($CatKey + 1) ?>]" id="cat_<?=($CatKey + 1) ?>" value="1"<? if (isset($_GET['filter_cat'][$CatKey + 1])) { ?> checked="checked"<? } ?> />
<label for="cat_<?=($CatKey + 1) ?>"><?=$CatName?></label> <label for="cat_<?=($CatKey + 1) ?>"><?=$CatName?></label>
</td> </td>
<? <? if ($x % 7 === 0) { ?>
if ($x % 7 === 0) {
?>
</tr> </tr>
<? <?
} }
$x++; $x++;
} }
?> ?>
</table> </table>
<table class="layout"> <table class="layout">
@ -432,18 +435,18 @@
<td> <td>
<input type="checkbox" id="toggle_releases" onchange="Toggle('releases', 0);"<?=(!$Submitted || !empty($ReleaseArray) && count($ReleaseArray) === count($ReleaseTypes) ? ' checked="checked"' : '') ?> /> <label for="toggle_releases">All</label> <input type="checkbox" id="toggle_releases" onchange="Toggle('releases', 0);"<?=(!$Submitted || !empty($ReleaseArray) && count($ReleaseArray) === count($ReleaseTypes) ? ' checked="checked"' : '') ?> /> <label for="toggle_releases">All</label>
<? <?
$i = 0; $i = 0;
foreach ($ReleaseTypes as $Key => $Val) { foreach ($ReleaseTypes as $Key => $Val) {
if ($i % 8 === 0) { if ($i % 8 === 0) {
echo '<br />'; echo '<br />';
} }
?> ?>
<input type="checkbox" name="releases[]" value="<?=$Key?>" id="release_<?=$Key?>" <input type="checkbox" name="releases[]" value="<?=$Key?>" id="release_<?=$Key?>"
<?=(!$Submitted || (!empty($ReleaseArray) && in_array($Key, $ReleaseArray)) ? ' checked="checked" ' : '')?> <?=(!$Submitted || (!empty($ReleaseArray) && in_array($Key, $ReleaseArray)) ? ' checked="checked" ' : '')?>
/> <label for="release_<?=$Key?>"><?=$Val?></label> /> <label for="release_<?=$Key?>"><?=$Val?></label>
<? <?
$i++; $i++;
} }
?> ?>
</td> </td>
</tr> </tr>
@ -455,17 +458,15 @@
<input type="checkbox" id="formats_strict" name="formats_strict"<?=(!empty($_GET['formats_strict']) ? ' checked="checked"' : '')?> /> <input type="checkbox" id="formats_strict" name="formats_strict"<?=(!empty($_GET['formats_strict']) ? ' checked="checked"' : '')?> />
<label for="formats_strict">Only specified</label> <label for="formats_strict">Only specified</label>
<? <?
foreach ($Formats as $Key => $Val) { foreach ($Formats as $Key => $Val) {
if ($Key % 8 === 0) { if ($Key % 8 === 0) {
echo '<br />'; echo '<br />';
} }
?> ?>
<input type="checkbox" name="formats[]" value="<?=$Key?>" id="format_<?=$Key?>" <input type="checkbox" name="formats[]" value="<?=$Key?>" id="format_<?=$Key?>"
<?=(!$Submitted || (!empty($FormatArray) && in_array($Key, $FormatArray)) ? ' checked="checked" ' : '')?> <?=(!$Submitted || (!empty($FormatArray) && in_array($Key, $FormatArray)) ? ' checked="checked" ' : '')?>
/> <label for="format_<?=$Key?>"><?=$Val?></label> /> <label for="format_<?=$Key?>"><?=$Val?></label>
<? <? } ?>
}
?>
</td> </td>
</tr> </tr>
<tr id="bitrate_list"> <tr id="bitrate_list">
@ -476,16 +477,16 @@
<input type="checkbox" id="bitrate_strict" name="bitrate_strict"<?=(!empty($_GET['bitrate_strict']) ? ' checked="checked"' : '') ?> /> <input type="checkbox" id="bitrate_strict" name="bitrate_strict"<?=(!empty($_GET['bitrate_strict']) ? ' checked="checked"' : '') ?> />
<label for="bitrate_strict">Only specified</label> <label for="bitrate_strict">Only specified</label>
<? <?
foreach ($Bitrates as $Key => $Val) { foreach ($Bitrates as $Key => $Val) {
if ($Key % 8 === 0) { if ($Key % 8 === 0) {
echo '<br />'; echo '<br />';
} }
?> ?>
<input type="checkbox" name="bitrates[]" value="<?=$Key?>" id="bitrate_<?=$Key?>" <input type="checkbox" name="bitrates[]" value="<?=$Key?>" id="bitrate_<?=$Key?>"
<?=(!$Submitted || (!empty($BitrateArray) && in_array($Key, $BitrateArray)) ? ' checked="checked" ' : '')?> <?=(!$Submitted || (!empty($BitrateArray) && in_array($Key, $BitrateArray)) ? ' checked="checked" ' : '')?>
/> <label for="bitrate_<?=$Key?>"><?=$Val?></label> /> <label for="bitrate_<?=$Key?>"><?=$Val?></label>
<? <?
} }
?> ?>
</td> </td>
</tr> </tr>
@ -497,17 +498,15 @@
<input type="checkbox" id="media_strict" name="media_strict"<?=(!empty($_GET['media_strict']) ? ' checked="checked"' : '')?> /> <input type="checkbox" id="media_strict" name="media_strict"<?=(!empty($_GET['media_strict']) ? ' checked="checked"' : '')?> />
<label for="media_strict">Only specified</label> <label for="media_strict">Only specified</label>
<? <?
foreach ($Media as $Key => $Val) { foreach ($Media as $Key => $Val) {
if ($Key % 8 === 0) { if ($Key % 8 === 0) {
echo '<br />'; echo '<br />';
} }
?> ?>
<input type="checkbox" name="media[]" value="<?=$Key?>" id="media_<?=$Key?>" <input type="checkbox" name="media[]" value="<?=$Key?>" id="media_<?=$Key?>"
<?=(!$Submitted || (!empty($MediaArray) && in_array($Key, $MediaArray)) ? ' checked="checked" ' : '')?> <?=(!$Submitted || (!empty($MediaArray) && in_array($Key, $MediaArray)) ? ' checked="checked" ' : '')?>
/> <label for="media_<?=$Key?>"><?=$Val?></label> /> <label for="media_<?=$Key?>"><?=$Val?></label>
<? <? } ?>
}
?>
</td> </td>
</tr> </tr>
<tr> <tr>
@ -517,12 +516,11 @@
</tr> </tr>
</table> </table>
</form> </form>
<? if (isset($PageLinks)) { ?>
<? if (isset($PageLinks)) { ?>
<div class="linkbox"> <div class="linkbox">
<?=$PageLinks?> <?= $PageLinks?>
</div> </div>
<? } ?> <? } ?>
<table id="request_table" class="request_table border" cellpadding="6" cellspacing="1" border="0" width="100%"> <table id="request_table" class="request_table border" cellpadding="6" cellspacing="1" border="0" width="100%">
<tr class="colhead_dark"> <tr class="colhead_dark">
<td style="width: 38%;" class="nobr"> <td style="width: 38%;" class="nobr">
@ -550,19 +548,24 @@
<a href="?order=lastvote&amp;sort=<?=($OrderBy === 'lastvote' ? $NewSort : 'desc')?>&amp;<?=$CurrentURL?>"><strong>Last vote</strong></a> <a href="?order=lastvote&amp;sort=<?=($OrderBy === 'lastvote' ? $NewSort : 'desc')?>&amp;<?=$CurrentURL?>"><strong>Last vote</strong></a>
</td> </td>
</tr> </tr>
<? if ($NumResults === 0) { ?> <?
if ($NumResults === 0) {
// not viewing bookmarks but no requests found
?>
<tr class="rowb"> <tr class="rowb">
<td colspan="8"> <td colspan="8">
Nothing found! Nothing found!
</td> </td>
</tr> </tr>
<? } elseif ($Page === 0) { ?> <? } elseif ($Page === 0) { ?>
<tr class="rowb"> <tr class="rowb">
<td colspan="8"> <td colspan="8">
The requested page contains no matches! The requested page contains no matches!
</td> </td>
</tr> </tr>
<? } else { <?
} else {
$TimeCompare = 1267643718; // Requests v2 was implemented 2010-03-03 20:15:18 $TimeCompare = 1267643718; // Requests v2 was implemented 2010-03-03 20:15:18
$Requests = Requests::get_requests(array_keys($SphRequests)); $Requests = Requests::get_requests(array_keys($SphRequests));
foreach ($SphRequests as $RequestID => $SphRequest) { foreach ($SphRequests as $RequestID => $SphRequest) {
@ -590,7 +593,7 @@
} elseif ($CategoryName === 'Audiobooks' || $CategoryName === 'Comedy') { } elseif ($CategoryName === 'Audiobooks' || $CategoryName === 'Comedy') {
$FullName = "<a href=\"requests.php?action=view&amp;id=$RequestID\">$Request[Title] [$Request[Year]]</a>"; $FullName = "<a href=\"requests.php?action=view&amp;id=$RequestID\">$Request[Title] [$Request[Year]]</a>";
} else { } else {
$FullName ="<a href=\"requests.php?action=view&amp;id=$RequestID\">$Request[Title]</a>"; $FullName = "<a href=\"requests.php?action=view&amp;id=$RequestID\">$Request[Title]</a>";
} }
$Tags = $Request['Tags']; $Tags = $Request['Tags'];
?> ?>
@ -617,9 +620,9 @@
<td class="number_column nobr"> <td class="number_column nobr">
<?=Format::get_size($Bounty)?> <?=Format::get_size($Bounty)?>
</td> </td>
<td> <td class="nobr">
<? if ($IsFilled) { ?> <? if ($IsFilled) { ?>
<a href="torrents.php?<?=(strtotime($Request['TimeFilled']) < $TimeCompare ? 'id=' : 'torrentid=') . $Request['TorrentID']?>"><strong><?=time_diff($Request['TimeFilled'])?></strong></a> <a href="torrents.php?<?=(strtotime($Request['TimeFilled']) < $TimeCompare ? 'id=' : 'torrentid=') . $Request['TorrentID']?>"><strong><?=time_diff($Request['TimeFilled'], 1)?></strong></a>
<? } else { ?> <? } else { ?>
<strong>No</strong> <strong>No</strong>
<? } ?> <? } ?>
@ -634,16 +637,17 @@
<td> <td>
<a href="user.php?id=<?=$Request['UserID']?>"><?=Users::format_username($Request['UserID'], false, false, false)?></a> <a href="user.php?id=<?=$Request['UserID']?>"><?=Users::format_username($Request['UserID'], false, false, false)?></a>
</td> </td>
<td> <td class="nobr">
<?=time_diff($Request['TimeAdded'])?> <?=time_diff($Request['TimeAdded'], 1)?>
</td> </td>
<td> <td class="nobr">
<?=time_diff($Request['LastVote'])?> <?=time_diff($Request['LastVote'], 1)?>
</td> </td>
</tr> </tr>
<? <?
} // foreach } // foreach
} // else } // else
} // if ($BookmarkView && $NumResults < 1)
?> ?>
</table> </table>
<? if (isset($PageLinks)) { ?> <? if (isset($PageLinks)) { ?>

View File

@ -5,10 +5,10 @@
//$Limit = in_array($Limit, array(100, 250, 500)) ? $Limit : 100; //$Limit = in_array($Limit, array(100, 250, 500)) ? $Limit : 100;
$Category = isset($_GET['category']) ? ($_GET['category']) : 'weekly'; $Category = isset($_GET['category']) ? $_GET['category'] : 'weekly';
$Category = in_array($Category, array('all_time', 'weekly', 'hyped')) ? $Category : 'weekly'; $Category = in_array($Category, array('all_time', 'weekly', 'hyped')) ? $Category : 'weekly';
$View = isset($_GET['view']) ? ($_GET['view']) : 'tiles'; $View = isset($_GET['view']) ? $_GET['view'] : 'tiles';
$View = in_array($View, array('tiles', 'list')) ? $View : 'tiles'; $View = in_array($View, array('tiles', 'list')) ? $View : 'tiles';
switch ($Category) { switch ($Category) {
@ -35,18 +35,20 @@
<div class="tiles_container"> <div class="tiles_container">
<ul class="tiles"> <ul class="tiles">
<? <?
foreach ($Artists as $Artist) { foreach ($Artists as $Artist) {
Top10View::render_artist_tile($Artist, $Category); Top10View::render_artist_tile($Artist, $Category);
} ?> }
?>
</ul> </ul>
</div> </div>
<? } else { ?> <? } else { ?>
<div class="list_container"> <div class="list_container">
<ul class="top_artist_list"> <ul class="top_artist_list">
<? <?
foreach ($Artists as $Artist) { foreach ($Artists as $Artist) {
Top10View::render_artist_list($Artist, $Category); Top10View::render_artist_list($Artist, $Category);
} ?> }
?>
</ul> </ul>
</div> </div>
<? } ?> <? } ?>

View File

@ -937,7 +937,7 @@ function check_paranoia_here($Setting) {
<div class="box"> <div class="box">
<div class="head">Forum warnings</div> <div class="head">Forum warnings</div>
<div class="pad"> <div class="pad">
<div id="forumwarningslinks" class="AdminComment box" style="width: 98%;"><?=$Text->full_format($ForumWarnings)?></div> <div id="forumwarningslinks" class="AdminComment" style="width: 98%;"><?=$Text->full_format($ForumWarnings)?></div>
</div> </div>
</div> </div>
<? <?
@ -957,7 +957,7 @@ function check_paranoia_here($Setting) {
</div> </div>
<div id="staffnotes" class="pad"> <div id="staffnotes" class="pad">
<input type="hidden" name="comment_hash" value="<?=$CommentHash?>" /> <input type="hidden" name="comment_hash" value="<?=$CommentHash?>" />
<div id="admincommentlinks" class="AdminComment box" style="width: 98%;"><?=$Text->full_format($AdminComment)?></div> <div id="admincommentlinks" class="AdminComment" style="width: 98%;"><?=$Text->full_format($AdminComment)?></div>
<textarea id="admincomment" onkeyup="resize('admincomment');" class="AdminComment hidden" name="AdminComment" cols="65" rows="26" style="width: 98%;"><?=display_str($AdminComment)?></textarea> <textarea id="admincomment" onkeyup="resize('admincomment');" class="AdminComment hidden" name="AdminComment" cols="65" rows="26" style="width: 98%;"><?=display_str($AdminComment)?></textarea>
<a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Toggle edit</a> <a href="#" name="admincommentbutton" onclick="ChangeTo('text'); return false;" class="brackets">Toggle edit</a>
<script type="text/javascript"> <script type="text/javascript">

View File

@ -14,7 +14,7 @@ function Cancel() {
var e=document.getElementsByTagName("input"); var e=document.getElementsByTagName("input");
for (i = 0; i < e.length; i++) { for (i = 0; i < e.length; i++) {
if (e[i].type == "checkbox") { if (e[i].type == "checkbox") {
e[i].checked=false; e[i].checked = false;
} }
} }
document.getElementById("choices").raw().value = ""; document.getElementById("choices").raw().value = "";
@ -46,13 +46,13 @@ var collageShow = {
createUL:function(data) { createUL:function(data) {
var ul = document.createElement('ul'); var ul = document.createElement('ul');
$(ul).add_class('collage_images'); $(ul).add_class('collage_images');
ul.id = 'collage_page'+this.pg; ul.id = 'collage_page' + this.pg;
$(ul).html(data); $(ul).html(data);
this.wrap.appendChild(ul); this.wrap.appendChild(ul);
return ul; return ul;
}, },
page:function(num,el) { page:function(num, el) {
var ul = $('#collage_page'+num).raw(), s = this.selected(), covers, lists, i; var ul = $('#collage_page' + num).raw(), s = this.selected(), covers, lists, i;
this.pg = num; this.pg = num;
if (!ul) { if (!ul) {
@ -127,6 +127,6 @@ var collageShow = {
this.pager(); this.pager();
}, },
pager:function() { pager:function() {
this.page(this.pg,$('#pagelink'+this.pg).raw().firstChild); this.page(this.pg, $('#pagelink' + this.pg).raw().firstChild);
} }
}; };

View File

@ -1,7 +1,7 @@
var tooltip_delay = 500; var tooltip_delay = 500;
$(document).ready(function() { $(document).ready(function() {
if (!$.fn.tooltipster) { if (!$.fn.tooltipster) {
$('.tooltip_interactive, .tooltip, .tooltip_gold').each(function() { $('.tooltip_interactive, .tooltip_image, .tooltip, .tooltip_gold').each(function() {
if ($(this).data('title-plain')) { if ($(this).data('title-plain')) {
$(this).attr('title', $(this).data('title-plain')); $(this).attr('title', $(this).data('title-plain'));
} }

View File

@ -394,7 +394,7 @@ p.min_padding {
padding: 4px; padding: 4px;
background: #b78234 url(images/woodnavcenter.png) repeat-x; background: #b78234 url(images/woodnavcenter.png) repeat-x;
border-bottom: 1px solid #65430F; border-bottom: 1px solid #65430F;
font-weight:bold; font-weight: bold;
} }
.body { .body {
@ -858,6 +858,24 @@ div[class~=tooltipster-content] > a {
font-weight: normal; font-weight: normal;
} }
.reportsv2_views_table { /* get rid of extraneous padding in the Top Contributors box */
width: 100%; #request_top_contrib {
border: none;
}
#request_top_contrib tr:first-child th {
border-top: 0;
}
#request_top_contrib tr:last-child td {
border-bottom: 0;
}
#request_top_contrib tr td:first-child,
#request_top_contrib tr th:first-child,
#request_top_contrib tr td:nth-child(2),
#request_top_contrib tr th:nth-child(2) {
border-left: 0;
border-top: 0;
}
#request_top_contrib tr td:last-child,
#request_top_contrib tr th:last-child {
border-right: 0;
} }

View File

@ -620,16 +620,6 @@ tr.torrent .bookmark>a:after {
font-weight: bolder; font-weight: bolder;
} }
.reportsv2_views_table {
width: 70%;
}
.reportsv2_views_container {
margin-left: auto;
margin-right: auto;
padding: 10px 20px 20px 20px;
}
.noborder { .noborder {
border: none; border: none;
} }

View File

@ -929,7 +929,3 @@ tr.torrent .bookmark > a:after { color:#999; }
.vote_tag_down, .vote_artist_down, .vote_album_down, .small_downvote, .small_downvoted { .vote_tag_down, .vote_artist_down, .vote_album_down, .small_downvote, .small_downvoted {
color: red; color: red;
} }
.reportsv2_views_table {
width: 100%;
}

View File

@ -332,6 +332,11 @@ input.hidden {
margin: 0px auto; margin: 0px auto;
} }
.widethin { /* overriding the thin class on torrents.php */
width: 95% !important;
margin: 0px auto;
}
#userinfo_major .brackets:before { #userinfo_major .brackets:before {
font-weight: bold; font-weight: bold;
} }
@ -442,7 +447,6 @@ table {
} }
tr { tr {
border: 1px solid #666666;
background-color: #EEE; background-color: #EEE;
} }
@ -795,6 +799,10 @@ tr.torrent .bookmark > a:after {
width: 600px; width: 600px;
} }
.brackets {
font-weight: normal;
}
div[class~=tooltipster-content] > a { div[class~=tooltipster-content] > a {
color: #AAAAAA; color: #AAAAAA;
} }
@ -811,6 +819,24 @@ div[class~=tooltipster-content] > a {
color: red; color: red;
} }
.reportsv2_views_table { /* get rid of extraneous padding in the Top Contributors box */
width: 100%; #request_top_contrib {
border: none;
}
#request_top_contrib tr:first-child th {
border-top: 0;
}
#request_top_contrib tr:last-child td {
border-bottom: 0;
}
#request_top_contrib tr td:first-child,
#request_top_contrib tr th:first-child,
#request_top_contrib tr td:nth-child(2),
#request_top_contrib tr th:nth-child(2) {
border-left: 0;
border-top: 0;
}
#request_top_contrib tr td:last-child,
#request_top_contrib tr th:last-child {
border-right: 0;
} }

View File

@ -580,7 +580,3 @@ tr.torrent .bookmark > a:after { content: ""; }
.permission_container:first-child { .permission_container:first-child {
margin-left: 0; margin-left: 0;
} }
.reportsv2_views_container {
width: 100%;
}

View File

@ -1504,7 +1504,3 @@ ul.collage_images {
.top10_quantity_links .brackets:after { .top10_quantity_links .brackets:after {
color: #F1F1F1; color: #F1F1F1;
} }
.reportsv2_views_container {
width: 100%;
}

View File

@ -1107,11 +1107,3 @@ div[class~=tooltipster-content] > a {
.vote_tag_down, .vote_artist_down, .vote_album_down, .small_downvote, .small_downvoted { .vote_tag_down, .vote_artist_down, .vote_album_down, .small_downvote, .small_downvoted {
color: red; color: red;
} }
.reportsv2_views_table {
width: 100%;
}
.reportsv2_views_container {
width: 100%;
}

View File

@ -2066,10 +2066,6 @@ div[class~=tooltipster-base] {
color: #575757; color: #575757;
} }
.reportsv2_views_table {
width: 90%;
}
/* /*
Consistent .box and .pad Consistent .box and .pad
TODO: Make these rules apply globally and add exceptions where needed TODO: Make these rules apply globally and add exceptions where needed