User_Pics 2.0

Begonnen von LordNoir, 15 Februar 2009, 16:59:21

⏪ vorheriges - nächstes ⏩

0 Mitglieder und 1 Gast betrachten dieses Thema.

LordNoir

Ich habe mir gedacht ich mach mal ein neues Thema auf

Wie und wo binde ich diesen Code in die Profile ein?


############EINBAU INS PROFIL########################################################
echo "<fieldset style=\"width: 98%px\" style=\"border: 0px;\"><legend></legend>\n";
 
$resultQ = sql_query("SELECT album FROM `mx_user_pics_alben` WHERE `from` = '".$uinfo['uname']."' AND `slide` ='1'");
$num=sql_num_rows($resultQ);             
if($num == "0") {
         


$memberfotoquery = sql_fetch_array(sql_query("SELECT * FROM `mx_user_pics` WHERE `user` = '".$uinfo['uname']."' AND `hauptfoto` = '1' AND `aktiv` != '0'"));

if (!empty($memberfotoquery['foto'])) {
if(file_exists("modules/user_pics/media/user_pics_thumb200/thumb_".$memberfotoquery['foto'].".jpg")) {
echo "<a href=\"modules.php?name=user_pics&file=selectalbum&fromuser=".$uinfo['uname']."\"><img src=\"modules/user_pics/media/user_pics_thumb200/thumb_".$memberfotoquery['foto'].".jpg\" name=\"mainimage\"></a>";
}
else
{
echo "<a href=\"modules.php?name=user_pics&file=selectalbum&fromuser=".$uinfo['uname']."\"><img src=\"modules/user_pics/media/user_pics/".$memberfotoquery['foto'].".jpg\" width=\"200\" name=\"mainimage\"></a>";
}
} else {
echo "<img src=\"modules/user_pics/media/images/nopic.gif\" name=\"mainimage\">";
}


echo "<table width=\"200\" border=\"0\" align=\"center\"><tr>\n";
            $colcounter=1;
            $resultA = sql_query("SELECT * FROM `".$prefix."_user_pics` WHERE `user` = '".$uinfo['uname']."' AND `aktiv` != '0' ORDER BY hauptfoto DESC LIMIT 8");
                if (!$resultA)
            {
         echo "<center>Fotos nicht gefunden.</center>";
              }
         while($pics = sql_fetch_assoc($resultA))
          {

         
echo "<td align=\"center\" width=\"50\"><a href=\"javascript:changeImage('modules/user_pics/media/user_pics_thumb200/thumb_".$pics['foto'].".jpg')\"><img style=\"border: 2px solid #F2F2F2;\" src=\"modules/user_pics/media/user_pics_thumb50/thumb_".$pics['foto'].".jpg\" width=\"45\"></a></td>";
if (floor($colcounter/4)==1)
{
echo "</tr><tr>\n";
        $colcounter=0;
}

$colcounter++;
}
echo "</tr></table>\n";




} else {
//Slideshow aktiv

echo "<link rel=\"stylesheet\" href=\"modules/user_pics/js/slideshow1.css\" type=\"text/css\" />";
echo "<script type=\"text/javascript\" src=\"modules/user_pics/js/xfade2.js\"></script>";

echo "Slideshow:";
echo "<div id=\"rotator\"><center>";

            $slideqry = sql_fetch_assoc($resultQ);
           
          $resultX = sql_query("SELECT * FROM `mx_user_pics` WHERE `user` = '".$uinfo['uname']."' AND `album` = '".$slideqry['album']."' AND `aktiv` != '0'");
              if (!$resultX)
            {
         echo "<center>Bilder konnten nicht ausgelesen werden.</center>";
            }
         while($fotoqry_1 = sql_fetch_assoc($resultX))
             {
         if(file_exists("modules/user_pics/media/user_pics_thumb200/thumb_".$fotoqry_1['foto'].".jpg")) {
            echo "<a href=\"modules/user_pics/media/user_pics/".$fotoqry_1['foto'].".jpg\" class=\"highslide\" onclick=\"return hs.expand(this)\"><img src=\"modules/user_pics/media/user_pics_thumb200/thumb_".$fotoqry_1['foto'].".jpg\" alt=\"1\"></a>";
             }
         else
              {
         echo "<a href=\"modules/user_pics/media/user_pics/".$fotoqry_1['foto'].".jpg\" class=\"highslide\" onclick=\"return hs.expand(this)\"><img src=\"modules/user_pics/media/user_pics/".$fotoqry_1['foto'].".jpg\" width=\"200\" alt=\"1\"></a>";
            }
         
  } ##While Sleife##
               
          echo "</center></div>";
             
} ##Ende Slideshow

echo "</fieldset>\n";



Habe es versucht bekomme immer wieder eine fehlermedung das dort ein fehler sein soll