[Customisation Database Commits] r172 - in /branches/highwayoflife/titania: includes/authors/authors_main.php template/authors/author_profile.html

David Lewis highwayoflife at phpbb.com
Thu Nov 13 05:04:36 CET 2008


Author: HighwayofLife
Date: Thu Nov 13 05:04:34 2008
New Revision: 172

Log:
[fix] Proper rating variables.

Modified:
    branches/highwayoflife/titania/includes/authors/authors_main.php
    branches/highwayoflife/titania/template/authors/author_profile.html

Modified: branches/highwayoflife/titania/includes/authors/authors_main.php
==============================================================================
*** branches/highwayoflife/titania/includes/authors/authors_main.php (original)
--- branches/highwayoflife/titania/includes/authors/authors_main.php Thu Nov 13 05:04:34 2008
***************
*** 230,236 ****
  			'REAL_NAME'			=> htmlspecialchars($author['author_realname']),
  			'WEBSITE'			=> $author['author_website'],
  			'RATING'			=> $this->generate_rating($author['author_rating']),
! 			'S_RATING_PERCENT'	=> round($author['author_rating'] / 5, 2),
  			'CONTRIB_COUNT'		=> $this->generate_contrib_string('contrib', 'link', $author['author_contribs'], $author_id),
  			'SNIPPET_COUNT'		=> $this->generate_contrib_string('snippet', 'link', $author['author_snippets'], $author_id),
  			'MOD_COUNT'			=> $this->generate_contrib_string('mod', 'link', $author['author_mods'], $author_id),
--- 230,236 ----
  			'REAL_NAME'			=> htmlspecialchars($author['author_realname']),
  			'WEBSITE'			=> $author['author_website'],
  			'RATING'			=> $this->generate_rating($author['author_rating']),
! 			'RATING_COUNT'		=> $author['author_rating_count'],
  			'CONTRIB_COUNT'		=> $this->generate_contrib_string('contrib', 'link', $author['author_contribs'], $author_id),
  			'SNIPPET_COUNT'		=> $this->generate_contrib_string('snippet', 'link', $author['author_snippets'], $author_id),
  			'MOD_COUNT'			=> $this->generate_contrib_string('mod', 'link', $author['author_mods'], $author_id),

Modified: branches/highwayoflife/titania/template/authors/author_profile.html
==============================================================================
*** branches/highwayoflife/titania/template/authors/author_profile.html (original)
--- branches/highwayoflife/titania/template/authors/author_profile.html Thu Nov 13 05:04:34 2008
***************
*** 5,11 ****
  <tr><td>{USER_FULL}</td></tr>
  <tr><td>{REAL_NAME}</td></tr>
  <tr><td>{WEBSITE}</td></tr>
! <tr><td>{RATING} ({S_RATING_PERCENT})</td></tr>
  <tr><td>{CONTRIB_COUNT}</td></tr>
  <tr><td>{SNIPPET_COUNT}</td></tr>
  <tr><td>{MOD_COUNT}</td></tr>
--- 5,11 ----
  <tr><td>{USER_FULL}</td></tr>
  <tr><td>{REAL_NAME}</td></tr>
  <tr><td>{WEBSITE}</td></tr>
! <tr><td>{RATING} ({RATING_COUNT})</td></tr>
  <tr><td>{CONTRIB_COUNT}</td></tr>
  <tr><td>{SNIPPET_COUNT}</td></tr>
  <tr><td>{MOD_COUNT}</td></tr>




More information about the customisationdb-commits mailing list