vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   [mini-hack] Stylin' Buddy List (https://vborg.vbsupport.ru/showthread.php?t=42927)

Gohan 08-30-2002 07:33 AM

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.'">';
  } 


Gohan 08-30-2002 07:35 AM

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 :D

Boofo 08-30-2002 07:35 AM

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.'">';
  } 



Boofo 08-30-2002 07:37 AM

Velocd, how do I make it so the title can have smilies in it for the buddy listing?

Gohan 08-30-2002 07:41 AM

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

Boofo 08-30-2002 07:45 AM

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


Dean C 08-30-2002 08:21 AM

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

Boofo 08-30-2002 08:37 AM

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">';

Mathieu 08-30-2002 08:43 AM

thanks for this hack a good job

Dean C 08-30-2002 03:10 PM

^ thanks boofo :D


All times are GMT. The time now is 08:04 AM.

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.01199 seconds
  • Memory Usage 1,760KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (4)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete