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
  #2  
Old 07-25-2004, 08:04 PM
turbidblue's Avatar
turbidblue turbidblue is offline
 
Join Date: Apr 2004
Location: Indiana
Posts: 89
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 07-25-2004, 08:11 PM
the Sandman's Avatar
the Sandman the Sandman is offline
 
Join Date: Aug 2003
Location: Tampa, FL
Posts: 229
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it add queries?
Reply With Quote
  #4  
Old 07-27-2004, 06:18 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I believe it doens't
Reply With Quote
  #5  
Old 07-27-2004, 12:12 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice job
Reply With Quote
  #6  
Old 07-27-2004, 05:25 PM
Wayne Luke's Avatar
Wayne Luke Wayne Luke is offline
Senior Member
 
Join Date: Jan 2002
Location: Southern California
Posts: 1,694
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by the Sandman
Does it add queries?
It adds one query for every buddy on your buddy list. The function verify_id() results in a query to see if the ID is valid or not.
Reply With Quote
  #7  
Old 08-09-2005, 07:13 PM
MustangLisa's Avatar
MustangLisa MustangLisa is offline
 
Join Date: May 2004
Location: Florida
Posts: 165
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where does this show up? I don't see it anywhere.
Reply With Quote
  #8  
Old 08-09-2005, 07:20 PM
MrZeropage's Avatar
MrZeropage MrZeropage is offline
 
Join Date: Nov 2003
Location: Munich, Germany
Posts: 3,012
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

After installation you should open the buddylist to see the effect
Reply With Quote
  #9  
Old 11-26-2005, 09:08 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

any chance this will be ported to 3.5.X sometime?
Reply With Quote
  #10  
Old 12-09-2005, 08:23 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

could you find sex using this idea? sex of the buddie online?
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 08:00 AM.


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.05376 seconds
  • Memory Usage 2,299KB
  • Queries Executed 23 (?)
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)bbcode_quote
  • (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
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (10)postbit_onlinestatus
  • (10)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