IP.Board Tutorials

Members online like xenforo

Submitted by theezy, , Thread ID: 859

Thread Closed

RE: Members online like xenforo

TestBg
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
7
Credits:
17
21-08-2017, 09:25 PM
#11
Cool tutorial .... thanks .....
Is there one for IPS 4.2.2

RE: Members online like xenforo

jhoancito123
Newbie
Level:
1
Reputation:
0
Posts:
18
Likes:
0
Credits:
2
11-04-2022, 05:43 AM
#12
30-01-2015, 09:24 AM
theezy 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 !

seria genial que ponieran muestra de tu trabajo amigo y gracias Wait What

Users browsing this thread: 1 Guest(s)