V4.1.x Rating module : Show member rating on listing page

Discussion in 'Modules / Plugins / Modifications' started by damiun, Nov 18, 2009.

  1. damiun Customer

    Hi,

    Before i start i did search the forum but didnt found the answer so...

    is it possible to display the member's rating stars (the stars of the rating given to that member) on every listing of that member?

    I know how to display the stars of the listing rating, but of the member rating?

    Dominick
  2. seymourjames All Hands On Deck

    Is this not covered in the documentation for the module?
  3. damiun Customer

    @seymourjames,

    No it isnt covered in the documentation (I guess you mean the documentation on ericlbarnes.com right?)
  4. seymourjames All Hands On Deck

    I do not know if this will work but what happens if you put this into your viewlsiting file and not the member file.

    {assign var="rating" value=$smarty.const.FILESYSTEM_PATH}{include file="$rating/modules/rating/templates/member_rating.tpl"}


    Then introduce the stars as normal.
  5. damiun Customer

    @seymourjames,

    I tried that yes,
    I got the link to place a feedback and i got the overview but with 0 feedback etc.

    And if i go to the member page there is feedback, so using the code on the viewlisting page doesnt show the feedback.

    Dominick
  6. Lhotch curmudgeon

    The current code only appears to collect listing rating details for the hook thats in the viewlisting template. If you want to collect and display ratings for a user themself when viewing a listing you will need to copy the code from the rating_viewmember() functing on the module and put it in the rating_view_listing() function to pull that data drom the database and assign it to the template.

    A lot of the variables are the same however so you will have to alter many of them for the code you copy to the other function.
  7. damiun Customer

    Hi,

    Thanks,
    i tried it and get this error:
  8. damiun Customer

    No one is able to help me on this matter?
  9. Jpstewart19 Customer

    Did you ever get this to work

    I am struggling with this as well. Has anyone been able to solve this?

Share This Page