Problem nie leży w tym miejscu.
Nadal wyskakuje komunikat:
Kod:
Parse error: parse error, expecting `')'' in c:\usr\krasnal\www\vred\index.php on line 289
Może problem leży w tym że próbuje dodać strukturę kontrolną do template:
Kod:
$template->assign_vars(array(
'TOTAL_POSTS' => sprintf($l_total_post_s, $total_posts),
'TOTAL_USERS' => sprintf($l_total_user_s, $total_users),
'NEWEST_USER' => sprintf($lang['Newest_user'], '<a href="' . append_sid("profile.$phpEx?mode=viewprofile&" . POST_USERS_URL . "=$newest_uid") . '">', $newest_user, '</a>'),
'FORUM_IMG' => $images['forum'],
'FORUM_NEW_IMG' => $images['forum_new'],
'FORUM_LOCKED_IMG' => $images['forum_locked'],
if ( $board_config['onmouse'] )
{
'ONMOUSE1' => 'onMouseOver="this.style.backgroundColor=\'$onmouse1\'; this.style.cursor=\'default\';" onMouseOut="this.style.backgroundColor=\'\'"',
'ONMOUSE2' => 'onMouseOver="this.style.backgroundColor=\'$onmouse2\'; this.style.cursor=\'default\';" onMouseOut="this.style.backgroundColor=\'\'"',
'ONMOUSE3' => 'onMouseOver="this.style.backgroundColor=\'$onmouse3\'; this.style.cursor=\'default\';" onMouseOut="this.style.backgroundColor=\'\'"',
}
'L_FORUM' => $lang['Forum'],
'L_TOPICS' => $lang['Topics'],
'L_REPLIES' => $lang['Replies'],
'L_VIEWS' => $lang['Views'],
'L_POSTS' => $lang['Posts'],
'L_LASTPOST' => $lang['Last_Post'],
'L_NO_NEW_POSTS' => $lang['No_new_posts'],
'L_NEW_POSTS' => $lang['New_posts'],
'L_NO_NEW_POSTS_LOCKED' => $lang['No_new_posts_locked'],
'L_NEW_POSTS_LOCKED' => $lang['New_posts_locked'],
'L_ONLINE_EXPLAIN' => $lang['Online_explain'],
'L_MODERATOR' => $lang['Moderators'],
'L_FORUM_LOCKED' => $lang['Forum_is_locked'],
'L_MARK_FORUMS_READ' => $lang['Mark_all_forums'],
'U_MARK_READ' => append_sid("index.$phpEx?mark=forums"))
);
?
EDIT:
Problem rozwiązany, chodziło właśnie o struktury kontrolne w template
+ dla Don'a za pomocny kod.
Pomagam tylko na forum!