IP.Board Tutorials

Members online like xenforo

Submitted by theezy, , Thread ID: 859

Thread Closed
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 !

RE: Members online like xenforo

Warned
#2
Thank you. That's really amazing!

RE: Members online like xenforo

Warned
#3
Thanks for this needed it for my forum Smile

RE: Members online like xenforo

#4
actually , there's a plugin to do this thing.. in ips 4.0.x

RE: Members online like xenforo

#5
14-05-2015, 08:42 AM
thehunters Wrote:
actually , there's a plugin to do this thing.. in ips 4.0.x

Better to just do this then a extra plugin.
[Image: UeTXrZ5.png]

RE: Members online like xenforo

#6
the plugin is called "Who Was Online"... free on ips site

RE: Members online like xenforo

#7
wow~!
really thanks~! very good tip

RE: Members online like xenforo

#8
thank for share man ^^

RE: Members online like xenforo

#9
Nice, thank you man.
CONTACT:
YAHOO: Bebe.MDFK
STEAM: yo_yonutzy2010

RE: Members online like xenforo

#10
I agree who say this is better than having an extra plugin. Thanks a lot.

Users browsing this thread: 4 Guest(s)