Sorry, stand etwas auf dem Schlauch.
Die Felder der Tabelle userfields heißen userid, field_1 bis field_6. Brauche jedoch lediglich field_1, 3, 5 und 6 angezeigt im Forum.
Wenn ich den code
|
PHP-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
|
/* Profilfeld Anzeige Start */
$userfields=$DB->fetch_array($DB->query("SELECT * FROM ".$db_tab['userfields']." WHERE userid='".$userinfo['user_id']."' LIMIT 1"));
$info_extended='';
$getprofilefields=$DB->query("SELECT * FROM ".$db_tab['profilefields']." ORDER by profilefields_order ASC");
while ($profilefields=$DB->fetch_array($getprofilefields)) {
$f="field_".$profilefields['profilefields_id'];
if (($fieldcontent=htmlentities($userfields[$f]))=='') $fieldcontent=$lang['not_specified'];
$fieldname=$profilefields['profilefields_name'];
eval ("\$info_extended.= \"".getTemplate("userinfo_ext_forum")."\";");
}
/* Profilfeld Anzeige Ende */
|
richtig auslege, dann wird mit SELECT * ja alles abgerufen.