Add 'Reply' button to article.php.
This commit is contained in:
parent
1cb98869b1
commit
6dfb2e487e
|
@ -37,16 +37,16 @@ $thread_show["lastdate"] = false;
|
||||||
$thread_show["threadsize"] = false;
|
$thread_show["threadsize"] = false;
|
||||||
|
|
||||||
if (isset($frames_on) && $frames_on === true) {
|
if (isset($frames_on) && $frames_on === true) {
|
||||||
?>
|
?>
|
||||||
<script>
|
<script>
|
||||||
var contentURL=window.location.pathname+window.location.search+window.location.hash;
|
var contentURL = window.location.pathname + window.location.search + window.location.hash;
|
||||||
if ( window.self !== window.top ) {
|
if (window.self !== window.top) {
|
||||||
/* Great! now we move along */
|
/* Great! now we move along */
|
||||||
} else {
|
} else {
|
||||||
window.location.href = '../index.php?content='+encodeURIComponent(contentURL);
|
window.location.href = '../index.php?content=' + encodeURIComponent(contentURL);
|
||||||
}
|
}
|
||||||
top.history.replaceState({}, 'Title', 'index.php?content='+encodeURIComponent(contentURL));
|
top.history.replaceState({}, 'Title', 'index.php?content=' + encodeURIComponent(contentURL));
|
||||||
</script>
|
</script>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -91,12 +91,15 @@ if (! $message)
|
||||||
// article not found
|
// article not found
|
||||||
echo $text_error["article_not_found"];
|
echo $text_error["article_not_found"];
|
||||||
else {
|
else {
|
||||||
if ($article_showthread)
|
if ($article_showthread) {
|
||||||
$thread = thread_cache_load($group);
|
$thread = thread_cache_load($group);
|
||||||
// echo "<br>";
|
}
|
||||||
message_show($group, $id, 0, $message);
|
$is_blocked = message_show($group, $id, 0, $message);
|
||||||
if ($article_showthread)
|
if (((! $CONFIG['readonly']) && ($message)) && $is_blocked != "blocked") {
|
||||||
|
echo '<form action="' . $file_post . '">' . '<input type="hidden" name="id" value="' . urlencode($id) . '">' . '<input type="hidden" name="type" value="reply">' . '<input type="hidden" name="group" value="' . urlencode($group) . '">' . '<input type="submit" value="' . $text_article["button_answer"] . '">' . '</form>';
|
||||||
|
}
|
||||||
|
if ($article_showthread) {
|
||||||
message_thread($message->header->id, $group, $thread);
|
message_thread($message->header->id, $group, $thread);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
include "tail.inc";
|
include "tail.inc";
|
||||||
?>
|
|
||||||
|
|
Loading…
Reference in New Issue