limit tag browsing mode to top50 most popular

This commit is contained in:
Andrew Dolgov 2007-08-10 05:12:29 +01:00
parent 2bc2147f2e
commit ef1ac7c73a
2 changed files with 5 additions and 3 deletions

View File

@ -1913,7 +1913,8 @@
$result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id) $result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id)
FROM ttrss_user_entries WHERE int_id = post_int_id FROM ttrss_user_entries WHERE int_id = post_int_id
AND unread = true)) AS count FROM ttrss_tags 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(); $tags = array();
@ -3474,7 +3475,8 @@
$result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id) $result = db_query($link, "SELECT tag_name,SUM((SELECT COUNT(int_id)
FROM ttrss_user_entries WHERE int_id = post_int_id FROM ttrss_user_entries WHERE int_id = post_int_id
AND unread = true)) AS count FROM ttrss_tags 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(); $tags = array();

View File

@ -424,7 +424,7 @@
print "<div class=\"infoBoxContents\">"; print "<div class=\"infoBoxContents\">";
print __("Showing most popular tags ")." (<a print __("Showing most popular tags ")." (<a
href='javascript:toggleTags(true)'>".__('browse all')."</a>):<br/>"; href='javascript:toggleTags(true)'>".__('browse more')."</a>):<br/>";
print "<div class=\"tagCloudContainer\">"; print "<div class=\"tagCloudContainer\">";