Topic: Hide statistic at visitors

Hello,
I'm looking for a way to make it invisible to visitors who are not logged the statistics of the forum....

in index.php file there is :

<div id="brd-stats" class="gen-content">
<h2 class="hn"><span><?php echo $lang_index['Statistics'] ?></span></h2>
<ul>
<?php echo implode("\n\t\t", $stats_list)."\n" ?>
</ul>
</div>

Is possible with php write something like :

if (user not logged ){hide statistic};
else {show statistic};

Or other way...

thank you

2

Re: Hide statistic at visitors

You can use this conditional:

if (!$forum_user['is_guest'])
{
stats code
}

Re: Hide statistic at visitors

Thank you Trace! it work!