0
Good Afternoon,
I've just purchased Music Collection 1.5 and installed to my website.
I've checked that the Comment and Rating System is allowed only for logged users.
How to make that public? I need any website visitor, even logged-off, to rate and comment albums.
Regards,
Elias Hatem
I've just purchased Music Collection 1.5 and installed to my website.
I've checked that the Comment and Rating System is allowed only for logged users.
How to make that public? I need any website visitor, even logged-off, to rate and comment albums.
Regards,
Elias Hatem
Responses (11)
-
Accepted Answer
-
Accepted Answer
0Thanks for the fast and helpful reply.
I would like to make this manual modifications to allow the rating system to work to unregistered users. Where should I work on? Could you reply me with some instructions.
I'll probably use the JomComments component, how do they work together? Should I install any plugin or extension to make that happen?
Thank you.
Elias Hatem -
Accepted Answer
01) if you know some PHP, you'll find it easy to modify the files. for instance, the file to modify to show the comment system on the album page is
/components/com_muscol/views/album/tmpl/default.php
around line 273 you'll see
if($user->id){
as you see, only prints the comment system if the user is registered.
so all you have to do is replace this for
if(true){
(you know some PHP, right?)
to do the same on songs, artists... the files are quite intuitive:
/components/com_muscol/views/artist/tmpl/default.php
/components/com_muscol/views/song/tmpl/default.php
2) to work JomComment, all you have to do is to select the option "JomComment comment engine" on the parameter "Comment System", on Music Collection parameters (and of course, you must have JomComment installed first!! :lol -
Accepted Answer
0Thanks again for the quick reply.
I know PHP, yes. I've made this changes and I see the stars in the album view.
BUT, I can't actually vote. Is there any plugin envolved or something like this? I'm sending you a Print Screen of what I see.
About comments:
JomComment is working perfectly, thank you. The tab "comments" in Music Collection component will be always blank using Jom Comment correct? -
Accepted Answer
-
Accepted Answer
-
Accepted Answer
-
Accepted Answer
0Ok, I've made the changes you suggested. BUT, we have a problem.
When I make the change from "user->id" to "TRUE", the component doesn't "record" ratings anymore.
That means that, if I go there and make a 5-star rating and a second person goes after me and make a 2-star rating, the component deletes my first rating and maintain the 2-star rating that was made later.
It doesn't "save" all ratings, always showing the last one.
Any way to fix it? -
Accepted Answer
0yes, I know whats happening: since the user is not registered, the system saves the user_id as 0
then, it searches if the actual user has made already a vote. in this case, as the user is not registered, it founds a vote (because the id is 0) and it will override it.
I'm sorry, but no easy way to fix it at all... the system is programmed so only the registered can makes votes.. .I didnt though about this the first time... -
Accepted Answer
-
Accepted Answer
Your Reply

Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »