2 isaac Aug 16, 2004 23:06

I am using "custom"- Every time I try to delete the referring links display on the front page, I get a php error. I know alittle php but how to remove this is beyond me.
also, while im asking about how to remove stuff, how do i remove any link to a login page from the front of the blog?
thank you :D :D
in your skins/custom folder, open _main.php
find this code and delete it
<?php if ($disp != 'stats')
{ ?>
<div class="bSideItem">
<h3><?php echo T_('Recent Referers') ?></h3>
<?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 />
<h3><?php echo T_('Top Referers') ?></h3>
<?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>
</div>
<?php } ?>
and for the login links,
delete this code
<div class="bSideItem">
<h3><?php echo T_('Misc') ?></h3>
<ul>
<?php
user_login_link( '<li>', '</li>' );
user_register_link( '<li>', '</li>' );
user_admin_link( '<li>', '</li>' );
user_profile_link( '<li>', '</li>' );
user_logout_link( '<li>', '</li>' );
?>
</ul>
</div>
thank you so much! :yes:
What skin are you using?
open up skins/skin_name/_main.php in your favorite text editor, and look for the sideitems after the main blog loop. Delete or comment it.