Skip to Content Skip to Menu

🕒 Save Time and Effort with CB Editor Assistant: Effortlessly create and refine content in Joomla 3, 4, & 5.
🎁 Limited Offer: Enjoy a 5-day FREE trial and save up to 30% afterward!

CB Rating field - display amount or total num?

11 years 4 months ago #233493 by pepperstreet
Just checked it out for the first time. AFAIK, the field loggs certain infos. The help tooltip says: IP, userID, date, time.

I wonder if it is possible to retrieve and show the total votes?!

It could be useful to display the number in frontend. It might also allow a usage as "Like it" button with only "1 Star".

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48691
  • Thanks: 8316
  • Karma: 1446
11 years 4 months ago #233515 by krileon
You can use the CB Query Field to pull whatever data you like from its database table. It uses the total for the simple purpose of calculating total rating. To have 1 star I believe you can set "Number of Units:" to "1" for that.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: pepperstreet

Please Log in or Create an account to join the conversation.

11 years 4 months ago #233587 by pepperstreet
Replied by pepperstreet on topic CB Rating field - display amount or total num?
You mentioned a new core Rating/Points field. Does it already store or update the total numbers in a specific location? Or do I still have to query this information?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48691
  • Thanks: 8316
  • Karma: 1446
11 years 4 months ago - 11 years 4 months ago #233602 by krileon

You mentioned a new core Rating/Points field.

The new core fields will use a new database table to store their information.

Does it already store or update the total numbers in a specific location?

Yes, it currently stores ratings in _comprofiler_ratingfield_log.

Or do I still have to query this information?

You have to query this information. New rating field that'll be in CB 1.10.0 will probably have an option to display the total ratings.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
Last edit: 11 years 4 months ago by krileon.
The following user(s) said Thank You: pepperstreet

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum