SocomNego
02-23-2007, 09:34 PM
Ok I am trying to use this conditional to show a users avatar if they have it enabled, and if they don't then show this....basically if they have an avatar show it then if not show the default one i have made...here is my code....This code is outside of the forums on a basic PHP page....I have included the vBulletin files needed to do this, but it's not working...I might have the conditional wrong...
if($vbulletin->options['avatarenabled'] == !0 ) {
echo "<center><br><a href=\"".$forumpath."profile.php?do=editprofile\"><img src=\"$file.$type\" border=\"0\" width = \"70\" height = \"70\" align=\"center\" title=\" Member Picture\" ></a><br>";
}else {
echo "<center><br><a href=\"".$forumpath."profile.php?do=editprofile\"><img src=\"This is where Default Avatar is\" border=\"0\" width = \"70\" height = \"70\" align=\"center\" title=\" Member Picture\" ></a><br>";
}
any help would we be great...thanks in advance!!!
if($vbulletin->options['avatarenabled'] == !0 ) {
echo "<center><br><a href=\"".$forumpath."profile.php?do=editprofile\"><img src=\"$file.$type\" border=\"0\" width = \"70\" height = \"70\" align=\"center\" title=\" Member Picture\" ></a><br>";
}else {
echo "<center><br><a href=\"".$forumpath."profile.php?do=editprofile\"><img src=\"This is where Default Avatar is\" border=\"0\" width = \"70\" height = \"70\" align=\"center\" title=\" Member Picture\" ></a><br>";
}
any help would we be great...thanks in advance!!!