mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
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:
parent
7e43a6d002
commit
607141e51d
7 changed files with 34 additions and 10 deletions
|
@ -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']);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue