Thanks.idiotnesia wrote:open: posting.phpGazNicki wrote:Works perfectly. Thank you.
Is there a way to make it a requirement to select a Topic Prefix. When you submit a Topic with a blank Subject you get an error message. Is there a way to make the forum need a Topic Prefix before the post can be submitted??
I would like to force my members to select a topic prefix for their posts in one particular forum.
findadd-afterCode: Select all
// idiotnesia wuz here - topic prefix mod $post_data['topic_prefix'] = request_var('prefix', 0); // end
Code: Select all
$prefix_req_forum = array('2', '4', '6'); // replace with your forum id if (in_array($forum_id, $prefix_req_forum) && !$post_data['topic_prefix'] && $mode == 'post') { $error[] = 'Topic title prefix is required'; }
However, it works only when i submit a new Topic.
when i edit the topic, it do not work.
can i fix it?