Ratings on Music Site

0
Looking through the forum postings I found out how to open up the ratings to everyone, not just registered users. However, I noticed that when I opened it up, it doesn't count different ratings. Rating a post that has already been rated changes the current rating instead of adding a new rating. Any ideas on how to fix this?
Responses (6)
  • Accepted Answer

    Monday, August 31 2015, 09:46 AM - #Permalink
    0
    hello

    sorry for the late answer.

    This will actually require more coding, because the way it is now, it "checks" for the current rating to update it if necessary.
    in your scenario, no update would need to be made if the user is NOT registered. so basically you need to add an "IF" statement so it will always create a new entry if the user is not registered.
    The reply is currently minimized Show
  • Accepted Answer

    Monday, August 31 2015, 04:02 PM - #Permalink
    0
    Any tips on what that IF statement would look like?

    Thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 10 2015, 08:45 PM - #Permalink
    0
    well, I guess it would be something like

    if(!$user->id){
    // code to create NEW entry
    }
    else{
    //current code to update
    }
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, September 10 2015, 09:57 PM - #Permalink
    0
    How would I go about requesting custom coding work? How much would you charge for something like this?
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 12 2015, 07:06 PM - #Permalink
    0
    hello!
    to request custom coding work please email us directly at support@ joomlathat.com

    thanks!
    The reply is currently minimized Show
  • Accepted Answer

    Monday, September 14 2015, 04:02 PM - #Permalink
    0
    Thanks! Just sent the email. It has a subject line of "Custom Coding Request on Music Collection."
    The reply is currently minimized Show
Your Reply