diff --git a/mod/directory.php b/mod/directory.php index 7f9283ba4..d9316ef67 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -192,6 +192,8 @@ function directory_content(&$a) { if($rr['total_ratings']) $total_ratings = sprintf( tt("%d rating", "%d ratings", $rr['total_ratings']), $rr['total_ratings']); + else + $total_ratings = ''; $profile = $rr; diff --git a/mod/dirsearch.php b/mod/dirsearch.php index fcd72e9eb..69b7e2eac 100644 --- a/mod/dirsearch.php +++ b/mod/dirsearch.php @@ -21,15 +21,6 @@ function dirsearch_content(&$a) { json_return_and_die($ret); } - - // If you've got a public directory server, you probably shouldn't block public access - - if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) { - $ret['message'] = 'permission denied'; - json_return_and_die($ret); - } - - if(argc() > 1 && argv(1) === 'sites') { $ret = list_public_sites(); json_return_and_die($ret); diff --git a/mod/ratingsearch.php b/mod/ratingsearch.php index 558b459eb..9a537bf97 100644 --- a/mod/ratingsearch.php +++ b/mod/ratingsearch.php @@ -12,12 +12,6 @@ function ratingsearch_init(&$a) { json_return_and_die($ret); } - if((get_config('system','block_public')) && (! local_channel()) && (! remote_channel())) { - $ret['message'] = 'permission denied'; - json_return_and_die($ret); - } - - if(argc() > 1) $hash = argv(1); diff --git a/view/css/mod_directory.css b/view/css/mod_directory.css index 20facbaf8..b156e322a 100644 --- a/view/css/mod_directory.css +++ b/view/css/mod_directory.css @@ -3,8 +3,15 @@ clear: both; } .directory-name { - text-align: center; +/* text-align: center; */ + float: left; + width: 250px; } +.directory-rating { + float: right; + margin-right: 20px; +} + .directory-photo { margin-left: 25px; } diff --git a/view/css/mod_ratings.css b/view/css/mod_ratings.css index bb29086da..86d6f5ed3 100644 --- a/view/css/mod_ratings.css +++ b/view/css/mod_ratings.css @@ -9,4 +9,8 @@ .directory-item { margin: 10px; +} + +.rating-value { + margin-top: 10px; } \ No newline at end of file diff --git a/view/tpl/direntry.tpl b/view/tpl/direntry.tpl index 450bddd95..1761ed12d 100755 --- a/view/tpl/direntry.tpl +++ b/view/tpl/direntry.tpl @@ -16,16 +16,9 @@
{{$entry.name}}{{if $entry.online}} {{/if}}
{{*if $entry.rateme*}} -
{{if $entry.total_ratings}} -{{$entry.total_ratings}}{{/if}}
-
- +
{{if $entry.total_ratings}}{{/if}} +
-
-
- {{*/if*}} {{if $entry.public_forum}}
diff --git a/view/tpl/prep.tpl b/view/tpl/prep.tpl index 49dea7d72..924bea252 100644 --- a/view/tpl/prep.tpl +++ b/view/tpl/prep.tpl @@ -12,9 +12,10 @@
{{$r.xchan_name}}
-{{$rating_lbl}} {{$r.xlink_rating}} +
{{$rating_lbl}} {{$r.xlink_rating}}
{{if $r.xlink_rating_text}} -{{$rating_text_label}} {{$r.xlink_rating_text}} +
{{$rating_text_label}} {{$r.xlink_rating_text}} +
{{/if}}