Current time: 08-23-2019, 10:01 AM 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[34.204.169.76], connected from Ashburn, Virginia United States
Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tip&trick]Hide the members in the online list from guests
11-29-2009, 05:38 PM
Post: #1
[Tip&trick]Hide the members in the online list from guests
I had make such a mod for another forum software and recently adjusted it for a friend of mine who converted from that forum to mybb.

First of all you must have the PHP in Templates and Template Conditionals plug in installed: (Nice plug in btw, very usefeul too)

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_whosonline.

Replace the whole code in there with the following:

<if $GLOBALS['mybb']->user['usergroup'] == 1 then>
<tr>
<td class="tcat"><span class="smalltext"><strong>Users on line disabled</strong></span></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">Sorry guest but you are not authorised to view the online list.</span></td>
</tr>
<else>
<tr>
<td class="tcat"><span class="smalltext"><strong>{$lang->whos_online}</strong> [<a href="online.php">{$lang->complete_list}</a>]</span></td>
</tr>
<tr>
<td class="trow1"><span class="smalltext">{$lang->online_note}<br />{$onlinemembers}</span></td>
</tr>
</if>

You can see the result in the screenshot attached below. Instead of the line list, it will show the guests the following message:

Users on line disabled
Sorry guest but you are not authorised to view the online list.

It is very handy for the privacy.

The message is hard coded, but you can add the language strings in the language files if you want.

If this is in the wrong place, then I apologize in advance to the mods/admins and feel free to delete it.


Attached File(s) Thumbnail(s)
   

babjusi's signature
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]Hide Board Statisctic from guests! babjusi 14 5,182 05-23-2011 09:00 PM
Last Post: Gpizzle
  [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,344 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,840 12-12-2009 10:12 AM
Last Post: skiilz

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-2019 MyBB Group.
    Golden Crown - Designed and Published by ghazal & exdiogene of MyBBCodes.
    Hosting provided by WWWHostingServer.com