diff --git a/wire/modules/Fieldtype/FieldtypeComments/InputfieldCommentsAdmin.module b/wire/modules/Fieldtype/FieldtypeComments/InputfieldCommentsAdmin.module index 87ccff9d..09219c65 100644 --- a/wire/modules/Fieldtype/FieldtypeComments/InputfieldCommentsAdmin.module +++ b/wire/modules/Fieldtype/FieldtypeComments/InputfieldCommentsAdmin.module @@ -123,6 +123,16 @@ class InputfieldCommentsAdmin extends Inputfield implements InputfieldItemList { wireRelativeTimeStr($comment->created), $cite ); + + if($this->hasField && $this->hasField->useStars) { + $starsInput = + "

" . + "" . + "" . + "

"; + } else { + $starsInput = ''; + } $f->value = "
" . @@ -147,10 +157,7 @@ class InputfieldCommentsAdmin extends Inputfield implements InputfieldItemList { "" . "" . "

" . - "

" . - "" . - "" . - "

" . + $starsInput . "
" . "

" . "" . @@ -195,13 +202,14 @@ class InputfieldCommentsAdmin extends Inputfield implements InputfieldItemList { 'cite', 'email', 'website', - 'stars', 'status', 'delete', 'parent_id', 'text', 'sort', ); + + if($this->hasField && $this->hasField->useStars) $names[] = 'stars'; foreach($this->value as $comment) {