The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
enhanced buddylist with additional information Details »» | |||||||||||||||||||||||||||
enhanced buddylist with additional information
Developer Last Online: Mar 2023
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'); Code:
$phrasegroups = array('fronthelp', 'wol'); Code:
while ($buddy = $DB_site->fetch_array($buddys)) Code:
// enhanced buddylist by MrZeropage require_once('./includes/functions_user.php'); $show['currentlocation'] = iif($permissions['wolpermissions'] & CANWHOSONLINE, true, false); // end endhanced buddylist Code:
$doneuser["$buddy[userid]"] = true; 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 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> </div></if> </label></td> </tr> 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&focus=1','buddylist','statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,width=250,height=300'); return false;">$vbphrase[open_buddy_list]</a> Have fun Show Your Support
|
Comments |
#2
|
||||
|
||||
worked like a charm!
the code you had as showing up twice in the navbar template, was only in mine once, and it still worked fine [high]* turbidblue clicks install first! [/high] thank you |
#3
|
||||
|
||||
Does it add queries?
|
#4
|
||||
|
||||
I believe it doens't
|
#5
|
||||
|
||||
nice job
|
#6
|
||||
|
||||
Quote:
|
#7
|
||||
|
||||
Where does this show up? I don't see it anywhere.
|
#8
|
||||
|
||||
After installation you should open the buddylist to see the effect
|
#9
|
||||
|
||||
any chance this will be ported to 3.5.X sometime?
|
#10
|
|||
|
|||
could you find sex using this idea? sex of the buddie online?
|
Thread Tools | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|