Back to vBulletin 3.7 Template Modifications

Show online/offline status in friends block
Mod Version: 1.00, by Taragon

This modification is in the archives.
vB Version: 3.7.x Rating: (4 votes - 5.00 average) Installs: 72
Released: 02 Mar 2008 Last Update: 02 Mar 2008 Downloads: 183
Not Supported Template Edits Re-usable Code Translations  

Show online/offline status in friends block
  • Shows the online/offline status in the user profile friends block like ie. MySpace.

Demo: http://www.letsgather.net/member.php?u=1

Code:
----------------------------
memberinfo_tiny
FIND:
----------------------------
<li class="memberinfo_tiny">
<if condition="$user['avatarurl']">
	<a href="member.php?$session[sessionurl]u=$user[userid]"><img src="$user[avatarurl]" alt="$user[username]"<if condition="$user['avatarwidth']"> width="$user[avatarwidth]"</if><if condition="$user['avatarheight']"> height="$user[avatarheight]"</if> border="0" class="alt2" /></a>
</if>				
	<div class="smallfont" title="$user[username]"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a></div>
</li>
----------------------------
REPLACE with:
----------------------------
<li class="memberinfo_tiny">
<if condition="$user['avatarurl']">
	<a href="member.php?$session[sessionurl]u=$user[userid]"><img src="$user[avatarurl]" alt="$user[username]"<if condition="$user['avatarwidth']"> width="$user[avatarwidth]"</if><if condition="$user['avatarheight']"> height="$user[avatarheight]"</if> border="0" class="alt2" /></a>
</if>				
	<div class="smallfont" title="$user[username]"><a href="member.php?$session[sessionurl]u=$user[userid]">$user[musername]</a></div>
	<div class="smallfont">
		<if condition="$user['onlinestatus']">$user[onlinestatus]</if>
	</div>
</li>
----------------------------
memberinfo_css
FIND:
----------------------------
/**
* Memberinfo Tiny
*/
li.memberinfo_tiny {
	height:105px;
	width:75px;
	overflow:hidden;
	float:$stylevar[left];
	text-align:center;
	margin:1px;
}
----------------------------
REPLACE with:
----------------------------
/**
* Memberinfo Tiny
*/
li.memberinfo_tiny {
	height:115px;
	width:75px;
	overflow:hidden;
	float:$stylevar[left];
	text-align:center;
	margin:1px;
}
----------------------------
Done!

Download

This modification is archived, downloads are still allowed.

File Type: %1$s taragon_show_online_offline_status_in_friends_block.txt (2.0 KB, 210 downloads)

Screenshots

Click image for larger version
Name:	default_style.jpg
Views:	709
Size:	20.6 KB
ID:	76620   Click image for larger version
Name:	element_style.jpg
Views:	605
Size:	18.6 KB
ID:	76621  


vblts.ru supports vBulletin®, 2022-2024