From: Andrew Dolgov Date: Fri, 10 Aug 2007 04:12:29 +0000 (+0100) Subject: limit tag browsing mode to top50 most popular X-Git-Tag: 1.2.14~100 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ef1ac7c73aeaf34129f26d0bda39bea3fc55eeb3;p=tt-rss.git limit tag browsing mode to top50 most popular --- diff --git a/functions.php b/functions.php index 5fc20841..336a6d4b 100644 --- a/functions.php +++ b/functions.php @@ -1913,7 +1913,8 @@ $result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id) FROM ttrss_user_entries WHERE int_id = post_int_id AND unread = true)) AS count FROM ttrss_tags - WHERE owner_uid = ".$_SESSION['uid']." GROUP BY tag_name ORDER BY tag_name"); + WHERE owner_uid = ".$_SESSION['uid']." GROUP BY tag_name + ORDER BY count DESC LIMIT 55"); $tags = array(); @@ -3474,7 +3475,8 @@ $result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id) FROM ttrss_user_entries WHERE int_id = post_int_id AND unread = true)) AS count FROM ttrss_tags - WHERE owner_uid = ".$_SESSION['uid']." GROUP BY tag_name ORDER BY tag_name"); + WHERE owner_uid = ".$_SESSION['uid']." GROUP BY tag_name + ORDER BY count DESC LIMIT 50"); $tags = array(); diff --git a/modules/popup-dialog.php b/modules/popup-dialog.php index 562093d9..6590159d 100644 --- a/modules/popup-dialog.php +++ b/modules/popup-dialog.php @@ -424,7 +424,7 @@ print "
"; print __("Showing most popular tags ")." (".__('browse all')."):
"; + href='javascript:toggleTags(true)'>".__('browse more')."):
"; print "
";