von AmigaLink » 17. Okt 2005 12:39
Du hast das schon richtig erkannt.
Du brauchst nur die Variablen bzw. die Objekte, die als Platzhalter im template fungieren, zu ändern.
Ich weis nicht welchen Block du hast, deswegen nehme ich als Beispiel mal die aus meinem Block.
Orginal Block:
- Code: Alles auswählen
$template->assign_vars(array(
'TOTAL_IMAGES' => sprintf($lang['total_pics'], $TotalImages),
'TOTAL_PICVIEW' => sprintf($lang['viewed'], $pic_view_count),
'TOTAL_RATES' => sprintf($lang['votes'], $total_rates),
'TOTAL_RATEPOINT' => sprintf($lang['vote_points'], $rate_points),
'TOTAL_COMMENTS' => sprintf($lang['comments'], $total_comments),
'LAST_PIC' => $last_pic,
'LAST_PIC_ID' => $last_pic_id,
'LAST_PIC_TITLE' => sprintf($lang['newest_pic'], $last_pic_title),
'LAST_PIC_POSTER' => sprintf($lang['posted_by'], $last_pic_poster),
'LAST_PIC_TIME' => sprintf($lang['posted_at'], (create_date($lang['DATE_FORMAT'], $last_pic_time, $board_config['board_timezone'])))
));
2te Block:
- Code: Alles auswählen
$template->assign_vars(array(
'TOTAL_IMAGES_2' => sprintf($lang['total_pics'], $TotalImages),
'TOTAL_PICVIEW_2' => sprintf($lang['viewed'], $pic_view_count),
'TOTAL_RATES_2' => sprintf($lang['votes'], $total_rates),
'TOTAL_RATEPOINT_2' => sprintf($lang['vote_points'], $rate_points),
'TOTAL_COMMENTS_2' => sprintf($lang['comments'], $total_comments),
'LAST_PIC_2' => $last_pic,
'LAST_PIC_ID_2' => $last_pic_id,
'LAST_PIC_TITLE_2' => sprintf($lang['newest_pic'], $last_pic_title),
'LAST_PIC_POSTER_2' => sprintf($lang['posted_by'], $last_pic_poster),
'LAST_PIC_TIME_2' => sprintf($lang['posted_at'], (create_date($lang['DATE_FORMAT'], $last_pic_time, $board_config['board_timezone'])))
));
3te Block:
- Code: Alles auswählen
$template->assign_vars(array(
'TOTAL_IMAGES_3' => sprintf($lang['total_pics'], $TotalImages),
'TOTAL_PICVIEW_3' => sprintf($lang['viewed'], $pic_view_count),
'TOTAL_RATES_3' => sprintf($lang['votes'], $total_rates),
'TOTAL_RATEPOINT_3' => sprintf($lang['vote_points'], $rate_points),
'TOTAL_COMMENTS_3' => sprintf($lang['comments'], $total_comments),
'LAST_PIC_3' => $last_pic,
'LAST_PIC_ID_3' => $last_pic_id,
'LAST_PIC_TITLE_3' => sprintf($lang['newest_pic'], $last_pic_title),
'LAST_PIC_POSTER_3' => sprintf($lang['posted_by'], $last_pic_poster),
'LAST_PIC_TIME_3' => sprintf($lang['posted_at'], (create_date($lang['DATE_FORMAT'], $last_pic_time, $board_config['board_timezone'])))
));
Problem dabei wird aber die unterschiedliche Konfiguration der Blöcke sein!
Entweder gehst du hin und konfigurierst 2 von den 3 Blöcken direkt im Code, oder du nennst die dafür zuständigen Variable ebenfalls um und erstellst noch 2 weitere Datenbankeinträge mit dem dazugehörigem ACP-Teil.
Die deutsche Sprache ist Freeware, du kannst sie benutzen, ohne dafür zu bezahlen. Sie ist aber nicht Open Source, also darfst du sie nicht verändern, wie es dir gerade passt.