V4.2.x Little Rating Mod Help?

Discussion in 'Modules / Plugins / Modifications' started by crashinabag, Nov 30, 2011.

  1. crashinabag Member

    I've been looking all over for help on the rating mods, found most of my answers, but I'm still having some troubles. I got it to where you can write your review on both the member rating and ad rating, and have set it up through the Admin and settings area. But how do you get it to display your review, and how do you get it to display you rating in stars???

    I just can't quite seem to figure it out.
    I'm using V4.2.3 with the Deep Sea Template.
  2. Blair Moderator

    Open the modules/rating/templates/member_rating.tpl file. Down around line 20, you'll see:

    Code:
    {$smarty.const.LANG_OUT_OF_STARS}
    replace this with:

    Code:
    {$stars}
    Hope this helps.
  3. crashinabag Member

    Hmm, didn't do anything different. Is this mod supposed to show the message as well as the star rating? Because I'm getting neither.
    Still confused
  4. John Snyder Staff

    This is an old and unsupported module, which version of the module do you have (module's config.php)? I'll take a look and see if I can spot the problem.
  5. crashinabag Member

    I'm using version 1.7.1
  6. John Snyder Staff

    Just to be sure:

    1. Did you manage to get the template included to your viewlisting template:

    Code:
    {assign var="rating" value=$smarty.const.FILESYSTEM_PATH}
    {include file="$rating/modules/rating/templates/listing_rating.tpl"}
    2. Did you approve the rating? or Turn on automatic approval. If so is the rating approved?

    It seems to work for me.
  7. crashinabag Member

    Yeah I set it up through the admin area and turned off manual approval, the reviews are approved and show up in the admin area, but no where else. I'm more than sure I'm screwing something up, but I just can't figure out what?

    I do appreciate your guys' help on trying to get me squared away.
  8. Blair Moderator

    You say you've added the necessary lines of code to your viewlisting template... does the page change in ANY way?

    If not, I would recommend double-checking what you included in the template file.
  9. crashinabag Member

    Yeah I've added the correct lines of code in the right files, and I do get the area where it says member rating and below that it says total reviews and below that it has the link "write a review".

    When you click on that it brings up the rating pop up window where you can rate the member 1-10 and it shows your user name and the text box. You fill out the review box, and then it says your rating was successfully added, close the window. But nothing shows up on the member page, or the listing page, I have the correct code on both. The only area where you can visibly see what was written and the rating is in the admin area but with no stars (I don't think it's supposed to have the stars in the admin). So that's what I got.

    I have re-installed the mod before, but what I think I'll do is delete it again and all the lines of code added and try it again.
  10. crashinabag Member

    Ok, So it was indeed as I thought and I'm sure all of you guys who helped me thought, it was me missing something, I deleted it all, re uploaded it, doubled checked all the files and paths, and what would you know??? It worked

    So, thank you all who helped me, I really appreciate it!
  11. Blair Moderator

    Glad you got it sorted.

    Those failed uploads can be a real pain, eh?
  12. crashinabag Member

    haha, yeah you know it!
  13. crashinabag Member

    Ok, I just wanted to revisit this just in case anyone else has any trouble with the stars not showing up like I did. Like it was mentioned replace {$smarty.const.LANG_OUT_OF_STARS} with {$star} not {$stars} for me any way in the member_rating.tpl.

    But I still have one other question regarding this. Why does it still show a number just in front of the stars???
    For example it shows 5 then five stars.

    Thanks again all!
  14. seymourjames All Hands On Deck

    That number is probably being displayed by the template file within the module itself. Just remove it. Not having th code I can't say what piece is making th number display.
  15. crashinabag Member

    Yeah I just removed {$rev.score} from the member_rating template and the number went away.
    Thanks Mr.seymourjames, you are truly a great help
  16. Alexis Hernandez New Member

    Where do I get this module? I am interested in doing user rating on my site as well.
  17. Blair Moderator

    Hi Alexis -

    Please login to your account at http://www.68classifieds.com/login -
    There's a list of free modules available for download on the main page.
    The Ratings module is located at the bottom.

    Thanks-
  18. rockbassray New Member

    I am having the same issue.. It is added and activated.. i corrected the lines to {$star} but still not showing up.. any help would be great!

Share This Page