Current time: 03-28-2024, 02:30 PM Hello There, Guest! (LoginRegister)


Announcement
We have the biggest collection of MyBB Plugins here on the Net. We have currently 175+ MyBB Exclusive Plugins, 80+ MyBB Compatible MyCodes and 16+ MyBB 1.4.x Themes (Some are still under construction...) Thus, we provide you the largest MyBB Stuff on the net including tutorials. Stay with us, you will find out some more to come.
Now you can easily create your own buttons set for MyBB! Click here to have a look...
*** You cannot do your registration behind any Proxies anymore! ***
Welcome Guest[3.88.60.5], connected from
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tip&Trick]Hide Board Statisctic from guests!
11-29-2009, 05:39 PM
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:

<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)
   

babjusi's signature
Find all posts by this user
Quote this message in a reply
01-09-2010, 08:21 PM
Post: #2
RE: [Tip&Trick]Hide Board Statisctic from guests!
Hi Babjusi... I had downloaded and installed the plugin http://community.mybboard.net/thread-31860.html and it installed properly. Then followed word by word your directions here. Don't know why but it will not work for me. I came back to make sure I did it correctly and I have, yet my stats show for guests. I am using 1.4.11 of mybb. Any ideas?
Visit this user's website Find all posts by this user
Quote this message in a reply
01-10-2010, 08:43 AM
Post: #3
RE: [Tip&Trick]Hide Board Statisctic from guests!
(01-09-2010 08:21 PM)Starnova Wrote:  Hi Babjusi... I had downloaded and installed the plugin http://community.mybboard.net/thread-31860.html and it installed properly. Then followed word by word your directions here. Don't know why but it will not work for me. I came back to make sure I did it correctly and I have, yet my stats show for guests. I am using 1.4.11 of mybb. Any ideas?

Can you post here the url to your forum please?

babjusi's signature
Find all posts by this user
Quote this message in a reply
01-10-2010, 02:06 PM
Post: #4
RE: [Tip&Trick]Hide Board Statisctic from guests!
http://www.webxforum.com

Thank you...Tongue
Visit this user's website Find all posts by this user
Quote this message in a reply
01-10-2010, 02:33 PM
Post: #5
RE: [Tip&Trick]Hide Board Statisctic from guests!
(01-10-2010 02:06 PM)Starnova Wrote:  http://www.webxforum.com

Thank you...Tongue

You must place it at the index_boardstats template of the custom theme that you are using cos I checked the source at your forum and it wasn''t there. But try to adjust the code above to that of your custom theme though.

babjusi's signature
Find all posts by this user
Quote this message in a reply
01-11-2010, 01:04 AM (This post was last modified: 01-11-2010 01:31 AM by sinhvienk32.)
Post: #6
RE: [Tip&Trick]Hide Board Statisctic from guests!
ohhh I guess that is the problem I was using the default one. Geeze now that I re-read that again, but I remember it saying the default and DUH.. that meant the template you set at default. Thank you for another great tut.
Visit this user's website Find all posts by this user
Quote this message in a reply
01-11-2010, 11:10 AM
Post: #7
RE: [Tip&Trick]Hide Board Statisctic from guests!
(01-11-2010 01:04 AM)Starnova Wrote:  ohhh I guess that is the problem I was using the default one. Geeze now that I re-read that again, but I remember it saying the default and DUH.. that meant the template you set at default. Thank you for another great tut.

Didi you manage to get it to work now? If you still need help with it, post here the contents of the index_boardstats template of your custom theme and I will put the whole code together for you to use.

babjusi's signature
Find all posts by this user
Quote this message in a reply
01-15-2010, 05:02 AM
Post: #8
RE: [Tip&Trick]Hide Board Statisctic from guests!
Yes it does work and I thank you so much!Smile
Visit this user's website Find all posts by this user
Quote this message in a reply
01-15-2010, 02:19 PM
Post: #9
RE: [Tip&Trick]Hide Board Statisctic from guests!
Glad to have been of help Smile

babjusi's signature
Find all posts by this user
Quote this message in a reply
01-23-2010, 08:52 PM
Post: #10
RE: [Tip&Trick]Hide Board Statisctic from guests!
problem here .
I followed all the steps . downloaded phptpl.php
go to the Acp of your forum-Templates & Style-Templates-Default Templates-Index Page Templates-index_boardstats.
deleted the old code and added th new one

After loging out as a guest i still can see board statics , why ?
Find all posts by this user
Quote this message in a reply
0 member(s) viewed this thread in the last 365 days :
Post Reply 


Was This Thread Useful ?
Please Link To Us
URL
BBCode
HTML

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  [Tip&Trick]Spice up your Admin on postbits and the online list babjusi 5 2,724 05-23-2011 08:59 PM
Last Post: Gpizzle
  [Tip&Trick] Show the Topic Lists on no permissions forums. babjusi 4 2,348 01-11-2010 11:11 AM
Last Post: babjusi
  [Tip&Trick] Receive a pop up notification when receiving new pm''s babjusi 3 2,059 12-16-2009 10:30 AM
Last Post: skiilz
  [Tip&Trick] Default Groups Avatar babjusi 2 1,849 12-12-2009 10:12 AM
Last Post: skiilz
  [Tip&trick]Hide the members in the online list from guests babjusi 1 1,513 11-29-2009 05:38 PM
Last Post: babjusi

Forum Jump:

 
New To Site ?
Some Useful Links
  • Help

  • You Might Need To Register

  • Forum Statistics

  • Mark All Forums Read

  • Forum Staff

  • Log Out
  • Contact Us

  • Mybbcodes

  • Return to Top

  • Return to Content

  • Lite (Archive) Mode

  • RSS Syndication
  • Powered By MyBB, © 2002-2024 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com