2011-04-28, 08:11 AM
2011-04-28, 09:30 AM
For Hiding Board Stats from guests, I believe you can do this with: http://community.mybb.com/thread-50892.html
2011-04-28, 12:23 PM
i understand only the second part which it says over there cant understand the first one is it necessary to do the first part with php ?and if yes would u explain more how to do this?
2011-04-28, 12:43 PM
First of all, Install this plugin: http://community.mybboard.net/thread-31860.html
Now Go to: ACP > Templates > Your theme's templates > Index Templates > index_boardstats > and Replace all code with this;
Now Go to: ACP > Templates > Your theme's templates > Index Templates > index_boardstats > and Replace all code with this;
<if $mybb->user['uid'] == "0" then>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div style="margin:0 auto;text-align:center"><strong>Board Statistics disabled</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
<tr>
<td class="trow1"align="center">
<strong>Welcome Guest!<br /> The Board Statistics can be seen by registered members only!You are welcomed to join our community. <a href="member.php?action=register">Register</a><br />
Already a member? <a href="member.php?action=login">Login</a></strong></td>
</tr>
</tbody>
</table>
<br />
<else>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<thead>
<tr>
<td class="thead">
<div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" title="[-]" /></div>
<div><strong>{$lang->boardstats}</strong></div>
</td>
</tr>
</thead>
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$forumstats}
<tr>
<td class="tfoot" style="text-align: right">
<span class="smalltext">
{$logoutlink}
<a href="misc.php?action=markread">{$lang->markread}</a> |
<a href="showteam.php">{$lang->forumteam}</a> |
<a href="stats.php">{$lang->forumstats}</a>
</span>
</td>
</tr>
</tbody>
</table>
<br />
</if>
2011-04-28, 02:03 PM
Lol m8te i just didht saw the download button xD thanks my thread answer
2011-04-28, 06:37 PM
After using, this is the error in index page:
Parse error: syntax error, unexpected ',' in homeurl\index.php(274) : eval()'d code on line 21
Parse error: syntax error, unexpected ',' in homeurl\index.php(274) : eval()'d code on line 21
2011-04-28, 07:28 PM
would u show me a screenshot?
2011-04-29, 05:07 AM
Its OK right now, Thanks Yaldaram and TheUninvited > http://www.nadlerzone.com