Recent Topics

1 Mar 15, 2007 05:31    

My b2evolution Version: 0.9.x

Hi all

How can I remove the Referer stats from being visible on the sidebar, but still be able to see the stats on the admin page?

Can I just delete this block of php code from the selected skin's _main.php file? Or is there more to it?

<?php if ($disp != 'stats') { ?>

	<h4><?php echo T_('Recent Referers') ?></h4>
	<?php refererList(5, 'global', 0, 0, 'no', '', ($blog > 1) ? $blog : ''); ?>
	<ul>
		<?php if( count( $res_stats ) ) foreach( $res_stats as $row_stats ) { ?>
			<li><a href="<?php stats_referer() ?>"><?php stats_basedomain() ?></a></li>
		<?php } // End stat loop ?>
		<li><a href="<?php $Blog->disp( 'blogstatsurl', 'raw' ) ?>"><?php echo T_('more...') ?></a></li>
	</ul>
	<br />
	<h4><?php echo T_('Top Referers') ?></h4>
	<?php refererList(5, 'global', 0, 0, 'no', 'baseDomain', ($blog > 1) ? $blog : ''); ?>
	<ul>
		<?php if( count( $res_stats ) ) foreach( $res_stats as $row_stats ) { ?>
			<li><a href="<?php stats_referer() ?>"><?php stats_basedomain() ?></a></li>
		<?php } // End stat loop ?>
		<li><a href="<?php $Blog->disp( 'blogstatsurl', 'raw' ) ?>"><?php echo T_('more...') ?></a></li>
	</ul>
?>

2 Mar 15, 2007 05:51

That'll do what you want. BTW The 0.9.* generation is VERY old. You really need to consider upgrading.

3 Mar 15, 2007 14:21

Thanks for confirming ths for me.

I know I need to upgrade, but am having a case of 'cold feet/procrastination' about the whole process. Maybe this weekend I'll do it.

Thanks again.


Form is loading...