WordPress.org

Ready to get started?Download WordPress

Forums

Rating-Widget
Top rated page with author, date and blue stars (4 posts)

  1. benjaminducitoyen
    Member
    Posted 10 months ago #

    Hello,

    Thank you for this very useful widget.

    I have a question about the top rated page. I use the top rated template but I don't know how can I add after the title of the posts:

    • the author
    • the date
    • the special stars (the quartz blue stars) instead of yellow stars.

    Thank you for your suggestion.

    http://wordpress.org/extend/plugins/rating-widget/

  2. vovafeldman
    Member
    Plugin Author

    Posted 10 months ago #

    Hi @benjaminducitoyen, it requires customization of the code. Do you know how to manipulate WP plugins?

  3. benjaminducitoyen
    Member
    Posted 10 months ago #

    I'm not familiar with php code but I have tried to manipulate the GetTopRated() function without success.

    In the following, this is the part of the code in GetTopRated() that I have changed (my modification in bold ):

    switch ($type)
    {
    case "posts":
    case "pages":
    $id = RatingWidgetPlugin::Urid2PostId($urid);
    $post = get_post($id);
    $author = get_userdata($id['post_author']);
    $title = trim(strip_tags($post->post_title));
    $excerpt = $this->GetPostExcerpt($post, 200);
    $permalink = get_permalink($post->ID);
    $thumbnail = $this->GetPostFeaturedImage($post->ID);
    break;

    ....

    <h5>' . $short . '<hauthorbenjamin class> - display_name).' >'.$author->display_name.'</hauthorbenjamin>

    Can you give me some advice?

    Benjamin

  4. vovafeldman
    Member
    Plugin Author

    Posted 10 months ago #

    @benjaminducitoyen, I'm not exactly sure what you've done, but it's the right function to manipulate. If it was straight forward and quick I would have provided the solution here immediately. Unfortunately that's not the case, and we can't support everyone's customization. We have a special customization team that can do it for you but it costs money, so if you are interested feel free to contact me directly via [vova AT rating-widget DOT com]. Sorry :(

Reply

You must log in to post.

About this Plugin

About this Topic