Keyword

Rating only for registered

  • JPACK
  • JPACK's Avatar Topic Author
  • Offline
  • Junior Member
More
9 years 3 months ago #144911 by JPACK
Rating only for registered was created by JPACK
Hi,

This has properly been asked before, but I could not find it.

I am making a site where users can rate the K2 article. How do I set it up, so only registered users can rate?
Clearly everybody should be able to see the ratings (the stars), but only registered users should be able to rate.

Cheers,

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
9 years 3 months ago - 9 years 3 months ago #144917 by Krikor Boghossian
Replied by Krikor Boghossian on topic Rating only for registered
Hello,

This can either be done with a template override or with an extension.
If you want it to develop it yourself you need to perform a check using Joomla!'s user object docs.joomla.org/Accessing_the_current_user_object .

If the user is registered show him the regular form, else show him the start with a different HTML id so the user cannot vote.

More on overrides can be found here: getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Last edit: 9 years 3 months ago by Krikor Boghossian.

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


Powered by Kunena Forum