Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: No avatar

Parašė lajanas· 2010 Sau. 30 12:01:44
#1

Reike i profile.php kad rodytu no avatar img, nes jei nera avataro tuscia vieta lieka

   opentable($locale['400']);
   echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
   if ($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar'])) {
      echo "<td rowspan='5' width='1%' class='tbl profile_user_avatar'><!--profile_user_avatar--><img src='".IMAGES."avatars/".$user_data['user_avatar']."' alt='' /></td>\n";
   }



Parašė Pakartoti slaptažodį· 2010 Sau. 30 12:01:10
#2

   opentable($locale['400']);
   echo "<table cellpadding='0' cellspacing='1' width='400' class='tbl-border center'>\n<tr>\n";
   if ($user_data['user_avatar'] && file_exists(IMAGES."avatars/".$user_data['user_avatar'])) {
      echo "<td rowspan='5' width='1%' class='tbl profile_user_avatar'><!--profile_user_avatar--><img src='".IMAGES."avatars/".$user_data['user_avatar']."' alt='' /></td>\n";
   } else {
      echo "<td rowspan='5' width='1%' class='tbl profile_user_avatar'>Nėra avataro!</td>\n";
}