Pagina 1 van 1
Color Groups
Geplaatst: 29 apr 2007, 19:52
door Toad
Ik heb een fout in mijn index.php, maar ik zie niet wat.
Parse error: syntax error, unexpected '<' in /home/deb1094/domains/offtopique.be/public_html/forums/index.php on line 484
Code: Selecteer alles
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $topic_title2 . '">' . $topic_title . '</a> door ';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id']);<br>
$last_post .= $last_post_time . ' <a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"></a><br>' . $lang['by'] . ' ';
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
Geplaatst: 29 apr 2007, 19:57
door ElbertF
Er staat een "<br>" aan het einde van regel 4, die hoort daar niet. Waarschijnlijk heb je per ongeluk op shift-enter gedrukt in je editor, oid.

Geplaatst: 29 apr 2007, 20:03
door Toad
Het werkt nu wel, maar die <br> is wel nodig, want anders klopt het op de index niet meer.
http://www.offtopique.be/forums/index.php
Geplaatst: 29 apr 2007, 20:36
door special18
Parse error: syntax error, unexpected T_STRING in /home/deb1094/domains/offtopique.be/public_html/forums/search.php on line 328
Even dat document ook nog fixen

Geplaatst: 30 apr 2007, 06:36
door Toad
special18 schreef:Parse error: syntax error, unexpected T_STRING in /home/deb1094/domains/offtopique.be/public_html/forums/search.php on line 328
Even dat document ook nog fixen

Ik zie de fout niet.
Code: Selecteer alles
if ( !strstr($multibyte_charset, $lang['ENCODING']) )
{
$match_word = str_replace('*', '%', $split_search[$i]);
$search_msg_only .= ($only_bluecards) ? " AND p.post_bluecard>0 AND m.post_id=p.post_id " : "";
$sql = "SELECT m.post_id
FROM " . (($only_bluecards) ? ','.POSTS_TABLE . ' p ' : '') . " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m
WHERE w.word_text LIKE '$match_word'
AND m.word_id = w.word_id
AND w.word_common <> 1
$search_msg_only";
}
Geplaatst: 30 apr 2007, 19:39
door nickdhnick
ik
denk dat deze regel nog een " mist. de rest komt namelijk overeen met een 'schone' search.php
Code: Selecteer alles
FROM " . (($only_bluecards) ? ','.POSTS_TABLE . ' p ' : '') . " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m
Geplaatst: 30 apr 2007, 19:44
door Toad
nickdhnick schreef:ik
denk dat deze regel nog een " mist. de rest komt namelijk overeen met een 'schone' search.php
Code: Selecteer alles
FROM " . (($only_bluecards) ? ','.POSTS_TABLE . ' p ' : '') . " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m
Nee, werkt niet.
Ook zoek ik nog een oplossing voor mijn vorige vraag (met de <br>).
Geplaatst: 01 mei 2007, 08:12
door Coen
Toad schreef:Ook zoek ik nog een oplossing voor mijn vorige vraag (met de <br>).
Code: Selecteer alles
$last_post_time = create_date($board_config['default_dateformat'], $forum_data[$j]['post_time'], $board_config['board_timezone']);
$last_post = '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '" title="' . $topic_title2 . '">' . $topic_title . '</a> door ';
$last_post .= ( $forum_data[$j]['user_id'] == ANONYMOUS ) ? ( ($forum_data[$j]['post_username'] != '' ) ? $forum_data[$j]['post_username'] . ' ' : $lang['Guest'] . ' ' ) : color_group_colorize_name($forum_data[$j]['user_id'])."<br />";
$last_post .= $last_post_time . ' <a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"></a><br>' . $lang['by'] . ' ';
$last_post .= '<a href="' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . '=' . $forum_data[$j]['forum_last_post_id']) . '#' . $forum_data[$j]['forum_last_post_id'] . '"><img src="' . $images['icon_latest_reply'] . '" border="0" alt="' . $lang['View_latest_post'] . '" title="' . $lang['View_latest_post'] . '" /></a>';
}
Probeer dit eens?

Geplaatst: 02 mei 2007, 09:12
door Toad
Dat werkt, bedankt!
Nu alleen nog search.php...
Geplaatst: 03 mei 2007, 18:53
door Toad
Toad schreef:Dat werkt, bedankt!
Nu alleen nog search.php...
Iemand die met de search.php kan helpen?
Parse error: syntax error, unexpected T_STRING in /home/deb1094/domains/offtopique.be/public_html/forums/search.php on line 328
Code: Selecteer alles
if ( !strstr($multibyte_charset, $lang['ENCODING']) )
{
$match_word = str_replace('*', '%', $split_search[$i]);
$search_msg_only .= ($only_bluecards) ? " AND p.post_bluecard>0 AND m.post_id=p.post_id " : "";
$sql = "SELECT m.post_id
FROM " . (($only_bluecards) ? ','.POSTS_TABLE . ' p ' : '') . " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m
WHERE w.word_text LIKE '$match_word'
AND m.word_id = w.word_id
AND w.word_common <> 1
$search_msg_only";
}
Geplaatst: 03 mei 2007, 23:02
door Coen
Het is handig als je er even bij vermeld welke lijn de error-lijn is!

Geplaatst: 04 mei 2007, 08:29
door Toad
Ah, sorry. Dit stuk.
Code: Selecteer alles
FROM " . (($only_bluecards) ? ','.POSTS_TABLE . ' p ' : '') . " . SEARCH_WORD_TABLE . " w, " . SEARCH_MATCH_TABLE . " m
Geplaatst: 06 mei 2007, 13:46
door Toad
Niemand enig idee?

Geplaatst: 06 mei 2007, 18:13
door nickdhnick
upload anders een nieuwe ongemodificeerde search.php naar je server. en doe daarna alle veranderingen voor dat bestand opnieuw en kijk of je die fout nogsteeds hebt
heel misschien heb je ergens net ff iets fout gedaan zodat ie daar nu een fout aangeeft
