diff --git a/classes/tags.class.php b/classes/tags.class.php index b25ba072..9e6b1fef 100644 --- a/classes/tags.class.php +++ b/classes/tags.class.php @@ -81,7 +81,7 @@ public function get_primary() { * @param string $Primary */ public function set_primary($Primary) { - $this->Primary = (string) $Primary; + $this->Primary = (string)$Primary; } /** diff --git a/classes/top10view.class.php b/classes/top10view.class.php index fe96875b..c05f36b0 100644 --- a/classes/top10view.class.php +++ b/classes/top10view.class.php @@ -36,7 +36,7 @@ public static function render_artist_controls($Selected, $View) { private static function get_selected_link($String, $Selected) { if ($Selected) { - return "" . $String . ""; + return "$String"; } else { return $String; } @@ -87,11 +87,11 @@ private static function render_list($Url, $Name, $Image) { if (!empty($Image)) { $UseTooltipster = !isset(G::$LoggedUser['Tooltipster']) || G::$LoggedUser['Tooltipster']; $Image = ImageTools::process($Image); - $Title = "title=\"<img class="large_tile" src="$Image" alt="" />\""; + $Title = "title=\"<img class="large_tile" src="$Image" alt="" />\""; $Name = display_str($Name); ?>
  • - href=""> + href="">


  • - 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://) 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 () 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.
  • Up: - +
  • Down: - +
  • Ratio: @@ -242,7 +242,7 @@
  • Required: - +
  • 0) { ?> diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index de0bbba2..64f0c6e6 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -1,5 +1,20 @@ 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 Second avatars and donor icons will now be automatically reset by the image proxy if they are too large diff --git a/sections/blog/index.php b/sections/blog/index.php index 74ca8485..200fd426 100644 --- a/sections/blog/index.php +++ b/sections/blog/index.php @@ -109,29 +109,29 @@ ?>
    - +
    - + - + - +

    Title

    - />
    + />

    Body

    -
    +

    Thread ID

    - /> + /> (Leave blank to create thread automatically)

    - tabindex="2" /> + tabindex="2" />
    - +
    @@ -173,27 +173,28 @@ foreach ($Blog as $BlogItem) { list($BlogID, $Author, $Title, $Body, $BlogTime, $ThreadID) = $BlogItem; ?> -
    -
    - - posted by - - - Edit - Delete - -
    -
    +
    +
    + - posted by + + - Edit + Delete + +
    +
    full_format($Body)?> - -

    - Discuss this post here - - Remove link + +

    + Discuss this post here + + Remove link -
    -
    -
    + } + } +?> +
    +
    +
    diff --git a/sections/bookmarks/artists.php b/sections/bookmarks/artists.php index 3c40e1f5..b762e532 100644 --- a/sections/bookmarks/artists.php +++ b/sections/bookmarks/artists.php @@ -5,7 +5,7 @@ error(403); } $UserID = $_GET['userid']; - $Sneaky = ($UserID !== $LoggedUser['ID']); + $Sneaky = $UserID !== $LoggedUser['ID']; if (!is_number($UserID)) { error(404); } @@ -18,7 +18,7 @@ $UserID = $LoggedUser['ID']; } -$Sneaky = ($UserID !== $LoggedUser['ID']); +$Sneaky = $UserID !== $LoggedUser['ID']; //$ArtistList = Bookmarks::all_bookmarks('artist', $UserID); @@ -31,7 +31,7 @@ $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'); @@ -48,7 +48,7 @@
    -

    You have not bookmarked any artists.

    +

    You have not bookmarked any artists.

    - + [ DL @@ -223,11 +223,12 @@ function compare($X, $Y) { $DisplayName = "$DisplayName [$GroupYear]"; } $Tags = display_str($TorrentTags->format()); + $PlainTags = implode(', ', $TorrentTags->get_tags()); ?>
  • - <?=$DisplayName?> + <?=$DisplayName?>" width="118" />
    @@ -280,13 +281,11 @@ function compare($X, $Y) {
    Stats
    • Torrents:
    • - 0) { ?>
    • Artists:
    • -
    -
    Top tags
    +
    Top Tags
      @@ -294,23 +293,30 @@ function compare($X, $Y) {
    @@ -324,16 +330,17 @@ function compare($X, $Y) { $Page1 = array_slice($Collage, 0, $CollageCovers); foreach ($Page1 as $Group) { echo $Group; -} ?> + } +?> - $CollageCovers) { ?> + $CollageCovers) { ?> - + @@ -293,7 +297,8 @@ + } +?> @@ -331,7 +336,8 @@ +} +?>
    Category
    diff --git a/sections/collages/torrent_collage.php b/sections/collages/torrent_collage.php index 322b8877..5c728606 100644 --- a/sections/collages/torrent_collage.php +++ b/sections/collages/torrent_collage.php @@ -235,11 +235,12 @@ $DisplayName = "$DisplayName [$GroupYear]"; } $Tags = display_str($TorrentTags->format()); + $PlainTags = implode(', ', $TorrentTags->get_tags()); ?>
  • - <?=$DisplayName?> + <?=$DisplayName?>" width="118" /> @@ -254,7 +255,7 @@ } // 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(); // Pad it out @@ -264,7 +265,6 @@ } } - for ($i = 0; $i < $NumGroups / $CollageCovers; $i++) { $Groups = array_slice($Collage, $i * $CollageCovers, $CollageCovers); $CollagePage = ''; @@ -324,7 +324,7 @@
    Top Contributors
    - +
    - - - - - -
    Description
    -full_format($Request['Description']);?> -
    +
    +
    Description
    +
    +full_format($Request['Description']);?> +
    +
    -
    - + query(); -$NumResults = $SphQLResult->get_meta('total_found'); +$NumResults = (int)$SphQLResult->get_meta('total_found'); if ($NumResults > 0) { $SphRequests = $SphQLResult->to_array('id'); if ($OrderBy === 'random') { @@ -355,17 +355,22 @@ Requests
    + +
    +

    You have not bookmarked any requests.

    +
    +
    - + - + - + - + - + @@ -387,7 +392,7 @@ checked="checked" /> - + - +
    Search terms:
    Include old: @@ -401,29 +406,27 @@
    $CatName) { - if ($x % 8 === 0 || $x === 1) { + $x = 1; + reset($Categories); + foreach ($Categories as $CatKey => $CatName) { + if ($x % 8 === 0 || $x === 1) { ?> - + - +
    checked="checked" />
    @@ -432,18 +435,18 @@ @@ -455,17 +458,15 @@ /> $Val) { - if ($Key % 8 === 0) { - echo '
    '; - } + foreach ($Formats as $Key => $Val) { + if ($Key % 8 === 0) { + echo '
    '; + } ?> /> - + @@ -476,16 +477,16 @@ /> $Val) { - if ($Key % 8 === 0) { - echo '
    '; - } + foreach ($Bitrates as $Key => $Val) { + if ($Key % 8 === 0) { + echo '
    '; + } ?> /> @@ -497,17 +498,15 @@ /> $Val) { - if ($Key % 8 === 0) { - echo '
    '; - } + foreach ($Media as $Key => $Val) { + if ($Key % 8 === 0) { + echo '
    '; + } ?> /> - + @@ -517,12 +516,11 @@
    /> $Val) { - if ($i % 8 === 0) { - echo '
    '; - } + $i = 0; + foreach ($ReleaseTypes as $Key => $Val) { + if ($i % 8 === 0) { + echo '
    '; + } ?> />
    - - + - + - + - + - $SphRequest) { @@ -590,7 +593,7 @@ } elseif ($CategoryName === 'Audiobooks' || $CategoryName === 'Comedy') { $FullName = "$Request[Title] [$Request[Year]]"; } else { - $FullName ="$Request[Title]"; + $FullName = "$Request[Title]"; } $Tags = $Request['Tags']; ?> @@ -617,9 +620,9 @@ - - -
    @@ -550,19 +548,24 @@ Last vote
    Nothing found!
    The requested page contains no matches!
    + - + No @@ -634,16 +637,17 @@ - + + - + +
    diff --git a/sections/top10/lastfm.php b/sections/top10/lastfm.php index 851b9ffa..dd194711 100644 --- a/sections/top10/lastfm.php +++ b/sections/top10/lastfm.php @@ -5,10 +5,10 @@ //$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'; -$View = isset($_GET['view']) ? ($_GET['view']) : 'tiles'; +$View = isset($_GET['view']) ? $_GET['view'] : 'tiles'; $View = in_array($View, array('tiles', 'list')) ? $View : 'tiles'; switch ($Category) { @@ -35,18 +35,20 @@
      + foreach ($Artists as $Artist) { + Top10View::render_artist_tile($Artist, $Category); + } +?>
      + foreach ($Artists as $Artist) { + Top10View::render_artist_list($Artist, $Category); + } +?>
    diff --git a/sections/user/user.php b/sections/user/user.php index 694b75c2..36f716f2 100644 --- a/sections/user/user.php +++ b/sections/user/user.php @@ -937,7 +937,7 @@ function check_paranoia_here($Setting) {
    Forum warnings
    - +
    - + Toggle edit