Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
enhanced buddylist with additional information Details »»
enhanced buddylist with additional information
Version: 1.00, by MrZeropage MrZeropage is offline
Developer Last Online: Mar 2023 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 07-24-2004 Last Update: Never Installs: 9
 
No support by the author.

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

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 04-01-2007, 09:01 AM
testebr testebr is offline
 
Join Date: Jan 2004
Posts: 353
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any chance this will be ported and improved to 3.6.X sometime?
Reply With Quote
  #13  
Old 11-01-2007, 01:05 AM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that would be great
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:04 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.05855 seconds
  • Memory Usage 2,221KB
  • Queries Executed 17 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (8)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (3)post_thanks_box
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete