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

Closed Thread
 
Thread Tools
[mini-hack] Stylin' Buddy List Details »»
[mini-hack] Stylin' Buddy List
Version: 1.00, by Velocd Velocd is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Version: 2.2.x Rating:
Released: 08-28-2002 Last Update: Never Installs: 50
 
No support by the author.

Stylin' Buddy List

This hack is so small, and so quick, that it could "almost" be considered a template addition. In some cases, I should have just included it in the template forum, but in the long run more people would see it this way.

Basically this will make you're current vBulletin UserCp buddy list, look like this one.

You might have to adjust it alittle to your own preference, like most hacks.

Show Your Support

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

Comments
  #32  
Old 08-30-2002, 07:33 AM
Gohan's Avatar
Gohan Gohan is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Avatar buddy for online

PHP Code:
  if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
    
$onoff="on";
  } else {
    
$onoff="off";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } 
change to:

PHP Code:
  if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
    
$onoff="on";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } else {
    
$onoff="off";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } 
  #33  
Old 08-30-2002, 07:35 AM
Gohan's Avatar
Gohan Gohan is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
It's bira's away user hack. Just look up bira in the profile and it should be listed there.
Thank ya, mate
  #34  
Old 08-30-2002, 07:35 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What does this do?

Quote:
Originally posted by Gohan
Avatar buddy for online

PHP Code:
  if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
    
$onoff="on";
  } else {
    
$onoff="off";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } 
change to:

PHP Code:
  if ($buddy['lastactivity'] > $datecut and (!$buddy['invisible'] or $bbuserinfo['usergroupid'] == 6) and $buddy['lastvisit'] != $buddy['lastactivity']) {
    
$onoff="on";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } else {
    
$onoff="off";
    
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
  } 
  #35  
Old 08-30-2002, 07:37 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Velocd, how do I make it so the title can have smilies in it for the buddy listing?
  #36  
Old 08-30-2002, 07:41 AM
Gohan's Avatar
Gohan Gohan is offline
 
Join Date: Nov 2001
Location: The Netherlands
Posts: 141
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by Boofo
What does this do?
Velocd create hack for offline user only but i like also for online user with their avatar
  #37  
Old 08-30-2002, 07:45 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you sure his doesn't already do this? The way I understood it is that it would show the avatar for online users as well, but not washed out (as I call it).

Quote:
Originally posted by Gohan


Velocd create hack for offline user only but i like also for online user with their avatar
  #38  
Old 08-30-2002, 08:21 AM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

velocd - is there any chance that you could make it so that if the avatar is bigger than the column... it resizes it to fit?

- Mist
  #39  
Old 08-30-2002, 08:37 AM
Boofo's Avatar
Boofo Boofo is offline
 
Join Date: Mar 2002
Location: Des Moines, IA (USA)
Posts: 15,776
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Yes, there is a way. Thank you for reminding me how to do it. These are set at 64x64, but you can use whatever dimensions you need.

In the usercp.php file, replace this:

Code:
$avatarimage='<img src="'.$avatarurl.'" border="0" alt="Search for all posts by '.$username.'">';
With this:

Code:
$avatarimage='<img src="'.$avatarurl.'" border="0" alt="Search for all posts by '.$username.'" width="64" height="64">';
And replace this:

Code:
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'">';
With this:

Code:
$avatarimage='<img src="'.$avatarurl.'" border="0" style="filter:alpha(opacity=50)" alt="Search for all posts by '.$username.'" width="64" height="64">';
  #40  
Old 08-30-2002, 08:43 AM
Mathieu Mathieu is offline
 
Join Date: Mar 2002
Posts: 19
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

thanks for this hack a good job
  #41  
Old 08-30-2002, 03:10 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

^ thanks boofo
Closed Thread


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 10:52 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.05064 seconds
  • Memory Usage 2,328KB
  • 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_code
  • (4)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
  • (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