IP.Board Tutorials

Members online like xenforo

Submitted by theezy, , Thread ID: 859

Thread Closed
theezy
Closed Account
Level:
0
Reputation:
7
Posts:
191
Likes:
12
Credits:
128
30-01-2015, 09:24 AM
#1
This tutorial (that i made !) will show you how to put a sidebar block with members online like on xenforo.

Go on your template > boardIndexTemplate and search :

Code:
<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
        <div id='index_stats' class='ipsLayout_right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>


Add after :

Code:
<!-- Members online -->
<div class='ipsSideBlock clearfix'>
<h3>Members online</h3>
<div class='_sbcollapsable'>
<if test="activeNames:|:count($stats['NAMES']) && $this->settings['show_active']">
<p>
<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>
</p>
</if>
</br>
<p>Online :<if test="showActive:|:$this->settings['show_active'] && $this->memberData['gbw_view_online_lists']">{parse expression="sprintf( $stats['TOTAL'] )"}</if>
<if test="$this->settings['show_active']"><p class='statistics_brief desc'>
{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}
<if test="onlineListEnabled:|:$this->settings['allow_online_list']"></if>
</p></if></p>

</div>
</div>
<!-- Members online END -->

Save and done !

Users browsing this thread: 1 Guest(s)