Keyword

extra filed for rating

  • daniela de prisco
  • daniela de prisco's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #129640 by daniela de prisco
extra filed for rating was created by daniela de prisco
hi,
I use K2 in two websites.
I would like to allow the user to create an item and at the same time to vote, using the native rating of K2.

On my website users vote wines and I would like to allow users to enter a new wine, and at the same time vote for him.
how can I do?

I have to customize the "frontend add new item"

thanks
daniela

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129641 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: extra filed for rating
I do not think you need to customize the front end form,
Extrafield labels will cover you in that part.

You can set a number of options for your rating eg. a select box with values 1 to 5 and depending on that extrafield's value display the rating score.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • daniela de prisco
  • daniela de prisco's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #129642 by daniela de prisco
Replied by daniela de prisco on topic Re: extra filed for rating
Thanks for your response.
Sorry for my delay.
My requirement is to have a rating graph, for example with the stars or similar images.
During the insertion of the article, it should be possible to vote.
It is possible?
Daniela

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129643 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: extra filed for rating
Yes.

A value should be entered through an extrafield.
You can make it a select box so a user will not enter a non-valid number.

On the front-end you can use this number to create your graph or show a simple star rating.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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

  • daniela de prisco
  • daniela de prisco's Avatar Topic Author
  • Offline
  • New Member
More
10 years 3 months ago #129644 by daniela de prisco
Replied by daniela de prisco on topic Re: extra filed for rating
Thank you for your response.
I like the solution you suggest me; However, I'm not sure of being able to implement the code in the frontend
You think that it is not possible to use the default rating system ?
daniela

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 3 months ago #129645 by Krikor Boghossian
Replied by Krikor Boghossian on topic Re: extra filed for rating
You can use its Markup and styling as a starting point but the exact code.
To make it more clear you need two div's one on top of the other.

The one will have a width of 100%; and will contain the non-coloured starts.
The other one will have an absolute position and will sit on top of it.
The width will be calculated from that extrafield. EG. if the rating is 4/5 then its width will be 80%.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum