Members online like xenforo

by theezy - 30-01-2015, 08:24 AM
Closed Account
Posts:
214
Joined:
Jan 2015
Likes:
9
Credits:
120
Reputation:
7
3 Years of Service
#1
OP
Posted: 30-01-2015, 08:24 AM
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 !
Novice
Posts:
28
Joined:
Feb 2015
Likes:
3
Credits:
98
Reputation:
0
3 Years of Service
#2
User got warned for this post
Posted: 14-02-2015, 06:14 PM
Thank you. That's really amazing!
YouR JuSt G4Y
Posts:
879
Joined:
Feb 2015
Likes:
37
Credits:
429
Reputation:
3
3 Years of Service
#3
User got warned for this post
Posted: 15-02-2015, 03:32 AM
Thanks for this needed it for my forum Smile
Novice
Posts:
25
Joined:
Apr 2015
Likes:
1
Credits:
6
Reputation:
0
3 Years of Service
#4
Posted: 14-05-2015, 07:42 AM
actually , there's a plugin to do this thing.. in ips 4.0.x
<div class="postbit-usertitle">
Posts:
642
Joined:
Feb 2015
Likes:
54
Credits:
1,310
Reputation:
35
3 Years of Service
#5
Posted: 14-05-2015, 07:47 AM
(14-05-2015, 07: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]
Novice
Posts:
25
Joined:
Apr 2015
Likes:
1
Credits:
6
Reputation:
0
3 Years of Service
#6
Posted: 14-05-2015, 07:58 AM
the plugin is called "Who Was Online"... free on ips site
Newbie
Posts:
14
Joined:
May 2015
Likes:
0
Credits:
15
Reputation:
0
3 Years of Service
#7
Posted: 02-06-2015, 02:01 AM
wow~!
really thanks~! very good tip
Novice
Posts:
28
Joined:
Nov 2015
Likes:
1
Credits:
18
Reputation:
0
2 Years of Service
#8
Posted: 10-12-2015, 01:20 AM
thank for share man ^^
Closed Account
Posts:
76
Joined:
Jun 2015
Likes:
10
Credits:
0
Reputation:
0
3 Years of Service
#9
Posted: 22-01-2016, 10:35 PM
Nice, thank you man.
Newbie
Posts:
11
Joined:
Feb 2017
Likes:
0
Credits:
13
Reputation:
0
1 Year of Service
#10
Posted: 11-02-2017, 05:13 PM
I agree who say this is better than having an extra plugin. Thanks a lot.
The last reply on this thread is older than a month. Please do not unnecessarily bump it.
Register an account or login to reply
Create an account
Create a free account today and start posting right away. It only takes a few seconds.
Login
Log into an existing account.
1 Guest(s)