JoomlaWorks
Go!
Member Dashboard
Home
Extensions
Commercial
Frontpage Slideshow
Simple Image Gallery Pro
Free
K2
AllVideos
DISQUS Comments for Joomla!
IAKI (Import As K2 Image)
Quick Menu (for Joomla 4)
Simple Image Gallery
Simple RSS Feed Reader
Free On Github
Akismet for Kunena
Fill It Up
K2 Example Plugin
K2 Links for JCE
Rebuild K2 Image Cache (CLI utility for K2)
URL Normalizer
User Extended Fields for K2
Demos
Joomla Extension Demos
WordPress Plugin Demos
Labs
Joomla 3.x UTD
Web Apps
JSON 2 JSONP
Feed Reader (bookmarklet)
Device Info
Support
Documentation for Joomla Extensions
AllVideos
Frontpage Slideshow
Simple Image Gallery
Simple Image Gallery Pro
Get Help
Community Forum
Recent Topics
Categories
Create free account
Help Desk
Contact Us
About
Blog
Company
License & Terms of Service
Privacy Policy
My Account
COMMUNITY FORUM
Community Forum
Search the forum
Index
Recent Topics
Search
Log in
Username
Password
Log in
Remember me
Forgot your password?
Forgot your username?
Create an account
Forum
K2 Community Forum
English K2 Community
Rating - View "4.7/5" instead of the stars?
Rating - View "4.7/5" instead of the stars?
English K2 Community
6 replies
1007 views
Anders Kristoffersson
14 years 3 months ago
#101613
As the topic says, how do i do that?
I want the rating to show ex. 4,7/5 instead of viewing the stars.
Copy link
Kannan Naidu Venugopal
14 years 3 months ago
#101614
How do the visitors vote ? if your're not displaying the stars
K2 Rocks \m/
Copy link
Anders Kristoffersson
Topic Author
14 years 3 months ago
#101615
They vote inside of the item, there i want it to be stars. But like on the frontpage or where i "show" the items i want it to be "4.7/5".
Copy link
Kannan Naidu Venugopal
14 years 3 months ago
#101616
You can do a template override and add this code in category_item.php where you want the text to appear instead of the stars.
i've taken this code from the richsnippet plugin for k2
K2 Rocks \m/
Copy link
Anders Kristoffersson
Topic Author
14 years 3 months ago
#101617
Thank you it works!
But if i also want it to view like this in the k2_Content module?
I put this code into helper.php in mod_k2_content, to get the rating working in that module.
$item->votingPercentage = $model->getVotesPercentage($item->id);
$item->numOfvotes = $model->getVotesNum($item->id);
$rows[] = $item;
Put it dosent seem to work with your code that you wrote now. It only works in the category_item.php
Copy link
Kannan Naidu Venugopal
14 years 3 months ago
#101618
I've not tried this in K2 content module :)
K2 Rocks \m/
Copy link
Anders Kristoffersson
Topic Author
14 years 3 months ago
#101619
Ok, you got any idéa on how to make it work?
Copy link
Log in
or
create an account
to reply.