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
vBBuddies Details »»
vBBuddies
Version: 1.0.3, by SS9267547 SS9267547 is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

Version: 3.0.7 Rating:
Released: 04-01-2005 Last Update: 06-11-2005 Installs: 43
DB Changes
 
No support by the author.

During the development of my gaming site I was in the need of a hack that would display the buddies list publicly and I found one that I thought would work well for my needs called vBFriends. However I also found that it was in need of additional features to work more for what I needed it for so I modified this hack. Now with the permission of Cloud-Warrior (John Breslin) I?ve decided to release this little hack to anyone else who might find this useful called vBBuddies.

vBBuddies is similar to vBFriends however instead of showing all the members links (linked from, linked to, etc), vBBuddies simply displays all the members buddies only. Buddies that are of course linked back to the member. So for example a member named ?Bob? added a member named ?John? to his buddy list but ?John? didn?t add ?Bob? to his list. Now if that is the case, when looking at either ?Bobs? or ?Johns? public buddy lists you won?t see their names on there. However if both members add each others names to their buddy lists it will then classify that they are true buddies and put them on the list. Hope that makes sense. That?s pretty well what this little hack does.

In addition to the change above, I?ve noticed that there were two main features lacking from vBFriends that members have noted as well I needed done which was more optimized queries, templates and the option for multi paged system. So I?ve added those to this hack, I just hope that I was able to lower the queries down, think at this moment its at 10 total. Anyway enjoy the hack, hope someone else can find this useful.

There are 8 screenshots included for you to see what this little hack can do. :nervous: Now this isn't the greatest coded hack so I'm sure there are bugs. Please do let me know if there are problems with it and I'll try to find the problem if I have then time to do so. Also if you like the hack make sure hit the install button! Enjoy guys!

vBBuddies Information

Current Version Number: 1.0.3
vBulletin Test Version(s): 3.0.7 +
Queries to run: 1
File Edits: 8
New Phrases: 28
New Templates: 6
Template Edits: 4
Last Edited: June 12, 2005
Edited By: Lucas Pawelczyk
Install Time: 30 minutes
Difficulty: Moderate

Current Features
  1. Option to activate or disable public buddy list globally.
  2. Option for user to activate or disable public buddy list.
  3. Give permissions to whatever usergroup you want to be able to access this.
  4. Option for maximum number of members you would like to display per line.
  5. Option for maximum number of members to be displayed per page.
  6. Ability to have buddy tool menu to add or remove a member to your buddy list.
  7. Option to activate or disable private message notification of new buddy.
  8. Ability to view buddy links via member profile.
  9. Ability to activate or disable online status display option, avatars display option, user title display option, posts display option, birthday display option, age display option, join date display option and last active display option from admincp.
  10. Ability to display information text about feature with members.
  11. Option to activate or disable buddy indicator from memberslist.

Donations Welcome
lucas@gamitopia.com

Addons

Addon # 1 (Usercp basic addon):
https://vborg.vbsupport.ru/showpost....8&postcount=53

Addon # 2 (Profile advanced addon):
https://vborg.vbsupport.ru/showpost....1&postcount=73

Show Your Support

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

Comments
  #42  
Old 04-06-2005, 11:03 AM
SS9267547's Avatar
SS9267547 SS9267547 is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry I can't say, I havn't tested it in 3.0.3 or had time to however I don't see why it wouldn't work.
Reply With Quote
  #43  
Old 04-06-2005, 11:09 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well done. I'll take a look at the script.
Reply With Quote
  #44  
Old 04-06-2005, 11:12 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see the difference - the main difference is that you can't see all the people who link to you and all the people who you link to - that's where the query saving mostly is.
Reply With Quote
  #45  
Old 04-06-2005, 11:30 AM
SS9267547's Avatar
SS9267547 SS9267547 is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yeah since I didn't need that for my site I took it out. Only needed a system to show who are your true buddies. Also Cloud-Warrior told me he was going to release a new version of his hack so I didn't bother adding the whole link to/from system. However I do come a accross query problems when and if I want to count each members true buddy count. Don't know how to fix the problem so I can't add that feature to this hack.
Reply With Quote
  #46  
Old 04-06-2005, 11:54 AM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just some minor template edit so that it works in vB 3.0.7 (at least on my forums).

In modifyoptions,

Find:

HTML Code:
			<if condition="$vboptions['allowvbcodebuttons']">
Add ABOVE, I REPEAT ABOVE:

HTML Code:
<!-- Start Buddies List User Options -->
<fieldset class="fieldset">
<legend>$vbphrase[buddies_publicoptionsstatus]</legend>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0" width="100%">
<tr>
<td>$vbphrase[buddies_publicoptionsdecs]</td>
</tr>
<tr>
<td><input type="checkbox" name="buddiesliststatus" value="1" <if condition="$bbuserinfo[buddiesliststatus] == 1">checked</if>>$vbphrase[buddies_publicoptionsenable]</td>
</tr>
</table>
</fieldset>
<!-- End Buddies List User Options -->		
Otherwise the whole table is off, and the window won't collapse.



Also, for some reason, the BUDDIES template doesn't work for me, so I'm rewriting it. The whole format is wrong.

Otherwise, good job!
Reply With Quote
  #47  
Old 04-06-2005, 12:00 PM
SS9267547's Avatar
SS9267547 SS9267547 is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

With modifyoptions, I don't see to have any problems with the table in 3.0.7 however I did forget to add the code so it can be collapsable. I'll fix that in the next release. Does anyone else get any problems?
Reply With Quote
  #48  
Old 04-06-2005, 12:09 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I figured out the BUDDIES template - it's fine, it was a conflict with one of my custom templates.
Reply With Quote
  #49  
Old 04-06-2005, 12:09 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SS9267547
With modifyoptions, I don't see to have any problems with the table in 3.0.7 however I did forget to add the code so it can be collapsable. I'll fix that in the next release. Does anyone else get any problems?
Just refer to my post and try that - it will put it in the right place.
Reply With Quote
  #50  
Old 04-06-2005, 12:20 PM
SS9267547's Avatar
SS9267547 SS9267547 is offline
 
Join Date: Nov 2001
Location: Canada
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Okay I'll take a look at the code when I get home from work. If you see anything else that needs work please do let me know. I'll most likly, if I have time, will finish the updates for version 1.0.2 today.
Reply With Quote
  #51  
Old 04-06-2005, 12:47 PM
Erwin's Avatar
Erwin Erwin is offline
 
Join Date: Jan 2002
Posts: 7,604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also, you forgot to make use of $userinfo['buddiesliststatus']. You've got the data, might as well use it.

In MEMBERINFO, find:

HTML Code:
			<if condition="$vboptions['buddieslist_active']">			
REPLACE with:

HTML Code:
			<if condition="$vboptions['buddieslist_active'] AND $userinfo['buddiesliststatus']">			
This way, even if global options is switch on, if the user in his own options switch it off, it will not show.
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 11:56 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.04703 seconds
  • Memory Usage 2,322KB
  • Queries Executed 25 (?)
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
  • (4)bbcode_html
  • (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
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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