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
Show all buddies in viewing public profile Details »»
Show all buddies in viewing public profile
Version: 1.00, by deathemperor deathemperor is offline
Developer Last Online: Jul 2011 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 08-29-2004 Last Update: Never Installs: 5
 
No support by the author.

Well this is likely to be my first hack (glad to hear that ^^)

the funny thing is that I am answering for my own requests (2 here and 1 at vb.com)
but forget it, here is what this hack does:

it simply let you show all buddies when viewing profile.

In member.php find:

PHP Code:
$userinfo verify_id('user'$userid1115); 
add under it:

PHP Code:
$whichlist "buddylist";
    
// (Dis)Likes
    
$outuserids = array();
    
$outuserids explode(' 'trim($userinfo[$whichlist]));
    if (
trim($userinfo[$whichlist]) != "") {
        
$outusers $DB_site->query("SELECT ".TABLE_PREFIX."user.username,".TABLE_PREFIX."user.userid,".TABLE_PREFIX."usertextfield.".$whichlist." FROM
        "
.TABLE_PREFIX."user,".TABLE_PREFIX."usertextfield WHERE
        "
.TABLE_PREFIX."user.userid = ".TABLE_PREFIX."usertextfield.userid AND
        "
.TABLE_PREFIX."user.userid IN (".implode(',',$outuserids).")
        ORDER BY username"
);
         while (
$outuser $DB_site->fetch_array($outusers)) {
         if (
$outuser[avatarurl]!= ""){$outuser[avatarurl]="clear.gif";}
         else {
$outuser[avatarurl] = fetch_avatar_url($outuser['userid']);}
         
$buddyavatar    .= "<img src=\"$vboptions[bburl]/$outuser[avatarurl]\">";
         
         
$outuserlist     .= "<a class=\"smallfont\" href=\"$vboptions[bburl]/member.php?u=$outuser[userid]\"/>$outuser[username]</a>";

        }
    } 


in MEMBERINFO templates:

add $buddyavatar for buddy(s) avatar

add $outuserlist for buddy(s) username

and you are done


how bad is this very minor script add 5 queries, if any veteran coder know how to solve this, please have a post, tnx.


don't blame me, this is my first hack you know. ;P

Show Your Support

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

Comments
  #2  
Old 08-30-2004, 03:50 AM
platnum platnum is offline
 
Join Date: Apr 2004
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is there a screen shot or a live demo or something?
Reply With Quote
  #3  
Old 08-30-2004, 03:54 AM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I thought a screen shot is needless, but well I'll post it later
Reply With Quote
  #4  
Old 10-12-2004, 11:27 PM
mikepmm mikepmm is offline
 
Join Date: May 2004
Posts: 15
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very nice
Reply With Quote
  #5  
Old 02-12-2005, 02:30 PM
Ghostsuit's Avatar
Ghostsuit Ghostsuit is offline
 
Join Date: Nov 2001
Location: Glasgow, Scotland
Posts: 199
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Nice idea needs a little work though.
Reply With Quote
  #6  
Old 03-31-2005, 04:35 PM
Benj's Avatar
Benj Benj is offline
 
Join Date: May 2006
Posts: 180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

2 questions

could i config it so it shows profile pictures.

is there limit on it, because i have a feeling some people might add hundreds of buddies, like a pop up or something
Reply With Quote
  #7  
Old 07-11-2005, 01:17 AM
akanevsky akanevsky is offline
 
Join Date: Apr 2005
Posts: 3,972
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does it show anyone's buddies or only my own?
Reply With Quote
  #8  
Old 11-08-2005, 01:17 AM
PennylessZ28 PennylessZ28 is offline
 
Join Date: Mar 2002
Location: North America
Posts: 737
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just to update anyone, it don't work with 3.5 I tried. The line though is now

Code:
$userinfo = verify_id('user', $vbulletin->GPC['userid'], 1, 1, 15);
Reply With Quote
  #9  
Old 11-08-2005, 07:29 AM
Snoop-It's Avatar
Snoop-It Snoop-It is offline
 
Join Date: Jun 2005
Posts: 129
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yo hello.. boss..

this don't work with 3.5.1... i get some fatal error on member.php when trying to view ones profile.

Could the author please update this mod for 3.5.1 version or 3.5.x

Thanks!
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 02:45 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.04639 seconds
  • Memory Usage 2,290KB
  • Queries Executed 22 (?)
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
  • (1)bbcode_code
  • (2)bbcode_php
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (8)postbit
  • (9)postbit_onlinestatus
  • (9)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
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete