8 years ago
5
Topic

Hi,

I am working on making a Comments System for my custom Content Type I've made using SEBLOD. The content type is nothing complex, just some fields like the Article Title, a description, category, and a Field-X for Image Gallery.

To include the commenting system, I have followed this guide "https://www.seblod.com/community/forums/general-discussions/a-tutorial-for-comments-system" and I've successfully added the commenting system, however, I also need to include a 'star rating' functionality that will allow the guests that are posting comments to rate the article.

I also understand that we can achieve this by using Radio Fields, but I am not completely clear on that so I would appreciate some help. The biggest challenge is to have the radio fields appear as user-friendly 'stars' as can be seen on any number of websites. This is very important.

EDIT: I'd really love to show a message if there are no comments published, such as 'Be the first to comment', instead of the standard SEBLOD/Joomla system message displayed at the top of the page.

I would really appreciate all help, thank you. :)

Get a Book for SEBLOD
97 Posts
Anjo
8 years ago
1
Level 1

Hi ValarMorghulis,

Have a look at this tutorial.

http://www.seblod.com/resources/tutorials/add-star-rating-to-comments-app

Anjo

8 years ago
0
Level 2

Hey Anjo,

Thanks for your help, the tutorial link you gave helped me a lot.

It didn't explain how to have the radio buttons display as stars, so I looked around and found a guide that shows you how to convert radio links into stars - http://everythingfrontend.com/posts/star-rating-input-pure-css.html

Also, I notice that to display the average rating for an article, I'd need to use the SQL pack of plugins, which is a paid extension. I was hoping there was a free way to do this? I'll buy the plugin if I absolutely need to, but if there's a way I can do it without the plugin, I'll definitely welcome it, even if it involves working with code.

Thanks in advance,

Valar Morghulis

97 Posts
Anjo
8 years ago
0
Level 1

Hi Morghulis,

It should be possible to get average rating without plugin but I don't know how to as my knowledge of coding is very limited. You could create your own plugin with http://www.seblod.com/products/8 . Sorry I can't help you further.

Anjo

8 years ago
0
Level 1

Hi Anjo,

Thanks for your help and sorry for the delay in my response. It was finally decided that an aggregation of ratings was not needed and separate ratings for each comment would suffice. Therefore, I did not need to buy/develop the SQL Query plugin.

I'll mark this as solved.

Valar Morghulis

7 years ago
0
Level 1

See this tutorial, it must be very helpfull of what you have to configure

https://vimeo.com/117565484

Get a VIP membership