There is no more force_approved_state AFAIR, has been replaced in 3.1.x by
'force_visibility' => true,
Code: Select all
// Check the permissions for post approval.
// Moderators must go through post approval like ordinary users.
if ((!$auth->acl_get('f_noapprove', $data['forum_id']) && empty($data['force_approved_state'])) || (isset($data['force_approved_state']) && !$data['force_approved_state']))
{
meta_refresh(10, $redirect_url);
$message = ($mode == 'edit') ? $user->lang['POST_EDITED_MOD'] : $user->lang['POST_STORED_MOD'];
$message .= (($user->data['user_id'] == ANONYMOUS) ? '' : ' '. $user->lang['POST_APPROVAL_NOTIFY']);
$message .= '<br /><br />' . sprintf($user->lang['RETURN_FORUM'], '<a href="' . append_sid("{$phpbb_root_path}viewforum.$phpEx", 'f=' . $data['forum_id']) . '">', '</a>');
trigger_error($message);
}
Oh, I am realizing - now - what you are after, indeed.
I don't want to ruin the party here but.. may I ask you why you are wasting (IMHO) your time re-inventing the wheel?This mod force member to introduce himself into a specific forum before beeing able to post everywhere into the forum.
... snip ...
That's true based on the description I above quoted.
So you want also old users to be forced to introduce themselves after a lot of posts?Feneck91 wrote: ↑Mon Jan 29, 2018 3:11 am add buttons under avatar to jump easily to an user introduce (and into the profile too).
Under a forum that contains lot of messages, how to force users to introduce themself ? All have alredy post a lot of messages, you cannot use the number of message to put user into a specific group to force introduce.
if ($this->user->data['introduced']
is true or false$event['rowset_data']['introduced']
when using the event core.viewtopic_post_rowset_data())Code: Select all
$the_permission = (bool) $this->auth->acl_get('u_can_post_with_no_introducion');
$the_user_has_introduced = (bool) $this->user->data['introduced'];
if ($the_permission && $the_user_has_introduced)
{
// do this and that
}