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
  #192  
Old 07-12-2005, 01:41 AM
Kagami Kyoji's Avatar
Kagami Kyoji Kagami Kyoji is offline
 
Join Date: Mar 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SS9267547
Kagami Kyoji: With the 'View Buddies', where are you trying to view the link from? If its from the profile.php or member.php, whatever lol can't think right now, check to see that you did all the steps, sounds like to missed something.

Dark Visor: Yes its something it looks like I've missed, this software just got released without alot of public beta testing so no one has really come up with any big issues. Anyway thanks for the code, will add in whenever there is a next release. Also if there are other issues please do share.
I mean putting a link into the NAV template which says "View Buddies" and takes you to your buddies list.

Or basically the http://www.l9ianime.com/forums/buddies.php?u=1...where is this part found in the install script? I cant find it? I have it working once I enter a number or a member number but, I cannot get it to automatically go to my buddies list without moving up to the address bar and typing in 1 after the u=.
Reply With Quote
  #193  
Old 07-12-2005, 02:40 AM
Kagami Kyoji's Avatar
Kagami Kyoji Kagami Kyoji is offline
 
Join Date: Mar 2005
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ah! Nevermind I simply added

PHP Code:
        <td class="vbmenu_control"><a href="buddies.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[viewmemberbuddies]</a></td
in the navbar template =P
Reply With Quote
  #194  
Old 07-12-2005, 12:56 PM
illPhever illPhever is offline
 
Join Date: Mar 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dark Visor
Here goes the fix...

DESCRIPTION:

Will disable the PM buddy list add notification, if a person wants to keep his/her buddy list private.
thanks Dark Visor.

SS9267547, also on the subject of Private Messaging...i have noticed that even if a user has "Receive Email Notification of New Private Messages" checked in their UserCP, they do not receive email notifications for the VBBuddies automatic notification PM's.

can anyone help on a little more fine-tuning to address this?
Reply With Quote
  #195  
Old 07-15-2005, 06:43 PM
illPhever illPhever is offline
 
Join Date: Mar 2004
Posts: 27
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

okay, i think i've found the vb code that sends on the email pm notification, but i'm not sure how to use it in the vbbuddies hack.

