30-01-2015, 09:24 AMtheezy Wrote: 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 !
<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>>
<!-- 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 -->
Loading Info...