summaryrefslogtreecommitdiffstats
path: root/templates/show_user_recommendations.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-17 08:41:21 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2006-12-17 08:41:21 +0000
commit7c661ba685287efd21512f9f0203641200bffed2 (patch)
treeb99371285778815b3faabbaae6b9e8d7bf3e19e1 /templates/show_user_recommendations.inc.php
parentce1a8672d4b2d78b8301527311a410af893c4943 (diff)
downloadampache-7c661ba685287efd21512f9f0203641200bffed2.tar.gz
ampache-7c661ba685287efd21512f9f0203641200bffed2.tar.bz2
ampache-7c661ba685287efd21512f9f0203641200bffed2.zip
* Added Recommendations based on matching ratings between users
* Integrated LastFM plugin (defaults to disabled still) * Fixed a view issue with the Admin Localplay Level preference * removed some old MPD pages that were not being usedwq
Diffstat (limited to 'templates/show_user_recommendations.inc.php')
-rw-r--r--templates/show_user_recommendations.inc.php60
1 files changed, 60 insertions, 0 deletions
diff --git a/templates/show_user_recommendations.inc.php b/templates/show_user_recommendations.inc.php
new file mode 100644
index 00000000..a89be09e
--- /dev/null
+++ b/templates/show_user_recommendations.inc.php
@@ -0,0 +1,60 @@
+<?php
+/*
+
+ Copyright (c) 2001 - 2006 Ampache.org
+ All rights reserved.
+
+ This program is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License v2
+ as published by the Free Software Foundation.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+*/
+?>
+<?php show_box_top($working_user->fullname . ' ' . _('Recommendations')); ?>
+<table class="tabledata">
+<tr>
+ <td valign="top">
+ <?php
+ if (count($recommended_artists)) {
+ $items = $working_user->format_recommendations($recommended_artists,'artist');
+ show_info_box(_('Recommended Aritsts'),'artist',$items);
+ }
+ else {
+ echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ }
+ ?>
+ </td>
+ <td valign="top">
+ <?php
+ if (count($recommended_albums)) {
+ $items = $working_user->format_recommendations($recommended_albums,'album');
+ show_info_box(_('Recommended Albums'),'album',$items);
+ }
+ else {
+ echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ }
+ ?>
+ </td>
+ <td valign="top">
+ <?php
+ if (count($recommended_songs)) {
+ $items = $working_user->format_recommendations($recommended_songs,'song');
+ show_info_box(_('Recommended Songs'),'song',$items);
+ }
+ else {
+ echo "<span class=\"error\">" . _('Not Enough Data') . "</span>";
+ }
+ ?>
+ </td>
+</tr>
+</table>
+<?php show_box_bottom(); ?>