Page 1 of 1

[How To] Remove BBCode Stats - "Miscellaneous Statistics"

Posted: Wed 19. Aug 2009, 20:03
by Marc
Open includes/stats/stats_basic.php

Find:

Code: Select all

                // get BBCodes stats
                $total_bbcodes = get_bbcode_count();
                $custom_bbcodes = get_bbcode_count('custom');
                
                $template->assign_vars(array(
                    'TOTAL_BBCODE_COUNT'         => $total_bbcodes,
                    'CUSTOM_BBCODE_COUNT'        => $custom_bbcodes,
                ));
                
                // get top XX BBCodes used on board
                $bbcode_ary = get_top_bbcodes($limit_count, 'bbcodes_count', 'DESC');
                $total_count = get_top_bbcodes();
                
                if(isset($total_count) && $total_count > 0)
                {
                    $max_count = $bbcode_ary[0]['count'];
                
                    $template->assign_var('S_TOP_BBCODES', true);
                
                    foreach ($bbcode_ary as $current_bbcode)
                    {
                        $template->assign_block_vars('top_bbcodes_row', array(
                        'BBCODE'                    => $current_bbcode['BBCode'],
                        'COUNT'                        => $current_bbcode['count'],
                        'PCT'                        => number_format($current_bbcode['count'] / $total_count * 100, 3),
                        'BARWIDTH'                    => number_format($current_bbcode['count'] / $max_count * 100, 1),
                        ));
                    }    
                }
                $template->assign_var('TOP_BBCODES', sprintf($user->lang['TOP_BBCODES'], $limit_count)); 
Delete it.


Open styles/prosilver/template/stats/stats_basic_miscellaneous.html

Find:

Code: Select all

	<h3>{L_BBCODE}</h3>
	<table class="fs_details_list">
		<tr>
			<td class="col1">{L_BBCODE_COUNT}:</td><td class="col2">{TOTAL_BBCODE_COUNT}</td>
			<td class="col3">{L_BBCODE_COUNT_CUSTOM}:</td><td class="col4">{CUSTOM_BBCODE_COUNT}</td>
		</tr>		
	</table><br />
	<h3>{TOP_BBCODES}</h3>
	<table class="fs_details_graphs">
		<!-- IF S_TOP_BBCODES -->
			<colgroup span="4">
				<col class="col_cat" />
				<col class="col_bar" />
				<col class="col_count" />
				<col class="col_pct" />
			</colgroup>
			<thead>
			<tr>
				<td>{L_BBCODE}</td>
				<td></td>
				<td>{L_COUNT}</td>
				<td>{L_PERCENT}</td>
			</tr>
			</thead>
		<!-- BEGIN top_bbcodes_row -->
			<tr>
			<td>&bull; {top_bbcodes_row.BBCODE}</td><td><div class="graph" style="width:{top_bbcodes_row.BARWIDTH}%;">&nbsp;</div></td><td>{top_bbcodes_row.COUNT}</td><td>{top_bbcodes_row.PCT}%</td>
			</tr>
		<!-- END top_bbcodes_row -->	
		<!-- ELSE --><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{L_NONE}</td></tr>
		<!-- ENDIF -->
	</table><br />
Delete it.


Open styles/subsilver2/template/stats/stats_basic_miscellaneous.html

Find:

Code: Select all

<tr>
	<th colspan="3">{L_BBCODE}</th>
</tr>
<tr>
	<td>
	<table class="fs_details_list">
		<tr>
			<td class="col1">{L_BBCODE_COUNT}:</td><td class="col2">{TOTAL_BBCODE_COUNT}</td>
			<td class="col3">{L_BBCODE_COUNT_CUSTOM}:</td><td class="col4">{CUSTOM_BBCODE_COUNT}</td>
		</tr>		
	</table>
	</td>
</tr>
<tr>
	<th colspan="3">{TOP_BBCODES}</th>
</tr>
<tr>
	<td>
	<table class="fs_details_graphs">
		<!-- IF S_TOP_BBCODES -->
			<colgroup span="4">
				<col class="col_cat" />
				<col class="col_bar" />
				<col class="col_count" />
				<col class="col_pct" />
			</colgroup>
			<thead>
			<tr>
				<td>{L_BBCODE}</td>
				<td></td>
				<td>{L_COUNT}</td>
				<td>{L_PERCENT}</td>
			</tr>
			</thead>
		<!-- BEGIN top_bbcodes_row -->
			<tr>
			<td>&bull; {top_bbcodes_row.BBCODE}</td><td><div class="graph" style="width:{top_bbcodes_row.BARWIDTH}%;">&nbsp;</div></td><td>{top_bbcodes_row.COUNT}</td><td>{top_bbcodes_row.PCT}%</td>
			</tr>
		<!-- END top_bbcodes_row -->	
		<!-- ELSE --><tr><td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{L_NONE}</td></tr>
		<!-- ENDIF -->
	</table>
	</td>
</tr>