WordPress.org

Ready to get started?Download WordPress

Forums

Rating-Widget: Star Rating System
Star ratings in blog list (8 posts)

  1. SCO7TY
    Member
    Posted 1 year ago #

    So ill try and explain what i would like to do as best as i can.

    where i have a list of posts, with image title and exert etc. I would like to have the star rating as well.

    So basically people can see what star rating the post is without having to actually click on the read more button and go in to the post, is this possible?

    Thanks in advance...

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

  2. vovafeldman
    Member
    Plugin Author

    Posted 1 year ago #

    Did you try to activate the plugin for excerpts?

  3. a_ahmed
    Member
    Posted 1 year ago #

    Is there a way to make the posted rated votes appear on a thumbnail of a post on the front page?

    A theme I use has 'review ratings' but its something you set when you make a post and give it a review rating. They are not total votes cast

    See what I'd like to achieve looks great in my opinion if this plugin or any other plugin could achieve this:

    http://www.frip.in/wp-content/uploads/2012/12/Boulevard-A-WordPress-Magazine-Theme.png

  4. a_ahmed
    Member
    Posted 1 year ago #

    I saw in another post you mention this:

    <div class="rw-ui-container rw-urid-<?php echo $img->unique_integer_id; ?>"></div>
    
    RW.render();

    This is the part in my theme called "boulevard magazine theme's" item review code:

    <div class="post-review">
    							<?php if(get_post_meta($post->ID, 'pyre_overall_score', true)): ?>
    							<div class="overall-score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/big_<?php echo get_post_meta($post->ID, 'pyre_overall_score', true); ?>.png" alt="" /></div>
    							<?php endif; ?>
    							<ul>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_1', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_1', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_1_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_2', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_2', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_2_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_3', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_3', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_3_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_4', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_4', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_4_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    								<?php if(get_post_meta($post->ID, 'pyre_critera_5', true)): ?>
    								<li><?php echo get_post_meta($post->ID, 'pyre_critera_5', true); ?> <span class="score"><img src="<?php bloginfo('template_directory'); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_critera_5_score', true); ?>.png" alt="" /></span></li>
    								<?php endif; ?>
    							</ul>
    						</div>
  5. a_ahmed
    Member
    Posted 1 year ago #

    How could I go about modifying this part and making your rating appear in my theme in that place?

    The item-review css is just this:

    .item-review { background:url(images/trans.png) repeat; position:absolute; left:0; bottom:9px; display:block; height:12px; padding:5px;}
  6. a_ahmed
    Member
    Posted 1 year ago #

    Sorry also these are present in my theme:

    .post-review { float:right; width:200px; border:1px solid #D7D7D7; margin-left:10px; margin-bottom:20px; }
    	.overall-score { background:#EEE; margin:1px; padding:10px; text-align:center; }
    	.post-review ul { border-top:1px solid #D7D7D7; padding:0; margin:0; }
    	.post-review ul li { background:url(images/criteria-bg.gif) repeat-x bottom; border-bottom:1px solid #D7D7D7; padding:10px; color:#555; margin:0; }
    	.post-review ul li:last-child { border-bottom:none; }
    	.score { float:right; }
  7. a_ahmed
    Member
    Posted 1 year ago #

    I'm sorry I'm stupid, that was not what i needed to look for it was this:

    <span class="item-review"><img src="<?php echo get_template_directory_uri(); ?>/images/stars/<?php echo get_post_meta($post->ID, 'pyre_overall_score', true); ?>.png" alt="<?php the_title(); ?> Overall Score" /></span>
    <?php endif; ?>

    This is in index.php and this is the thing that pops up on thumbnail...

    so how wouldi get the id of the post and display if there is, if there is or isnt and display the little picture that ur plugin shows with votes.

  8. SCO7TY
    Member
    Posted 1 year ago #

    Vova - yes i tried to activate the plugin for excerpts with no luck.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags