mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
WIP: Anonymous topics 👻
This commit is contained in:
parent
52281847ff
commit
27c333ba46
1 changed files with 5 additions and 2 deletions
|
@ -249,9 +249,11 @@ if (!empty($bb_cfg['tor_cannot_edit']) && $post_info['allow_reg_tracker'] && $po
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Notify & Allow robots indexing
|
// Notify, allow robots indexing and anonymous mode
|
||||||
|
$anonymous_mode = $post_info['post_anonymous_mode'] ?? false; // TODO: bf() & force mode
|
||||||
$robots_indexing = $post_info['topic_allow_robots'] ?? true;
|
$robots_indexing = $post_info['topic_allow_robots'] ?? true;
|
||||||
if ($submit || $refresh) {
|
if ($submit || $refresh) {
|
||||||
|
$anonymous_mode = !empty($_POST['anonymous']);
|
||||||
if (IS_AM) {
|
if (IS_AM) {
|
||||||
$robots_indexing = !empty($_POST['robots']);
|
$robots_indexing = !empty($_POST['robots']);
|
||||||
}
|
}
|
||||||
|
@ -614,7 +616,6 @@ $template->assign_vars([
|
||||||
'POSTING_TYPE_TITLE' => $page_title,
|
'POSTING_TYPE_TITLE' => $page_title,
|
||||||
'POSTING_TOPIC_ID' => ($mode != 'newtopic') ? $topic_id : '',
|
'POSTING_TOPIC_ID' => ($mode != 'newtopic') ? $topic_id : '',
|
||||||
'POSTING_TOPIC_TITLE' => ($mode != 'newtopic') ? $post_info['topic_title'] : '',
|
'POSTING_TOPIC_TITLE' => ($mode != 'newtopic') ? $post_info['topic_title'] : '',
|
||||||
'U_VIEW_FORUM' => FORUM_URL . $forum_id,
|
|
||||||
|
|
||||||
'USERNAME' => @$username,
|
'USERNAME' => @$username,
|
||||||
'CAPTCHA_HTML' => (IS_GUEST && !$bb_cfg['captcha']['disabled']) ? bb_captcha('get') : '',
|
'CAPTCHA_HTML' => (IS_GUEST && !$bb_cfg['captcha']['disabled']) ? bb_captcha('get') : '',
|
||||||
|
@ -624,10 +625,12 @@ $template->assign_vars([
|
||||||
'POSTER_RGROUPS' => !empty($poster_rgroups) ? $poster_rgroups : '',
|
'POSTER_RGROUPS' => !empty($poster_rgroups) ? $poster_rgroups : '',
|
||||||
'ATTACH_RG_SIG' => $switch_rg_sig ?: false,
|
'ATTACH_RG_SIG' => $switch_rg_sig ?: false,
|
||||||
|
|
||||||
|
'U_VIEW_FORUM' => FORUM_URL . $forum_id,
|
||||||
'U_VIEWTOPIC' => ($mode == 'reply') ? TOPIC_URL . "$topic_id&postorder=desc" : '',
|
'U_VIEWTOPIC' => ($mode == 'reply') ? TOPIC_URL . "$topic_id&postorder=desc" : '',
|
||||||
|
|
||||||
'S_NOTIFY_CHECKED' => $notify_user ? 'checked' : '',
|
'S_NOTIFY_CHECKED' => $notify_user ? 'checked' : '',
|
||||||
'S_ROBOTS_CHECKED' => $robots_indexing ? 'checked' : '',
|
'S_ROBOTS_CHECKED' => $robots_indexing ? 'checked' : '',
|
||||||
|
'S_ANONYMOUS_CHECKED' => $anonymous_mode ? 'checked' : '',
|
||||||
'S_TYPE_TOGGLE' => $topic_type_toggle,
|
'S_TYPE_TOGGLE' => $topic_type_toggle,
|
||||||
'S_TOPIC_ID' => $topic_id,
|
'S_TOPIC_ID' => $topic_id,
|
||||||
'S_POST_ACTION' => POSTING_URL,
|
'S_POST_ACTION' => POSTING_URL,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue