View Single Post
Change the code here...
Old
  (#2 (permalink))
dsnail2000
Junior Member
 
Status: Offline
Posts: 16
Join Date: Dec 2002
Location: Leesburg, VA
Change the code here... - 03-17-2003, 04:00 PM

replace this code:
Code:
$content .= "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
With:
Code:
if (eregi("http://", $user_avatar)) {
$content .= "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"><img alt src=\"$user_avatar\" border =\"0\" width=\"32\"></a></td>";
}
else
$content .= "<a href=\"modules.php?name=Forums&file=profile&mode=viewprofile&u=$user_id\"><img alt src=\"modules/Forums/images/avatars/$user_avatar\" border =\"0\" width=\"32\"></a></td>";
You may have to set the borders to 0 to make it look right.. Hope this helps!


Webmaster of ControlBooth.com
   
Reply With Quote