Comments and Rating System

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
Responses (11)
  • Accepted Answer

    Thursday, September 03 2009, 02:59 PM - #Permalink
    0
    the only way to allow everybody to do it is making manual modifications on some files...

    for the comment system, however, you can allow it if you use JomComment component, wich Music Collection is compatible with
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 03:02 PM - #Permalink
    0
    Thanks 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
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 03:24 PM - #Permalink
    0
    1) 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:)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 03:41 PM - #Permalink
    0
    Thanks 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? http://www.joomlamusicsolutions.com/images/fbfiles/images/shot_01.jpg
    Attachments:
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 03:50 PM - #Permalink
    0
    yes, comments tab will be empty if you use JomComment

    in this screenshot I cant see the rating system.. (it is shown just before the comments... and you have to enable it using a similar hack to that you used for comments. I forgot to mention :lol:)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 03:53 PM - #Permalink
    0
    Hmm no rating system appearing before the comments.

    Which kind of hack I have to do? Sorry, I did not follow on this.

    Which files should be changed?

    Elias Hatem
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 04:07 PM - #Permalink
    0
    on ALBUMS (only)

    on the same file as before: round line 239

    look at this code:
    if($user->id && $this->params->get('showalbumratings') ){ // show the rating system
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 04:35 PM - #Permalink
    0
    Ok, 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?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 04:40 PM - #Permalink
    0
    yes, 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...
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 04:42 PM - #Permalink
    0
    Well, that's okey.

    Is there any way to add a third-party rating system (similar to JomComment integration?)

    Plus, here's a suggestion for next versions: Unregistered Users Rating System B)
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 03 2009, 04:49 PM - #Permalink
    0
    :)

    we'll try to add compatibility with a third party rating system :)

    and the suggestion is very welcomed
    The reply is currently minimized Show
Your Reply