Have a look an the bottom of My Bookworm
Open bookworm.php
find
- Code: Select all
$result = $wowdb->query($query) or die_quietly($wowdb->error(),'Database Error',basename(__FILE__),__LINE__,$query);
after add
- Code: Select all
$nums = mysql_num_rows($result);
find
- Code: Select all
$ab = array();
after add
- Code: Select all
$pages = 0;
find
- Code: Select all
$ab[] = array($row['hash'], $row['title'], $row['num_pages'], $row['found_by'], $row['zone'], $row['subzone']);
after add
- Code: Select all
$pages = $row['num_pages'] + $pages;
find
- Code: Select all
$tableFooter = '</table>';
replace with
- Code: Select all
$tableFooter = '<tr><td colspan="4" class="membersHeader"><center>'.sprintf($wordings[$roster_conf['roster_lang']]['statistics'], $nums, $pages).'</center></td></tr></table>';
Now localization.php
find
- Code: Select all
$wordings['enUS']['num_pages'] = '# of pages';
after add
- Code: Select all
$wordings['enUS']['statistics'] = 'There are %d books with totally %d pages stored';
find
- Code: Select all
$wordings['deDE']['num_pages'] = '# Seiten';
after add
- Code: Select all
$wordings['deDE']['statistics'] = 'Es sind insgesamt %d Bücher mit zusammen %d Seiten vorhanden.';