wp-postrating particular implementation... going crazy :( (7 posts)

  1. jockerworks
    Posted 8 years ago #

    Hi there, I just registered to the website and I hope I will be able to write correct English ^^'

    Well, as you can read I am trying to implement wp-rating in my website, but I need to use it in a particular way if it's possible... and I would like to hear your hopinions...

    Here it goes: I want the post rate to appear everytime in the post details, just above the post itself. The structure that I got is the following:

    [Post Title]
    [Posted by Me at bla bla bla] - [RATING]

    [Text text text etc.]

    [XXX Comment]

    I easily copy/pasted the required code to make the rating appear there, but I am now having some problems:
    - I would like ONLY the start to appear, and not all the text saying how many votes the post received, the average and bla bla... only the stars
    - Even if the user has not voted, I would like him to see only the rate, and not to have the possiblity to vote there straight away. I will give him the chance to vote only in the single page at the bottom...

    The main two problems I am having right now are these two... I don't want to bother you with all the small details, I ll try to solve them myself ^^'

    Thanks for reading, I hope to get some illuminating answer!! :D

  2. Lester Chan
    Posted 8 years ago #

    1. Edit the template in WP-Admin -> Ratings -> Rating Options
    2. Not possible without much hacking

  3. jockerworks
    Posted 8 years ago #

    thank you for the answer, I solved the first one, if I find a solution for the second issue I will post it here!

    ny the way, what is this forum? I mean, is this a wordpress plugin or did you guys code it by yourselves?

    Its' beautiful!!

  4. jockerworks
    Posted 8 years ago #

    hey guys, I have been trying to but it seems a really hard thing to do. If there is anybody out there knowing how to do this trick it would be really appreciated if you could give me some tips! :)
    again, I need only the post rate to be showed somewhere, regardless of the user (wheter he voted or not etc.)

    then somewhere else, in the single page, I will allow him to vote! Isn't there anybody out there who knowws how to do this thing! thanks guys!

  5. Lester Chan
    Posted 8 years ago #

    Then on the index.php instead of using the_ratings(); use the_ratings_results(get_the_id());

    Then on single.php use the_ratings();

  6. jockerworks
    Posted 8 years ago #

    sho it should be like this?
    <?php if(function_exists('the_ratings')) { the_ratings_results(get_the_id()); } ?>

    it's not working...!

  7. Lester Chan
    Posted 8 years ago #

    <?php if(function_exists('the_ratings')) { echo the_ratings_results(get_the_id()); } ?>

Topic Closed

This topic has been closed to new replies.

About this Topic