UBB.Dev
############################################################
# Avatar for Memberlist Hack v1.0 UBB 6.04c #
# #
############################################################
# #
# Required Hacks: #
# - avatar_hack_ubb6_v0.0007e #
# - memberlist_6.3.8 #
# NOTE: Only tested these version, maybe other version #
# will work too. #
# #
############################################################
# #
# Modified Files: #
# cp_memberlist.cgi (cgi), cp_vars_memberlist.pl #
# (template), public_memberlist.pl (template), #
# vars_wordlets_mods.cgi (cgi) #
# #
# Added Files: none #
# #
############################################################
# #
# Author: Zack #
# Co-Author: Goku #
# #
############################################################
# #
# Description: #
# This hack adds a users avatar to the memberlist as a #
# column. You can set this ON/OFF easily from the CP. #
# You can also change the title of the column if you like #
# in the CP. Enjoy! #
# #
############################################################


#### OPEN cp_memberlist.cgi (cgi-bin)


FIND:
-----------------------------------------------------------------------
print FILE qq!%vars_memberlist = (n!;
-----------------------------------------------------------------------


BELOW ADD:
-----------------------------------------------------------------------
print FILE qq!ML_switch_avatar => "$in{ML_switch_avatar}",n!;
print FILE qq!ML_switch_avatar_width => "$in{ML_switch_avatar_width}",n!;
-----------------------------------------------------------------------
### OPEN cp_vars_memberlist.pl (Templates)


FIND:
-----------------------------------------------------------------------
&RadioField ("AIM", "ML_switch_aim", "yes", "Turns the aim column on/off.", "$vars_memberlist{ML_switch_aim}", "ON|On%%OFF|Off");
-----------------------------------------------------------------------


ABOVE ADD:
-----------------------------------------------------------------------
&RadioField ("Avatar", "ML_switch_avatar", "yes", "Turns the avatar column on/off.", "$vars_memberlist{ML_switch_avatar}", "ON|On%%OFF|Off");
&RegField ("Width Avatar Column", "ML_switch_avatar_width", "yes", "2", "2", "Width?
If you don't no, check your avatar settings.
Example: 64", "$vars_memberlist{ML_switch_avatar_width}");
-----------------------------------------------------------------------
### OPEN public_memberlist.pl (Templates)


FIND:
-----------------------------------------------------------------------
$TBT


$vars_wordlets_mods{ML_col_pubname}

MemberlistGuts
-----------------------------------------------------------------------


REPLACE THAT WITH:
-----------------------------------------------------------------------
$TBT


MemberlistGuts

if ($vars_memberlist{ML_switch_avatar} eq "ON") {
print "$vars_wordlets_mods{ML_col_avatar}";
}

print<
$vars_wordlets_mods{ML_col_pubname}

MemberlistGuts
-----------------------------------------------------------------------
FIND:
-----------------------------------------------------------------------
chomp($user_profile[19]);
-----------------------------------------------------------------------


BELOW ADD:
-----------------------------------------------------------------------
chomp($user_profile[20]);
-----------------------------------------------------------------------
FIND:
-----------------------------------------------------------------------
if ($user_profile[15] ne "") {
print "";
print "$user_profile[15]";
}
else {
print "";
print "$user_profile[0]";
}
-----------------------------------------------------------------------


REPLACE THAT WITH:
-----------------------------------------------------------------------
print "";

if ($vars_memberlist{ML_switch_avatar} eq "ON") {
if ($user_profile[20] ne "") {
print "";
}
else {
print "";
}
}
if ($user_profile[15] ne "") {
print "$user_profile[15]";
}
else {
print "$user_profile[0]";
}
-----------------------------------------------------------------------
### OPEN vars_wordlets_mods.cgi (comes with the other hacks, in your cgi-bin)

FIND:
-----------------------------------------------------------------------
ML_col_joindate => q~Joined Date~,
-----------------------------------------------------------------------


BELOW ADD:
-----------------------------------------------------------------------
ML_col_avatar => q~Avatar~,
-----------------------------------------------------------------------
#########
##
## Now you'r done, so save your files and upload them! Hope y'all like it!
##
#################


or get this hack : http://www.sec5library.f2s.com/ubbhack/avatar_for_memberlist_hack_v1_0.txt
demo?
Demo at : http://www.dbdreamworld.100.nl/cgi-bin/testforum/ultimatebb.cgi?ubb=memberlist
Pretty Nice .. I like it .. hey just a question wasnt Leshrac gonna post his version of the Memberlist
need a lil help modifying this hack please

could someone tell me what to change to make it take the size limit from the actuall avatar hack instead of using tis own size limit

some of my avatars are a bit larger that others or smaller then what i have it set to

its set to 70x70

but when i put 70 in the width for the avatar in memberlist it didnt effect it and also avatars that were taller than 70 in the real file showed full size or normal size i mean and i would like to make it look as uniformed as it is in my posts, they are all the same size there 70x70

so if that is possible please post

thank you
Scott
Hi!
The posted URL for the demo doesn't work confused
Where can i find avatar hack and memberlist hack?

[ June 23, 2001 07:55 AM: Message edited by: Shadow Man ]
Avatar hack:
https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=24&t=000046

Memberlist hack:
https://www.ubbdev.com/ubbcgi/ultimatebb.cgi?ubb=get_topic&f=20&t=000320

enjoy smile
DPK.. Are you going to be adding this to the memberlist any time soon.
i need another place i can get the avatar hack... i cant sign up wit quasic for some reason... it keeps sayin unexpected error.
yo thnx gohan (=zack) i didn't know you were an expert wink . I can just say one thing: this hack rule, without de avatars the list is so colorless
Quote
quote:
I know zack, he's also from the goku.nl forums. The url doesn't work simply because he stoped with his site, the last time a spook him he was busy with practising making 3d pictures. i saw one and it was pretty cool
© UBB.Developers