Seite 3 von 4
Verfasst: 21.09.2006 07:45
von area57
finde
Code: Alles auswählen
$highlight_match = phpbb_rtrim($highlight_match, "\");
ersetze mit:
Code: Alles auswählen
$highlight_match = phpbb_rtrim($highlight_match, "/");
Verfasst: 21.09.2006 07:46
von NewFighter
Parse error: syntax error, unexpected T_STRING in /home/webpages/lima-city/newwarrior/html/klasse/board/viewtopic.php on line 592
Verfasst: 21.09.2006 07:47
von wicked-disorder
Code: Alles auswählen
$highlight_match = phpbb_rtrim($highlight_match, "\");
in
Code: Alles auswählen
$highlight_match = phpbb_rtrim($highlight_match, "\\");
ersetzen.
Verfasst: 21.09.2006 07:53
von wicked-disorder
Verfasst: 21.09.2006 08:40
von NewFighter
wicked-disorder hat geschrieben:Finde
und mach ein
raus.
Habe alle verändert bekomme aber immer noch folgende Meldung:
Parse error: syntax error, unexpected T_STRING in /home/webpages/lima-city/newwarrior/html/klasse/board/viewtopic.php on line 592
Verfasst: 21.09.2006 08:46
von NewFighter
haben den Fehler selbst beheben können.
Jetzt habe ich hier einen:
Warning: Unexpected character in input: ' in /home/webpages/lima-city/newwarrior/html/klasse/board/viewtopic.php on line 1119
Warning: Unexpected character in input: ' in /home/webpages/lima-city/newwarrior/html/klasse/board/viewtopic.php on line 1122
Parse error: syntax error, unexpected T_VARIABLE in /home/webpages/lima-city/newwarrior/html/klasse/board/viewtopic.php on line 1235
Verfasst: 21.09.2006 08:54
von wicked-disorder
Darf ich temporär auf Deinen FTP zugreifen, ich geh mal die ganze Datei durch, da kommen noch mehrere Fehler, wenn Du willst sende die Zugangsdaten per PN.
lg
wicked
Verfasst: 21.09.2006 08:59
von wicked-disorder
ändere zeile 1119 in
Code: Alles auswählen
$user_sig = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $user_sig . '<'), 1, -1));
1122 in
Code: Alles auswählen
$message = str_replace('\"', '"', substr(@preg_replace('#(\>(((?>([^><]+|(?R)))*)\<))#se', "@preg_replace(\$orig_word, \$replacement_word, '\\0')", '>' . $message . '<'), 1, -1));
1227 in
Verfasst: 21.09.2006 12:16
von NewFighter
Parse error: syntax error, unexpected T_ELSE in /home/webpages/lima-city/newwarrior/html/klasse/board/viewtopic.php on line 1223
Verfasst: 21.09.2006 12:42
von wicked-disorder
Finde und lösche
Code: Alles auswählen
//
// Quick Reply Mod
//
if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) )
{
$quick_reply_form = "";
}
else
{
if ($can_watch_topic and $is_watching_topic)
{
$notify_user = 1;
}
else
{
$notify_user = $userdata['user_notify'];
}
$bbcode_uid = $postrow[$total_posts - 1]['bbcode_uid'];
$last_poster = $postrow[$total_posts - 1]['username'];
$last_msg = $postrow[$total_posts - 1]['post_text'];
$last_msg = str_replace(":1:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":u:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":o:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":$bbcode_uid", "", $last_msg);
$last_msg = str_replace("'", "'", $last_msg);
$last_msg = "[QUOTE="$last_poster"]" . $last_msg . "[/QUOTE]";
$quick_reply_form = "
<script language='JavaScript' type='text/javascript'>
function checkForm()
{
formErrors = false;
document.post.message.value = '';
if (document.post.input.value.length < 2) {
formErrors = '" . $lang['Empty_message'] . "';
}
if (formErrors) {
alert(formErrors);
return false;
} else {
if (document.post.quick_quote.checked) {
document.post.message.value = document.post.last_msg.value;
}
document.post.message.value += document.post.input.value;
return true;
}
}
</script>
<form action='".append_sid("posting.$phpEx")."' method='post' name='post' onsubmit='return checkForm(this)'>
<span class='genmed'><b>".$lang["Quick_Reply"].":</b><br />";
if (!$userdata['session_logged_in'])
{
$quick_reply_form .= $lang['Username'] . ": <input class='post' type='text' name='username' size='25' maxlength='25' value='' /><br />";
}
$quick_reply_form .= "<textarea name='input' rows='10' cols='50' wrap='virtual' class='post''></textarea><br />
<input type='checkbox' name='quick_quote' />".$lang["Quick_quote"]."<br />
<input type='checkbox' name='attach_sig' checked='checked' />".$lang["Attach_signature"]."<br />
<input type='hidden' name='mode' value='reply' />
<input type='hidden' name='sid' value='" . $userdata['session_id'] . "' />
<input type='hidden' name='t' value='" . $topic_id . "' />
<input type='hidden' name='message' value='' />
<input type='hidden' name='notify' value=" . $notify_user . " />
<input type='hidden' name='last_msg' value='" . $last_msg . "' />
<input type='submit' name='preview' class='liteoption' value='".$lang['Preview']."' />
<input type='submit' name='post' class='mainoption' value='".$lang["Submit"]."' />
</form></span>";
}
$template->assign_vars(array(
'QUICK_REPLY_FORM' => $quick_reply_form)
);
//
// END Quick Reply Mod
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
Finde
Füge darüber ein:
Code: Alles auswählen
//
// Quick Reply Mod
//
if ( ((!$is_auth['auth_reply']) or ($forum_topic_data['forum_status'] == FORUM_LOCKED) or ($forum_topic_data['topic_status'] == TOPIC_LOCKED)) and ($userdata['user_level'] != ADMIN) )
{
$quick_reply_form = "";
}
else
{
if ($can_watch_topic and $is_watching_topic)
{
$notify_user = 1;
}
else
{
$notify_user = $userdata['user_notify'];
}
$bbcode_uid = $postrow[$total_posts - 1]['bbcode_uid'];
$last_poster = $postrow[$total_posts - 1]['username'];
$last_msg = $postrow[$total_posts - 1]['post_text'];
$last_msg = str_replace(":1:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":u:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":o:$bbcode_uid", "", $last_msg);
$last_msg = str_replace(":$bbcode_uid", "", $last_msg);
$last_msg = str_replace("'", "'", $last_msg);
$last_msg = "[QUOTE=\"$last_poster\"]" . $last_msg . "[/QUOTE]";
$quick_reply_form = "
<script language='JavaScript' type='text/javascript'>
function checkForm()
{
formErrors = false;
document.post.message.value = '';
if (document.post.input.value.length < 2) {
formErrors = '" . $lang['Empty_message'] . "';
}
if (formErrors) {
alert(formErrors);
return false;
} else {
if (document.post.quick_quote.checked) {
document.post.message.value = document.post.last_msg.value;
}
document.post.message.value += document.post.input.value;
return true;
}
}
</script>
<form action='".append_sid("posting.$phpEx")."' method='post' name='post' onsubmit='return checkForm(this)'>
<span class='genmed'><b>".$lang["Quick_Reply"].":</b><br />";
if (!$userdata['session_logged_in'])
{
$quick_reply_form .= $lang['Username'] . ": <input class='post' type='text' name='username' size='25' maxlength='25' value='' /><br />";
}
$quick_reply_form .= "<textarea name='input' rows='10' cols='50' wrap='virtual' class='post''></textarea><br />
<input type='checkbox' name='quick_quote' />".$lang["Quick_quote"]."<br />
<input type='checkbox' name='attach_sig' checked='checked' />".$lang["Attach_signature"]."<br />
<input type='hidden' name='mode' value='reply' />
<input type='hidden' name='sid' value='" . $userdata['session_id'] . "' />
<input type='hidden' name='t' value='" . $topic_id . "' />
<input type='hidden' name='message' value='' />
<input type='hidden' name='notify' value=" . $notify_user . " />
<input type='hidden' name='last_msg' value='" . $last_msg . "' />
<input type='submit' name='preview' class='liteoption' value='".$lang['Preview']."' />
<input type='submit' name='post' class='mainoption' value='".$lang["Submit"]."' />
</form></span>";
}
$template->assign_vars(array(
'QUICK_REPLY_FORM' => $quick_reply_form)
);
//
// END Quick Reply Mod
//
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);