pragmaMx Support Forum

Archive => veraltete bzw. unsupportete Systeme und Module => Alt Archive => Avatarupload Modul => Thema gestartet von: smartmusic in 26 Juli 2006, 13:03:10

Titel: letzte bilder
Beitrag von: smartmusic in 26 Juli 2006, 13:03:10
hallo bowling,

ich verzweifele schon seit längerem daran.

du hattest es mir mal gemacht und dann kam ein update vom avatar modul und danach zeigte mir das modul nicht mehr die neuesten bilder an.

hier muss irgendwo ein fehler sein.



<?php
if (!defined("mxMainFileLoaded")) die ("You can't access this file directly...");
if(!
defined("AV_MODNAME")){define("AV_MODNAME","Avatar");}
$module_name basename(dirname(__FILE__));

#mxGetLangfile($module_name);
$index 1;

$foto_query "SELECT MAX(date),typ,anzahl,aid FROM ${prefix}_avatar GROUP BY date DESC LIMIT 0,30";
$result sql_query($foto_query);

include(
"header.php");
OpenTable();
// Listen wir das Zeug auf:

echo "<b>Neuste User Fotos</b>";
echo 
"<table width=\"95%\" border=\"1\"><tr>\n";

$colcounter=1;
while (list(
$date,$typ,$anzahl$aid) = sql_fetch_row($result))
{
$av_end explode("|",$typ);
echo 
"<td><center><a href=\"modules.php?name=Userinfo&uname=$aid\"><img src='".MX_PATH_MEMBERAVATAR."/".$av_end[$anzahl-1]."' alt=\"$aid\" border=\"0\" alt=\"\"  width=\"100\" height=\"100\" /></a></center></td>";
if (
floor($colcounter/3)==1)
{
echo 
"</tr><tr>\n";
        
$colcounter=0;
}
$colcounter++;
}
echo 
"</tr></table>\n";
CloseTable();
include (
"footer.php");
?>