Also, ich bin kein Php Guru und es würde lange lange noch dauern es zu werden! Was ich lediglich mache ist "Copy&Paste" ^^.
Also ich habe dieses:
$comment_user_ckopf = (isset($comment_row[$i][$user_table_fields['user_ckopf']])) ? format_url($comment_row[$i][$user_table_fields['user_ckopf']]) : "";
$comment_user_ckopf = (isset($comment_row[$i][$user_table_fields['user_ckopf']])) ? format_url($comment_row[$i][$user_table_fields['user_ckopf']]) : "";
if (!empty($comment_user_ckopf)) {
$comment_user_ckopf_button = "<img src=\"{template_url}/images/character/kopf/{user_ckopf}kopf.gif\" border=\"0\">";
}
$comment_user_cshirt = (isset($comment_row[$i][$user_table_fields['user_cshirt']])) ? format_url($comment_row[$i][$user_table_fields['user_cshirt']]) : "";
$comment_user_cjeans = (isset($comment_row[$i][$user_table_fields['user_cjeans']])) ? format_url($comment_row[$i][$user_table_fields['user_cjeans']]) : "";
$comment_user_cschuhe = (isset($comment_row[$i][$user_table_fields['user_cschuhe']])) ? format_url($comment_row[$i][$user_table_fields['user_cschuhe']]) : "";
In dieses gemacht:
$comment_user_ckopf = (isset($comment_row[$i][$user_table_fields['user_ckopf']])) ? format_url($comment_row[$i][$user_table_fields['user_ckopf']]) : "";
$comment_user_ckopf = (isset($comment_row[$i][$user_table_fields['user_ckopf']])) ? format_url($comment_row[$i][$user_table_fields['user_ckopf']]) : "";
$comment_user_cshirt = (isset($comment_row[$i][$user_table_fields['user_cshirt']])) ? format_url($comment_row[$i][$user_table_fields['user_cshirt']]) : "";
$comment_user_cjeans = (isset($comment_row[$i][$user_table_fields['user_cjeans']])) ? format_url($comment_row[$i][$user_table_fields['user_cjeans']]) : "";
$comment_user_cschuhe = (isset($comment_row[$i][$user_table_fields['user_cschuhe']])) ? format_url($comment_row[$i][$user_table_fields['user_cschuhe']]) : "";
Bis dato klappt es nicht!
Dann habe ich folgendes versucht:
"comment_user_ckopf" => $comment_user_ckopf_button,
"comment_user_cshirt" => $comment_user_cshirt_button,
"comment_user_cjeans" => $comment_user_cjeans_button,
"comment_user_cschuhe" => $comment_user_cschuhe_button,
"comment_user_ckopf_button" => $comment_user_ckopf,
"comment_user_cshirt_button" => $comment_user_cshirt,
"comment_user_cjeans_button" => $comment_user_cjeans,
"comment_user_cschuhe_button" => $comment_user_cschuhe,
und
"comment_user_ckopf" => $comment_user_ckopf,
"comment_user_cshirt" => $comment_user_cshirt,
"comment_user_cjeans" => $comment_user_cjeans,
"comment_user_cschuhe" => $comment_user_cschuhe,
Klappt aber immernoch nicht!
In der comment_bit.html sieht das so aus:
<div align="center">{comment_user_ckopf_button}<br>
{comment_user_cshirt_button}<br>
{comment_user_cjeans_button}<br>
{comment_user_cschuhe_button}</div>
Also wenn der Fehler hier liegen sollte:
$comment_user_ckopf = (isset($comment_row[$i][$user_table_fields['user_ckopf']])) ? format_url($comment_row[$i][$user_table_fields['user_ckopf']]) : "";
$comment_user_cshirt = (isset($comment_row[$i][$user_table_fields['user_cshirt']])) ? format_url($comment_row[$i][$user_table_fields['user_cshirt']]) : "";
$comment_user_cjeans = (isset($comment_row[$i][$user_table_fields['user_cjeans']])) ? format_url($comment_row[$i][$user_table_fields['user_cjeans']]) : "";
$comment_user_cschuhe = (isset($comment_row[$i][$user_table_fields['user_cschuhe']])) ? format_url($comment_row[$i][$user_table_fields['user_cschuhe']]) : "";
Dann bin ich überfragt, ich sehe nichts auch "," ": ... klamma auf .. klamma zu dann noch Dollarzeichen "$".
Bitte lass gnade walten ^^
Was ich mich an dieser Stelle Frage ist, dass doch irgendwi generell die Bilder bzw. der Ordner angegeben sein muss oder nicht? Dieser liegt in "images/character"
Muss das nicht dann in dieser Art angegeben werden?
"user_avatar_current" => ($config['avatar_use']) ? "<img src=\"".TEMPLATE_PATH."/avatars/".(($user_row_comment['user_avatar'] == "") ? "blank.gif" : $user_row_comment['user_avatar'])."\" name=\"icons\" border=\"0\" hspace=\"15\" alt=\"\">" : "",
Php ist echt übel Respekt an ALLE die das können!