Version: 1.00, by Velocd
Developer Last Online: Nov 2023
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.
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.'">';
}
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.'">';
}
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
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">';