[xwiki-users] Raitings Plug-In
Hi all! First of all, thanks for this amazing tool :) I would like to ask you about Raiting plugin, because I followed the installation and the result is half complete... I can see the js working, and the image of stars empty, but nothing happened when I click over the star... I dont know, somebody happened the same?? Someone can help me? Thanks in advance -- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7305284.html Sent from the XWiki- Users mailing list archive at Nabble.com.
I have this error... Failed to load resource: the server responded with a status of 404 (No Encontrado) GET http://localhost:8080/xwiki/bin/download/XWiki/Ratings/star.gif 404 (Not found) -- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7305305.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi acaserop, On a first impression, it looks like something went wrong when you imported the ratings application xar. Try to reimport the xar file and make sure that "Import as backup package" is checked in the import UI. Also, double check if you have properly registered the plugin in xwiki.cfg and the translations in the Administration>Localization section. Then go to a page that you wish to rate, hit CTRL+F5 to make sure the browser cache is properly cleared. Hope this helps, Eduard On Tue, Feb 21, 2012 at 6:43 PM, acaserop <[email protected]> wrote:
I have this error...
Failed to load resource: the server responded with a status of 404 (No Encontrado)
GET http://localhost:8080/xwiki/bin/download/XWiki/Ratings/star.gif 404 (Not found)
-- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7305305.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi Eduard! thanks for yor answer, but I'm talking about the plugin (no xar file, i thinks is for the extension isn't?) importing the jar and creating the new livetable class with the raiting (xwiki enterprise 3.4)... I have followed this tutorial: http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable Thanks anyway :)!! -- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7307640.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, Well, from your first message, you did not mention the tutorial so I understood that you just want to use the Ratings Application [1]. Please, next time, properly define what you want to do and how you want to do it. Now, back to the tutorial you were following, you can see there that, in order to get the star.gif image, the page XWiki.Ratings is called and it tries to get the image as an attachment of that page. But you do not have that page because you did not install the Ratings application, you`ve installed just the plugin. Note: I have changed the tutorial page to mention the Ratings Application page on the extensions wiki instead of the github code repository. Maybe it will be clearer in the future. The Ratings Application is composed of 2 things: 1. the Ratings Application [1] - XAR (XWiki application -- basically the UI that you see with the stars and the JS that runs when you click them, etc.) 2. the Ratings Plugin [2] - JAR (XWiki plugin that works on the server side and does the work the the client side JS tells it to do, namely to store your ratings) The application can not work without the plugin, but you will need the UI (xar) to properly benefit from it. So, please go to the Ratings Application page [1] on extensions.xwiki.organd install the xar and the plugin jar. Don`t forget to register the plugin in xwiki.cfg. You should be able, hopefully, to follow the tutorial without problems after doing this. Thanks, Eduard ---------- [1] http://extensions.xwiki.org/xwiki/bin/view/Extension/Ratings+Application [2] http://extensions.xwiki.org/xwiki/bin/view/Extension/Ratings+Plugin On Wed, Feb 22, 2012 at 10:38 AM, acaserop <[email protected]> wrote:
Hi Eduard!
thanks for yor answer, but I'm talking about the plugin (no xar file, i thinks is for the extension isn't?) importing the jar and creating the new livetable class with the raiting (xwiki enterprise 3.4)... I have followed this tutorial: http://platform.xwiki.org/xwiki/bin/view/DevGuide/LiveTable
Thanks anyway :)!!
-- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7307640.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thanks Eduard!! I'm sorry if I hadn't specified the problem. Back to the question, I installed the Application, but it wasn't the problem. Now I didn't recieve the error 404, but nothing happened in my livetable. I can see the empty stars, as I commented before, nothing happening when I click it. (No vote, no image change...) The rating application works fine.. If someone has any idea I will apreciate it :) -- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7308211.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Hi, Well, from my quick scanning of that tutorial, I am not sure if the stars in the livetable are supposed to be clickable. There is no "onclick" javascript there. Maybe they are supposed to be just for display, to show the current rating of a document. If you wish to change the current rating of a document, go do that document and use the stars in the top-right corner of the document to rate it (using the Ratings Application). After this, come back to your tutorial livetable, refresh it, and see if the rating corresponding to the document you`ve just voted on is now changed. Thanks, Eduard On Wed, Feb 22, 2012 at 3:10 PM, acaserop <[email protected]> wrote:
Thanks Eduard!!
I'm sorry if I hadn't specified the problem.
Back to the question, I installed the Application, but it wasn't the problem. Now I didn't recieve the error 404, but nothing happened in my livetable. I can see the empty stars, as I commented before, nothing happening when I click it. (No vote, no image change...)
The rating application works fine..
If someone has any idea I will apreciate it :)
-- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7308211.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Hi again Eduard I tried but nothing happend, it's still empty, maybe the js form the livetable is not looking at the same place of App raiting? Thanks :) -- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7311388.html Sent from the XWiki- Users mailing list archive at Nabble.com.
Ah yes, I noticed that there is a problem in the tutorial when you have to modify the page LiveTableResultsMacros and use the #grid_ratings macro. It is caused by the fact that the tutorial was writen a long time ago and, in the meanwhile, things changed in the liveatable results macros code. After you add the new macro, to use it, you need to call it with the argument $itemDoc instead of $udoc, like this : #elseif($colname=="_ratings"), #grid_ratings($itemDoc) "${colname}" : "${ratings}" #else If you don`t do this, all the stars in the livetable will be all white as the value of the rating is not properly read. I have updated the tutorial to reflect this. Also, note that the above is valid for XWiki 2.3 Does this help? Thanks, Eduard On Thu, Feb 23, 2012 at 12:25 PM, acaserop <[email protected]> wrote:
Hi again Eduard
I tried but nothing happend, it's still empty, maybe the js form the livetable is not looking at the same place of App raiting?
Thanks :)
-- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7311388.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Thank you very much!!! It works :) -- View this message in context: http://xwiki.475771.n2.nabble.com/Raitings-Plug-In-tp7305284p7311881.html Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
acaserop -
Eduard Moraru