WordPress.org

Forums

WP Photo Album Plus
[resolved] Separating Average Rating & My Rating More (2 posts)

  1. pugman76
    Member
    Posted 2 years ago #

    In regards to the rating system, it currently says:
    "Average Rating ***** ***** My Rating".
    This seems confusing to me.

    Is there a way to make it say
    "Average Rating: ***** | My Rating: *****"

    Here there is a separator, and the stars are on the other side of my rating, instead of all going across together.

    I tried to do this myself, but couldn't figure it out.

    Could someone help?

    Here is a link to my website:
    http://www.bbsavings.com/community/gallery/?wppa-album=2&wppa-occur=1&wppa-photo=10

    Thanks!
    Adam

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 2 years ago #

    You can increase the gab ( i will make it a configurable setting in the next version ) by editing wppa-slideshow.php:
    Change line 236:

    $wppa['out'] .= '  ';

    into:

    $wppa['out'] .= '<img src="'.wppa_get_imgdir().'bbbl.png" style="width:30px; height:15px;" />';

    You may change 30 into a larger or smaller number.

    To change the sequence of stars and My Rating:
    Remove the ! in line 240:

    if ( ! $wppa_opt['wppa_show_avg_rating'] ) $wppa['out'] .= __a('My&nbsp;rating', 'wppa_theme').':&nbsp;';

    and disable line 248:

    if ( $wppa_opt['wppa_show_avg_rating'] ) $wppa['out'] .= '&nbsp;'.__a('My&nbsp;rating', 'wppa_theme');

    by placing // in front of the line like:

    //	if ( $wppa_opt['wppa_show_avg_rating'] ) $wppa['out'] .= '&nbsp;'.__a('My&nbsp;rating', 'wppa_theme');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP Photo Album Plus
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic