Newtopic: Added configuring robots indexing (#1599)

* Added ability configure robots indexing while creating new topic

* Update viewtopic.php

* Update mysql.sql

* Update posting.php

* Update Post.php

* Update CHANGELOG.md

* Update posting.php

* Update posting.php

* Update Post.php

* Update posting.tpl

* Update posting.php
This commit is contained in:
Roman Kelesidis 2024-08-18 17:18:46 +07:00 committed by GitHub
commit 607141e51d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 34 additions and 10 deletions

View file

@ -113,6 +113,9 @@ $topic_id = $t_data['topic_id'];
$forum_id = $t_data['forum_id'];
$topic_attachment = isset($t_data['topic_attachment']) ? (int)$t_data['topic_attachment'] : null;
// Allow robots indexing
$page_cfg['allow_robots'] = (bool)$t_data['topic_allow_robots'];
if ($t_data['allow_porno_topic'] && bf($userdata['user_opt'], 'user_opt', 'user_porn_forums')) {
bb_die($lang['ERROR_PORNO_FORUM']);
}