Current time: 07-04-2009, 10:41 PM Hello There, Guest! (LoginRegister)


Post Reply 
 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tip&Trick]Hide Board Statisctic from guests!
06-06-2009, 02:16 AM
Post: #1
[Tip&Trick]Hide Board Statisctic from guests!
This will allow you to hide the Board Statistic from guests. To have an idea how the mod looks like in action, please check the screenshots attached at the end of this topic Smile

First of all you must have the PHP in Templates and Template Conditionals plug in installed:

http://community.mybboard.net/thread-31860.html

After you install that plug in, go to the Acp of your forum-Templates & Style-Templates-Default Templates-Index Page Templates-index_boardstats.

Replace the whole code in there with the following:

Code:
<if $GLOBALS['mybb']->user['usergroup'] == 1 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>


Attached File(s) Thumbnail(s)
   

Find all posts by this user
Quote this message in a reply
06-06-2009, 07:29 AM
Post: #2
RE: [Tip&Trick]Hide Board Statisctic from guests!
Thats really nice tutorial, New and unique
Good work !

MY PLUGINS LIST
- Proud To Be A Muslim - I Love Islam Heart
Visit this user's website Find all posts by this user
Quote this message in a reply
06-06-2009, 06:28 PM
Post: #3
RE: [Tip&Trick]Hide Board Statisctic from guests!
Thanks for the feedback ghazal.

Find all posts by this user
Quote this message in a reply
06-06-2009, 08:59 PM
Post: #4
RE: [Tip&Trick]Hide Board Statisctic from guests!
Cool tut babjusi
Find all posts by this user
Quote this message in a reply
06-06-2009, 11:10 PM
Post: #5
RE: [Tip&Trick]Hide Board Statisctic from guests!
(06-06-2009 08:59 PM)that_guy Wrote:  Cool tut babjusi

Thanks.

Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: