sheadawson / silverstripe-rateable Goto Github PK
View Code? Open in Web Editor NEWAn extension that adds a star rating system + UI to any DataObject type
License: BSD 3-Clause "New" or "Revised" License
An extension that adds a star rating system + UI to any DataObject type
License: BSD 3-Clause "New" or "Revised" License
even on security/login
should we check if the page has an positive ID set before rendering the $RateableUI?
Hi, is any update to SS4 planed?
First of all, great module!
Heres the things:
I've attached Rateable to "StoryPage", and the UI shows up fine when looping these pages out. However, if I loop the same Storypages, multiple places on the same pages, it breaks. This is because of the ID used in the injected JavaScript.
My hacky fix was to modify getRatingHTMLID() function to add a random number to the ID:
public function getRatingHTMLID(){
return $this->owner->ClassName . '-' . $this->owner->ID . '-' . 'rating-' . rand();
}
Might need to figure out a better way to fix this
I need to have at least 10 or so star ratings on one page, is that possible to work for on the rateable module?? if there's a code for it, let me know. Thanks. :)
Hi again, and thanks for fixing the last issue so fast!
It seems the userHasRated() function in the RateableService class is broken. I can rate an item, refresh the page, and rate again.
Any ideas why this happens?
Currently the 5 start rating UI displays strangely when installed on the simple theme.
Screen Shot 2013-12-31 at 2.09.31 pm.png | uploaded via ZenHub
Hi,
why is there no minified versions of js components?
I'll try to minify and test them to see if they work, and get back to you with results.
Best,
Petar
there are untranslated strings:
php: updateCMSFields
javascript: the "thanks" and "already rated" message.
I'm happy to create a PR for this
Could you please use git tags for releases? including dev-master in my config.json feels a bit bad. And releases will be cached locally so installing / updating is way faster.
Perhaps the default should be set to off and explicitly turned on?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.