Loading...
 
Features / Usability

Features / Usability


Article Ratings are not showing up

posts: 3

I am having an issue in my 12.3 LTS installation where I cannot view any rating information for an article. I intend to use articles with ratings within my wiki page, since I cannot seem to find a way to rate portions of a wiki page.

I went to the 12x demo wiki and set up Articles and Rating as I have them on my wiki. I set the permissions for everybody to view and rate the test article I posted (sample article), but I do not see the rating as described on the User Ratings in Articles section of the doc.t.o.

Here's a screenshot of what I see on demo.t.o:
Demo 12x Article Rating

Is this a bug that should go to dev.t.o, or am I simply missing a setting?

Thank you for your time,

Sterling

posts: 3

Yes, Can Rate Article is enabled. Below are screenshots of the demo site settings. If there is a different area to specify an Article type that I'm missing, I would appreciate the guidance.

Demo 12x Article Settings  

Demo 12x Article Permissions  

Demo 12x Tiki Permissions2  

Since the demo site only allows Admin, I would expect Admin to be able to see the ratings for an article. There are no issues with Admin being able to see the ratings on a wiki page.

Thanks for the assistance,

Sterling

posts: 1817 Catalan Countries

Hi Sterling,

 

AS already pointed out by Rick, you might be missing to set up the option in the article type ( tiki-article_types.php ) that you are using.

 

If you visit the admin panel for ratings:   http://demo.tiki.org/12x/tiki-admin.php?page=rating

you will see that indicated there:

 

Articles

User ratings on articles: 

 

*You also need to set: "Admin Types > Comment can rate article"


Permissions involved:

  • articles > rate_article
  • tiki > ratings_view_results


 

 


posts: 3

Xavi and Rick,

Primary question: Do the article ratings rate the author of the article or the article itself?

My intention is to use the article rating system to rate the success of a procedure when our telephone support staff is troubleshooting issues with customers via email or over the phone. I was hoping to embed the article within relevant wiki pages so we can get a much clearer view of what the common support inquiries are and provide better documentation for our customers by rating the usefulness of the article.

I was just playing in the refreshed 12x demo and setup the following options. I created an Article and commented on the article with these settings. The stars show up for the article when the author sets the rating, but comments are not provided an option to rate the article. 

These are set as active/enabled in Permissions (global).

  • articles > rate_article
  • comments > post_comments
  • comments > read_comments
  • comments > edit_comments
  • comments > vote_comments
  • wiki > wiki_admin_ratings
  • wiki > wiki_view_ratings
  • wiki > wiki_vote_ratings
  • tiki > ratings_view_results

I have set Articles > Admin Types > Comment can rate article to be true.Within the Ratings area of Admin Home, the following options have the boxes checked:Wiki: 

  • Rating
  • Simple wiki ratings (with values 0,1,2,3,4,5)

Articles:

  • User ratings on articles (with values 0,1,2,3,4,5)

Comments:

  • Use vote system for comments
  • Simple wiki comment ratings (with values 0,1,2,3,4,5)

Trackers:

  • Rating

User Interface:

  • Detailed Rating Results
    • Include percentages in the detailed rating results
  • Smiley Ratings

And, finally:

  • Advanced Rating

As the author of the article, I was able to provide a rating. As a commenter, I was not able to add a rating.

However, I did notice a lengthy list of PHP Errors. Unfortunately, my PHP skills are poor, and I'm unsure where to start when diving into the cause of any of them.

PHP (5.4.34-nmm1) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 3922
Type: unserialize(): Error at offset 0 of 11 bytes

PHP (5.4.34-nmm1) ERROR (E_WARNING):
File: lib/rating/ratinglib.php
Line: 316
Type: ksort() expects parameter 1 to be array, boolean given

PHP (5.4.34-nmm1) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 3922
Type: unserialize(): Error at offset 0 of 11 bytes

PHP (5.4.34-nmm1) ERROR (E_WARNING):
File: lib/rating/ratinglib.php
Line: 318
Type: ksort() expects parameter 1 to be array, boolean given

PHP (5.4.34-nmm1) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 3922
Type: unserialize(): Error at offset 0 of 11 bytes

PHP (5.4.34-nmm1) ERROR (E_WARNING):
File: lib/smarty_tiki/function.rating_result_avg.php
Line: 48
Type: max(): When only one parameter is given, it must be an array

PHP (5.4.34-nmm1) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 3922
Type: unserialize(): Error at offset 0 of 11 bytes

PHP (5.4.34-nmm1) ERROR (E_WARNING):
File: lib/rating/ratinglib.php
Line: 316
Type: ksort() expects parameter 1 to be array, boolean given

PHP (5.4.34-nmm1) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 3922
Type: unserialize(): Error at offset 0 of 11 bytes

PHP (5.4.34-nmm1) ERROR (E_WARNING):
File: lib/rating/ratinglib.php
Line: 318
Type: ksort() expects parameter 1 to be array, boolean given

PHP (5.4.34-nmm1) NOTICE (E_NOTICE):
File: lib/tikilib.php
Line: 3922
Type: unserialize(): Error at offset 0 of 11 bytes

PHP (5.4.34-nmm1) ERROR (E_WARNING):
File: lib/rating/ratinglib.php
Line: 479
Type: Invalid argument supplied for foreach()

PHP (5.4.34-nmm1) NOTICE (E_NOTICE):
File: lib/rating/ratinglib.php
Line: 486
Type: Undefined offset: 1

posts: 3665 United States

A few things...

First: I think you may be confusing some of Tiki's features. You mention wanting to rate "articles" but in your posts you mention configuring Wiki rating and Comment ratings. You also talk about embedding an article in a (wiki) page — which would you want to rate, the overall page or just the article wihin the page?  If you're still in the planning stages of your project, now's the time to make sure you're doing what you actually want to be doing.

Second: For articles, there are two types of ratings... one where  the author assigns a rating to the article (for example, if you're writing a movie review and youwant to give the article "4 stars." The rating is static and cannot be changed. The other type of rating (which I think is what you want) is one in which the readers can review/vote on the article. Here, the rating is dynamic and may change over time as more and more people rate the content (similar to Yelp.)

Finally (and most importantly) it appears that the Article rating is broken in Tiki 12.x (see the bug report: http://dev.tiki.org/item5275). You might try testing the latest development build to see if has been fixed (though there's no update in the bug, so I wouldn't hold my breath. You could also contact the bug filer to see if there's a patch or fix he's working on.

A workaround would be to simply create a Tiki poll (or even a tracker if you want to be a bit facier), and then embed the poll to the article/page. This is the "old" way to rate pages and doesn't have all the bells  & whistles of the current rating system, but it should work.

Alternatively, you could try using one of the newer Tiki versions (13.x or the upcoming 14.0) to see if the bug was fixed.

HTH,

- Rick  |  My Tiki Blog |  My Tiki UserPage

Why be a dummy? Get smarty! TikiForSmarties.com
Tiki for Smarties, your source for the best (and only) Tiki books, guides, and tutorials.