diff --git a/mod/directory.php b/mod/directory.php index 21940d57b..7f9283ba4 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -190,6 +190,9 @@ function directory_content(&$a) { $page_type = ''; + if($rr['total_ratings']) + $total_ratings = sprintf( tt("%d rating", "%d ratings", $rr['total_ratings']), $rr['total_ratings']); + $profile = $rr; if ((x($profile,'locale') == 1) @@ -255,6 +258,7 @@ function directory_content(&$a) { 'nickname' => substr($rr['address'],0,strpos($rr['address'],'@')), 'location' => $location, 'gender' => $gender, + 'total_ratings' => $total_ratings, 'pdesc' => $pdesc, 'marital' => $marital, 'homepage' => $homepage, diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index 6ba86a085..450bddd95 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -15,9 +15,9 @@
{{$entry.name}}{{if $entry.online}} {{/if}}
-{{if $entry.rateme}} -
-62 ratings
+{{*if $entry.rateme*}} +
{{if $entry.total_ratings}} +{{$entry.total_ratings}}{{/if}}
@@ -26,7 +26,7 @@ -{{/if}} +{{*/if*}} {{if $entry.public_forum}}
{{$entry.forum_label}} @{{$entry.nickname}}+