2018-04-02, 09:11 PM
Hi,
I hope the subject is in the right place.
How to show user avatar in the Who's Online.
View:
![[Image: EkranResmi2018-04-0222.42.44.png]](https://camo.mybb.com/695e92ffcb2d0d23c01e3f34a1c9aa0871495bd1/687474703a2f2f68697a6c69726573696d79756b6c652e636f6d2f696d616765732f323031382f30342f30322f456b72616e5265736d69323031382d30342d303232322e34322e34342e706e67)
![[Image: EkranResmi2018-04-0223.04.13.png]](https://camo.mybb.com/8256c2086834651986e348962ec3fc6a2e3399ff/687474703a2f2f68697a6c69726573696d79756b6c652e636f6d2f696d616765732f323031382f30342f30322f456b72616e5265736d69323031382d30342d303232332e30342e31332e706e67)
Open the FTP -> index.php:
Find the following code: (line 59)
Change:
And open the Admin KP -> Themes and Templates -> Templates -> Your Theme Templates -> Index Templates -> index_whosonline_memberbit
Open and replace all the codes with this one.
---
Open the FTP -> online.php:
Find this code: (Line 207)
Change:
Admin KP -> Themes & Templates -> Templates -> Your Theme Templates -> Whos Online Templates -> online_row
Replace all the codes with this one.
Good works!
I hope the subject is in the right place.
How to show user avatar in the Who's Online.
View:
Open the FTP -> index.php:
Find the following code: (line 59)
SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.displaygroup
Change:
SELECT s.sid, s.ip, s.uid, s.time, s.location, s.location1, u.username, u.invisible, u.usergroup, u.avatar, u.displaygroup
And open the Admin KP -> Themes and Templates -> Templates -> Your Theme Templates -> Index Templates -> index_whosonline_memberbit
Open and replace all the codes with this one.
<div style="float: left">{$comma}<div style="margin-left: 5px"></div></div><div style="margin-top: 5px"><img src="{$user['avatar']}" width="20px" height="20px" style="float: left; margin-top: -4px; border-radius: 2px; border: 1px solid #ccc; margin-right: 3px"><div style="float: left; margin-top: -1px">{$user['profilelink']}{$invisiblemark}</div></div>
---
Open the FTP -> online.php:
Find this code: (Line 207)
SELECT DISTINCT s.sid, s.ip, s.uid, s.time, s.location, u.username, s.nopermission, u.invisible, u.usergroup, u.displaygroup
Change:
SELECT DISTINCT s.sid, s.ip, s.uid, s.time, s.location, u.username, s.nopermission, u.avatar, u.invisible, u.usergroup, u.displaygroup
Admin KP -> Themes & Templates -> Templates -> Your Theme Templates -> Whos Online Templates -> online_row
Replace all the codes with this one.
<tr>
<td class="trow1"><img src="{$user['avatar']}" width="38px" height="38px" style="float: left; margin-right: 5px; border-radius: 3px"/>{$online_name}{$user_ip}</td>
<td align="center" class="trow2">{$online_time}</td>
<td class="trow1" width="50%">{$location}</td>
</tr>
Good works!