Star Rating for users Ajax/PHP Help

Discussion in 'PHP' started by swapshop, Jun 16, 2008.

  1. #1
    After a script like

    http://www.masugadesign.com/the-lab/scripts/unobtrusive-ajax-star-rating-bar/

    That allows me to rate a user on a classifieds site

    I need the star rating bars to appear on each page and then allow users to rate the seller. Issue is I need a rating per seller this one seems to only allow one item to be rated but I am sure some one can point me in the right direction to make it multiple user.

    In case this isnt clear I mean if I find and rate a user all users get this rating so I need to make it for that user?
     
    swapshop, Jun 16, 2008 IP
  2. swapshop

    swapshop Peon

    Messages:
    656
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I see this script in around like in wordpress and it seems to have the ability to have each thread voted on so it has been done?
     
    swapshop, Jun 16, 2008 IP
  3. joffer

    joffer Peon

    Messages:
    85
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Dude next time read the readme file
    you can call up rating_bar($id,5); where $id is the uniq id of your "seller" or whatever you want it to be and 5 is the how many stars you want the rating bar to be
     
    joffer, Jun 16, 2008 IP
  4. swapshop

    swapshop Peon

    Messages:
    656
    Likes Received:
    34
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes I did read it but didnt understand but you are right

    Issue is this code isnt working with smarty templates

    {php}echo rating_bar($user_id,5); {/php}



    this will show the user number {$user_id} how do I now put this into the statement?
     
    swapshop, Jun 17, 2008 IP
  5. joffer

    joffer Peon

    Messages:
    85
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    It looks like you havent read the readme at all
    have u included drawrating ? have u added the paths to the css and js ?
     
    joffer, Jun 17, 2008 IP