need help on a mod - 11/15/2013 9:07 PM
im using ubb 6.0.5
im trying add avatar to memberlist
cant get it to work
### OPEN public_memberlist.pl (Templates)
FIND:
-----------------------------------------------------------------------
$TBT
<tr bgcolor="$vars_style{TableColorStrip}">
<td><font size="1" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}"><b>$vars_wordlets_mods{ML_col_pubname}</b></font></td>
MemberlistGuts
-----------------------------------------------------------------------
REPLACE THAT WITH:
-----------------------------------------------------------------------
$TBT
<tr bgcolor="$vars_style{TableColorStrip}">
MemberlistGuts
if ($vars_memberlist{ML_switch_avatar} eq "ON") {
print "<td width="$vars_memberlist{ML_switch_avatar_width}"><font size="1" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}"><b>$vars_wordlets_mods{ML_col_avatar}</b></font></td>";
}
print<<MemberlistGuts;
<td><font size="1" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}"><b>$vars_wordlets_mods{ML_col_pubname}</b></font></td>
MemberlistGuts;
-----------------------------------------------------------------------
FIND:
-----------------------------------------------------------------------
if ($user_profile[15] ne "") {
print "<tr>";
print "<td bgcolor="$ML_alt_color"><FONT size="$vars_style{TextSize}" face="$vars_style{FontFace}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile&u=$ML_usernum">$user_profile[15]</a></td>";
}
else {
print "<tr>";
print "<td bgcolor="$ML_alt_color"><FONT size="$vars_style{TextSize}" face="$vars_style{FontFace}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile&u=$ML_usernum">$user_profile[0]</a></td>";
}
-----------------------------------------------------------------------
REPLACE THAT WITH:
-----------------------------------------------------------------------
print "<tr>";
if ($vars_memberlist{ML_switch_avatar} eq "ON") {
if ($user_profile[20] ne "") {
print "<td bgcolor="$ML_alt_color"><img src="$user_profile[20]"></td>";
}
else {
print "<td bgcolor="$ML_alt_color"><img src="$vars_avatar{avurl}/blank.gif"></td>";
}
}
if ($user_profile[15] ne "") {
print "<td bgcolor="$ML_alt_color"><FONT size="$vars_style{TextSize}" face="$vars_style{FontFace}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile&u=$ML_usernum">$user_profile[15]</a></td>";
}
else {
print "<td bgcolor="$ML_alt_color"><FONT size="$vars_style{TextSize}" face="$vars_style{FontFace}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile&u=$ML_usernum">$user_profile[0]</a></td>";
}
if i remove that line it works again but not the avatar in memberlist yey
im trying add avatar to memberlist
cant get it to work
### OPEN public_memberlist.pl (Templates)
FIND:
-----------------------------------------------------------------------
$TBT
<tr bgcolor="$vars_style{TableColorStrip}">
<td><font size="1" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}"><b>$vars_wordlets_mods{ML_col_pubname}</b></font></td>
MemberlistGuts
-----------------------------------------------------------------------
REPLACE THAT WITH:
-----------------------------------------------------------------------
$TBT
<tr bgcolor="$vars_style{TableColorStrip}">
MemberlistGuts
if ($vars_memberlist{ML_switch_avatar} eq "ON") {
print "<td width="$vars_memberlist{ML_switch_avatar_width}"><font size="1" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}"><b>$vars_wordlets_mods{ML_col_avatar}</b></font></td>";
}
print<<MemberlistGuts;
<td><font size="1" color="$vars_style{TableStripTextColor}" face="$vars_style{FontFace}"><b>$vars_wordlets_mods{ML_col_pubname}</b></font></td>
MemberlistGuts;
-----------------------------------------------------------------------
FIND:
-----------------------------------------------------------------------
if ($user_profile[15] ne "") {
print "<tr>";
print "<td bgcolor="$ML_alt_color"><FONT size="$vars_style{TextSize}" face="$vars_style{FontFace}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile&u=$ML_usernum">$user_profile[15]</a></td>";
}
else {
print "<tr>";
print "<td bgcolor="$ML_alt_color"><FONT size="$vars_style{TextSize}" face="$vars_style{FontFace}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile&u=$ML_usernum">$user_profile[0]</a></td>";
}
-----------------------------------------------------------------------
REPLACE THAT WITH:
-----------------------------------------------------------------------
print "<tr>";
if ($vars_memberlist{ML_switch_avatar} eq "ON") {
if ($user_profile[20] ne "") {
print "<td bgcolor="$ML_alt_color"><img src="$user_profile[20]"></td>";
}
else {
print "<td bgcolor="$ML_alt_color"><img src="$vars_avatar{avurl}/blank.gif"></td>";
}
}
if ($user_profile[15] ne "") {
print "<td bgcolor="$ML_alt_color"><FONT size="$vars_style{TextSize}" face="$vars_style{FontFace}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile&u=$ML_usernum">$user_profile[15]</a></td>";
}
else {
print "<td bgcolor="$ML_alt_color"><FONT size="$vars_style{TextSize}" face="$vars_style{FontFace}"><a href="$vars_config{CGIURL}/ultimatebb.cgi?ubb=get_profile&u=$ML_usernum">$user_profile[0]</a></td>";
}
if i remove that line it works again but not the avatar in memberlist yey