This add-on is my implementation of ratings/reactions for XF2, just working on an importer from Post Ratings and some other features atm.
I'm using the Post ratings on xf1, but I prefer some of the things about this one anyway so will hopefully be using this when I do the live upgrade.It is my own independent implementation, as LukeF can still write is their own version.
My first thoughts are what version of php are you using? This add-on targets php 5.6I just downloaded the latest version of this addon and uploaded it to our site.
Straight away I got this error on every page:
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR) in /home/sites/xxxxxxx/public_html/src/addons/SV/ContentRatings/Entity/Ratable.php on line 369
Edit: Uploading the old files let me get back into the admin panel so I could disable the addon. I then reuploaded everything and upgraded and it seems ok now. Not sure what went wrong though?
@NixFifty is running a demo on https://xf2.nixfifty.comany live demo, please?
My only guess is the upgrade didn't work properly, but this doesn't explain why it was a syntax error! What version of php are you using so I can try to reproduce it.PHP version is fine and the addon worked fine for an earlier alpha version. It's just upgrading seemed to fail.
It's all working now so not really sure.
I'm actually completely baffled by how this code can break like that. This is the sort of thing where I would advise restarting php-fpm or apache and see if the madness goes away.PHP Version 5.6.31
I cleared all the error messages, sorry :-(
- Implement Post Rating importer support
- Fix animation style properties (breaking change for style properties)
- The animation style property values have been changed from unit types to numeric types to prevent 'px' units being appended. Numeric types can only be whole numbers, so the property unites have been adjusted accordingly. The duration property value is now in milliseconds and the scale property value is now a percentage.
I've just pushed out the first public release of the importer, I've done some small scale testing but it may have bugs.Okay, I'll take that as a probably will be done by the end of the month, then, Thank you.