in private.php is:
PHP Code:
                    if ($user['emailonpm'] AND $user['usergroupid'] != AND $user['usergroupid'] != 4)
                    {
                        
$touserinfo = &$user;
                        eval(
fetch_email_phrases('pmreceived'$touserinfo['langageid'], '''email'));
                        
vbmail($touserinfo['email'], $emailsubject$emailmessage);
                    } 
and in the vbbuddies hack is code for the sendprivatemessage function in these 3 places of profile.php:
PHP Code:
function sendprivatemessage ($userinfo$message$subject)
{
    global 
$DB_site$vbphrase;

    
$userarray["$userinfo[userid]"] = $userinfo['username'];
    
$serializedinfo serialize($userarray);
    
$DB_site->query("INSERT INTO " TABLE_PREFIX "pmtext (fromuserid, fromusername, title, message, touserarray, iconid, dateline, showsignature, allowsmilie) values ('1', '" addslashes($vbphrase['autosystemmessage']) . "', '" addslashes($subject) . "', '" addslashes($message) . "', '".addslashes($serializedinfo)."', '4', '" TIMENOW ."', '1', '1')");
    
$pmid $DB_site->insert_id();
    
$DB_site->query("INSERT INTO " TABLE_PREFIX "pm (pmtextid, userid) values (" $pmid ", '" $userinfo['userid'] . "')");
    
$DB_site->shutdown_query("UPDATE ".TABLE_PREFIX."user SET pmtotal = pmtotal + 1, pmunread = pmunread + 1, pmpopup = " $userinfo['pmpopup'] . " WHERE userid = '" $userinfo['userid'] . "'");
}
// ################################## End vBBuddies Functions ################################ 
PHP Code:
// Start vBBuddies (Edit by: Lucas)
                        
if($vboptions['buddieslist_enablepmrequest'])
                        {
                            
$frombuddyname $bbuserinfo['username'];
                            
$frombuddyid $bbuserinfo['userid'];    
                            
$tobuddyname $userid['username'];
                            
$tobuddyid $userid['userid'];
                            eval(
fetch_email_phrases('buddies_autopmrequest'iif(isset($newpost_lang["$toemail"]), $newpost_lang["$toemail"], 0)));
                            
$message convert_url_to_bbcode($message);
                            
sendprivatemessage ($userid$message$subject);
                        }                    
                        
// End vBBuddies (Edit by: Lucas) 
PHP Code:
// Start vBBuddies (Edit by: Lucas)
    
if($vboptions['buddieslist_enablepmrequest'])
    {    
        if (
$var == 'buddylist')
        {
            
$frombuddyname $bbuserinfo['username'];
            
$frombuddyid $bbuserinfo['userid'];    
            
$tobuddyname $userinfo['username'];
            
$tobuddyid $userinfo['userid'];
            eval(
fetch_email_phrases('buddies_autopmrequest'iif(isset($newpost_lang["$toemail"]), $newpost_lang["$toemail"], 0)));
            
$message convert_url_to_bbcode($message);
            
sendprivatemessage ($userinfo$message$subject);            
        }
    }    
    
// End vBBuddies (Edit by: Lucas) 
i think the private.php code can be changed and inserted after the sendprivatemessage function to work for the vbbuddies hack, too, but i don't know how. can anyone assist in altering the private.php code to send out the email pm notification for the vbbuddies hack, too?
Reply With Quote
  #196  
Old 07-18-2005, 06:26 PM
commTRU commTRU is offline
 
Join Date: May 2005
Location: Tyne and Wear, UK
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much for the great hack.. Now I just need people to join the forum other than me to test it
Reply With Quote
  #197  
Old 07-31-2005, 05:20 AM
jrofosho jrofosho is offline
 
Join Date: Apr 2005
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

i get the following database error when i attempt to change usergroup settings.

Quote:
Database error in vBulletin 3.0.7:

Invalid SQL: UPDATE usergroup SET

### UPDATE QUERY GENERATED BY fetch_query_sql() ###
title = 'Registered Users',
description = '',
usertitle = 'Member',
opentag = '',
closetag = '',
passwordexpires = '0',
passwordhistory = '0',
uttstore_discount = '0',
canviewbuddieslist = '1',
nexia_specific_random = '1',
attachlimit = '0',
avatarmaxwidth = '120',
avatarmaxheight = '120',
avatarmaxsize = '20000',
profilepicmaxwidth = '100',
profilepicmaxheight = '100',
profilepicmaxsize = '65535',
pmquota = '50',
pmsendmax = '5',
forumpermissions = '127487',
pmpermissions = '3',
calendarpermissions = '19',
wolpermissions = '1',
adminpermissions = '0',
genericpermissions = '4044511',
genericoptions = '30',
feedbackpermissions = '239',
arcadepermissions = '19'
WHERE usergroupid=2
mysql error: Unknown column 'canviewbuddieslist' in 'field list'

mysql error number: 1054
Any help?
Reply With Quote
  #198  
Old 08-06-2005, 02:34 PM
T3MEDIA T3MEDIA is offline
 
Join Date: Dec 2004
Posts: 944
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I messed up for some reason the avatars do not show up on the profile pages anymore. just the avatars (colum and rows) it shows the amounts.

What part handles this so I can look to see where I messed up.
Thanks.
Anyone that knows please advise.
Reply With Quote
  #199  
Old 08-13-2005, 03:35 PM
commTRU commTRU is offline
 
Join Date: May 2005
Location: Tyne and Wear, UK
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You know the Buddy/Ignore list that is linked in the User CP? Is there a way to integrate vBBuddies with this just to spruce it up a little bit?
Reply With Quote
  #200  
Old 08-15-2005, 01:18 PM
commTRU commTRU is offline
 
Join Date: May 2005
Location: Tyne and Wear, UK
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, in relation to the above, is there a way of putting the public display option from the Option section of the user cp into the Buddy/Ignore template?
Reply With Quote
  #201  
Old 08-21-2005, 02:30 PM
yoyoyoyo's Avatar
yoyoyoyo yoyoyoyo is offline
 
Join Date: Dec 2004
Location: USA
Posts: 1,612
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Typos found on buddies.php:
Quote:
Remember that both members need to have each others names added to thier lists to offically be listed here as buddies.
Also...what is the phrase that is supposed to be next to the checkbox that is checked with no writing?

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:22 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04889 seconds
  • Memory Usage 2,353KB
  • Queries Executed 27 (?)
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
  • (5)bbcode_php
  • (4)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_postinfo_query
  • fetch_postinfo
  • 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