Back to vBulletin 3.0 Add-Ons

enhanced buddylist with additional information
Mod Version: 1.00, by MrZeropage

This modification is in the archives.
vB Version: 3.0.3 Rating: (0 vote - 0 average) Installs: 9
Released: 25 Jul 2004 Last Update: Never Downloads: 2
Not Supported  

I enhanced the buddylist a little, so that beside the name of the buddy you can see when this user had his last activity in the forum, which is most interesting for the offline-contacts.

In addition the administrators can even see what each online-buddy is currently doing in the board, same information as in "who is online", but within the buddylist.

Screenshot of my german version (buddylist) is attached to this posting.

The installation of this cute hack is quite simple:

Open /misc.php

Find:
Code:
$phrasegroups = array('fronthelp');
and REPLACE with
Code:
$phrasegroups = array('fronthelp', 'wol');
Find:
Code:
		while ($buddy = $DB_site->fetch_array($buddys))
and add ABOVE
Code:
		// enhanced buddylist by MrZeropage
		require_once('./includes/functions_user.php');
		$show['currentlocation'] = iif($permissions['wolpermissions'] & CANWHOSONLINE, true, false);
		// end endhanced buddylist
Find
Code:
		$doneuser["$buddy[userid]"] = true;
and add BELOW
Code:
			// enhanced buddylist by MrZeropage
			$userinfo = verify_id('user', $buddy[userid], 1, 1, 15);
			if (!$userinfo['invisible'] OR ($permissions['genericpermissions'] & CANSEEHIDDEN) OR $userinfo['userid'] == $bbuserinfo['userid'])
			{
			$show['lastactivity'] = true;
			$userinfo['lastactivitydate'] = vbdate($vboptions['dateformat'], $userinfo['lastactivity'], true);
			$userinfo['lastactivitytime'] = vbdate($vboptions['timeformat'], $userinfo['lastactivity'], true);
			}
			else
			{
			$show['lastactivity'] = false;
			$userinfo['lastactivitydate'] = '';
			$userinfo['lastactivitytime'] = '';
			}
			// end enhanced buddylist
Save the modified misc.php.

Now open the template buddylistbit and REPLACE its whole content with the following code:
Code:
<tr>
	<td class="alt1"><a href="member.php?$session[sessionurl]u=$buddy[userid]" target="_blank"><img src="$stylevar[imgdir_statusicon]/user_$buddy[statusicon].gif" alt="" title="<phrase 1="$buddy[username]" 2="$buddy[statusicon]">$vbphrase[x_is_y]</phrase>" border="0" /></a></td>
	<td class="alt2"><input type="checkbox" name="userid[]" id="buddy_$buddy[userid]" value="$buddy[userid]" /></td>
	<td class="alt1" width="100%"><label class="smallfont" for="buddy_$buddy[userid]"><if condition="$show['highlightuser']"><span class="highlight"><b>$buddy[username]</b></span><else /><b>$buddy[username]</b></if>
<br>
<if condition="$bbuserinfo['usergroupid']==6">
<if condition="$show['currentlocation']"><div><if condition="$userinfo['action']">$userinfo[action] ($userinfo[where])</if></div></if>
</if>
<if condition="$show['lastactivity']"><div>$vbphrase[last_activity]: $userinfo[lastactivitydate] <span class="time">$userinfo[lastactivitytime]</span>&nbsp;</div></if>
</label></td>
</tr>
Save the template.

If you want everybody to see the information about the current location of each buddy (like in "who is online") instead of showing this information only to the administrators just remove the two colored line in the template-code above.
I did not test this if it works correctly, if the users can see any links to private forums ect. so use this feature at your own risk.

Now edit the template navbar to change the width of the buddylist-popup to 325 pixel:

Code:
<a href="#" onclick="window.open('misc.php?$session[sessionurl]do=buddylist&amp;focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a>
Ths code comes up twice in the template, please edit both data to 325 pixel width.

Have fun

Download

No files for download.

Screenshots

 


vblts.ru supports vBulletin®, 2022-2024