New topics need approval

All new MODs released in our MOD Database will be announced in here. All support for released MODs needs to take place in the Customisations Database.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTICE: This forum is only for the announcement of new releases and/or updates of MODs. Any MOD support should be obtained through the Customisations Database in the support area designated for each MOD.

A direct link to support for each MOD is in the first post of the respective topic.
Locked
User avatar
nicke157
Registered User
Posts: 48
Joined: Sun Nov 09, 2008 11:02 pm
Contact:

Re: New topics need approval

Post by nicke157 »

mtrs wrote:
nicke157 wrote:This doesn't works for me. The registered users get the message that their topic need to be approval but they still can post the topic. I can also not found the topic at moderator panel :?
You should the forum permission first. After the install, default settings does not change anything.
I already have did that:

"Can start new topics without approval" "No"

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: New topics need approval

Post by mtrs »

So, make it NEVER
I abandoned all of my mods.

User avatar
nicke157
Registered User
Posts: 48
Joined: Sun Nov 09, 2008 11:02 pm
Contact:

Re: New topics need approval

Post by nicke157 »

mtrs wrote:So, make it NEVER
Can still post without approval. :?

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: New topics need approval

Post by mtrs »

Did you make the edits of this mod?
I abandoned all of my mods.

User avatar
nicke157
Registered User
Posts: 48
Joined: Sun Nov 09, 2008 11:02 pm
Contact:

Re: New topics need approval

Post by nicke157 »

mtrs wrote:Did you make the edits of this mod?
Sure.

Whatever, I found now that this function conflicts now with my modification on the homepage. So I can not however use this function,

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: New topics need approval

Post by mtrs »

What is your phpBB3 version?
I abandoned all of my mods.

Seraphic
Registered User
Posts: 274
Joined: Wed Feb 15, 2006 8:20 am

Re: New topics need approval

Post by Seraphic »

Is the UMIL folder part of the mod or only an install option?
I would like to delete it if it not a working part of the mod, which it doesn't seem to be based on install process.

Thanks
Last edited by Seraphic on Sun Aug 02, 2009 9:02 pm, edited 1 time in total.

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: New topics need approval

Post by mtrs »

If you want, you can delete UMIL folder, it is used for mod install.
I abandoned all of my mods.

User avatar
Lowered
Registered User
Posts: 166
Joined: Sun May 10, 2009 10:55 pm

Re: New topics need approval

Post by Lowered »

As sugested in this post:
http://www.phpbb.com/community/viewtopi ... &t=1733425

I installed the mod allready but havent noticed any changes (really noob at configuring permissions) :(
Is it possible to have Moderation Queue only for new topics on a forum and still have topic reply's unlocked for everybody?
In that way, users whould still be permitted to reply to existing topics but whould have to wait for approval on new topic creation...?
If so, could you please tell me how to make it work?
:mrgreen:

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: New topics need approval

Post by mtrs »

After installing this mod, by default nothing changes.
You'll have change users'/groups' forum permissions

ACP -> USERS AND GROUPS -> Groups' forum permissions
----||-----||-------||----MISC------||
--
"Can start new topics without approval" YES -- NO --- NEVER
---
Set NO or NEVER

Also, don't forget to run permission install script at the end, see DIY section.
I abandoned all of my mods.

User avatar
Lowered
Registered User
Posts: 166
Joined: Sun May 10, 2009 10:55 pm

Re: New topics need approval

Post by Lowered »

Ahh yes, i was thinking about that.
What DIY section? Could you please link me if that isnt too much trouble?

Best regards mate!
:mrgreen:

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: New topics need approval

Post by mtrs »

DIY - Do It Yourself
It is at the bottom of mod install.xml file. Just scroll down the install.xml page, you'll see the instructions.
if you copied the files
just run
phpBB3/install_ntna.php
I abandoned all of my mods.

User avatar
Lowered
Registered User
Posts: 166
Joined: Sun May 10, 2009 10:55 pm

Re: New topics need approval

Post by Lowered »

Thank you!
I've searched the posting.php file but cant find the first part of the DIY:

It tells us to find:

Code: Select all

$message .= (($user->data['user_id'] == ANONYMOUS) ? '' : ' '. $user->lang['POST_APPROVAL_NOTIFY']);
			}
And add this after:

Code: Select all

			//Begin: New topics need approval
			else if ($mode == 'post' && !$auth->acl_get('f_topic_approve', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id']))
			{
				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']);
			}
			//Begin: New topics need approval
My posting.php:

Code: Select all

<?php
/**
*
* posting [English]
*
* @package language
* @version $Id: posting.php 9464 2009-04-17 15:52:40Z acydburn $
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/

/**
* DO NOT CHANGE
*/
if (!defined('IN_PHPBB'))
{
	exit;
}

if (empty($lang) || !is_array($lang))
{
	$lang = array();
}

// DEVELOPERS PLEASE NOTE
//
// All language files should use UTF-8 as their encoding and the files must not contain a BOM.
//
// Placeholders can now contain order information, e.g. instead of
// 'Page %s of %s' you can (and should) write 'Page %1$s of %2$s', this allows
// translators to re-order the output of data while ensuring it remains correct
//
// You do not need this where single placeholders are used, e.g. 'Message %d' is fine
// equally where a string contains only two placeholders which are used to wrap text
// in a url you again do not need to specify an order e.g., 'Click %sHERE%s' is fine

$lang = array_merge($lang, array(
	'ADD_ATTACHMENT'			=> 'Upload attachment',
	'ADD_ATTACHMENT_EXPLAIN'	=> 'If you wish to attach one or more files enter the details below.',
	'ADD_FILE'					=> 'Add the file',
	'ADD_POLL'					=> 'Poll creation',
	'ADD_POLL_EXPLAIN'			=> 'If you do not want to add a poll to your topic leave the fields blank.',
	'ALREADY_DELETED'			=> 'Sorry but this message is already deleted.',
	'ATTACH_QUOTA_REACHED'		=> 'Sorry, the board attachment quota has been reached.',
	'ATTACH_SIG'				=> 'Attach a signature (signatures can be altered via the UCP)',

	'BBCODE_A_HELP'				=> 'Inline uploaded attachment: [attachment=]filename.ext[/attachment]',
	'BBCODE_B_HELP'				=> 'Bold text: [b]text[/b]',
	'BBCODE_C_HELP'				=> 'Code display: [code]code
',
'BBCODE_E_HELP' => 'List: Add list element',
'BBCODE_F_HELP' => 'Font size: small text',
'BBCODE_IS_OFF' => '%sBBCode%s is <em>OFF</em>',
'BBCODE_IS_ON' => '%sBBCode%s is <em>ON</em>',
'BBCODE_I_HELP' => 'Italic text: text',
'BBCODE_L_HELP' => 'List:
  • text
',
'BBCODE_LISTITEM_HELP' => 'List item: [*]text[/*]',
'BBCODE_O_HELP' => 'Ordered list:
  • text
',
'BBCODE_P_HELP' => 'Insert image: [img]http://image_url[/img]',
'BBCODE_Q_HELP' => 'Quote text: [quote]text[/quote]',
'BBCODE_S_HELP' => 'Font colour: text Tip: you can also use color=#FF0000',
'BBCODE_U_HELP' => 'Underline text: text',
'BBCODE_W_HELP' => 'Insert URL: http://url or URL text',
'BBCODE_D_HELP' => 'Flash: [flash=width,height]http://url[/flash]',
'BUMP_ERROR' => 'You cannot bump this topic so soon after the last post.',

'CANNOT_DELETE_REPLIED' => 'Sorry but you may only delete posts which have not been replied to.',
'CANNOT_EDIT_POST_LOCKED' => 'This post has been locked. You can no longer edit that post.',
'CANNOT_EDIT_TIME' => 'You can no longer edit or delete that post.',
'CANNOT_POST_ANNOUNCE' => 'Sorry but you cannot post announcements.',
'CANNOT_POST_STICKY' => 'Sorry but you cannot post sticky topics.',
'CHANGE_TOPIC_TO' => 'Change topic type to',
'CLOSE_TAGS' => 'Close tags',
'CURRENT_TOPIC' => 'Current topic',

'DELETE_FILE' => 'Delete file',
'DELETE_MESSAGE' => 'Delete message',
'DELETE_MESSAGE_CONFIRM' => 'Are you sure you want to delete this message?',
'DELETE_OWN_POSTS' => 'Sorry but you can only delete your own posts.',
'DELETE_POST_CONFIRM' => 'Are you sure you want to delete this post?',
'DELETE_POST_WARN' => 'Once deleted the post cannot be recovered',
'DISABLE_BBCODE' => 'Disable BBCode',
'DISABLE_MAGIC_URL' => 'Do not automatically parse URLs',
'DISABLE_SMILIES' => 'Disable smilies',
'DISALLOWED_CONTENT' => 'The upload was rejected because the uploaded file was identified as a possible attack vector.',
'DISALLOWED_EXTENSION' => 'The extension %s is not allowed.',
'DRAFT_LOADED' => 'Draft loaded into posting area, you may want to finish your post now.<br />Your draft will be deleted after submitting this post.',
'DRAFT_LOADED_PM' => 'Draft loaded into message area, you may want to finish your private message now.<br />Your draft will be deleted after submitting this private message.',
'DRAFT_SAVED' => 'Draft successfully saved.',
'DRAFT_TITLE' => 'Draft title',

'EDIT_REASON' => 'Reason for editing this post',
'EMPTY_FILEUPLOAD' => 'The uploaded file is empty.',
'EMPTY_MESSAGE' => 'You must enter a message when posting.',
'EMPTY_REMOTE_DATA' => 'File could not be uploaded, please try uploading the file manually.',

'FLASH_IS_OFF' => '[flash] is <em>OFF</em>',
'FLASH_IS_ON' => '[flash] is <em>ON</em>',
'FLOOD_ERROR' => 'You cannot make another post so soon after your last.',
'FONT_COLOR' => 'Font colour',
'FONT_COLOR_HIDE' => 'Hide font colour',
'FONT_HUGE' => 'Huge',
'FONT_LARGE' => 'Large',
'FONT_NORMAL' => 'Normal',
'FONT_SIZE' => 'Font size',
'FONT_SMALL' => 'Small',
'FONT_TINY' => 'Tiny',

'GENERAL_UPLOAD_ERROR' => 'Could not upload attachment to %s.',

'IMAGES_ARE_OFF' => '[img] is <em>OFF</em>',
'IMAGES_ARE_ON' => '[img] is <em>ON</em>',
'INVALID_FILENAME' => '%s is an invalid filename.',

'LOAD' => 'Load',
'LOAD_DRAFT' => 'Load draft',
'LOAD_DRAFT_EXPLAIN' => 'Here you are able to select the draft you want to continue writing. Your current post will be cancelled, all current post contents will be deleted. View, edit and delete drafts within your User Control Panel.',
'LOGIN_EXPLAIN_BUMP' => 'You need to login in order to bump topics within this forum.',
'LOGIN_EXPLAIN_DELETE' => 'You need to login in order to delete posts within this forum.',
'LOGIN_EXPLAIN_POST' => 'You need to login in order to post within this forum.',
'LOGIN_EXPLAIN_QUOTE' => 'You need to login in order to quote posts within this forum.',
'LOGIN_EXPLAIN_REPLY' => 'You need to login in order to reply to topics within this forum.',

'MAX_FONT_SIZE_EXCEEDED' => 'You may only use fonts up to size %1$d.',
'MAX_FLASH_HEIGHT_EXCEEDED' => 'Your flash files may only be up to %1$d pixels high.',
'MAX_FLASH_WIDTH_EXCEEDED' => 'Your flash files may only be up to %1$d pixels wide.',
'MAX_IMG_HEIGHT_EXCEEDED' => 'Your images may only be up to %1$d pixels high.',
'MAX_IMG_WIDTH_EXCEEDED' => 'Your images may only be up to %1$d pixels wide.',

'MESSAGE_BODY_EXPLAIN' => 'Enter your message here, it may contain no more than <strong>%d</strong> characters.',
'MESSAGE_DELETED' => 'This message has been deleted successfully.',
'MORE_SMILIES' => 'View more smilies',

'NOTIFY_REPLY' => 'Notify me when a reply is posted',
'NOT_UPLOADED' => 'File could not be uploaded.',
'NO_DELETE_POLL_OPTIONS' => 'You cannot delete existing poll options.',
'NO_PM_ICON' => 'No PM icon',
'NO_POLL_TITLE' => 'You have to enter a poll title.',
'NO_POST' => 'The requested post does not exist.',
'NO_POST_MODE' => 'No post mode specified.',

'PARTIAL_UPLOAD' => 'The uploaded file was only partially uploaded.',
'PHP_SIZE_NA' => 'The attachment’s file size is too large.<br />Could not determine the maximum size defined by PHP in php.ini.',
'PHP_SIZE_OVERRUN' => 'The attachment’s file size is too large, the maximum upload size is %1$d %2$s.<br />Please note this is set in php.ini and cannot be overridden.',
'PLACE_INLINE' => 'Place inline',
'POLL_DELETE' => 'Delete poll',
'POLL_FOR' => 'Run poll for',
'POLL_FOR_EXPLAIN' => 'Enter 0 or leave blank for a never ending poll.',
'POLL_MAX_OPTIONS' => 'Options per user',
'POLL_MAX_OPTIONS_EXPLAIN' => 'This is the number of options each user may select when voting.',
'POLL_OPTIONS' => 'Poll options',
'POLL_OPTIONS_EXPLAIN' => 'Place each option on a new line. You may enter up to <strong>%d</strong> options.',
'POLL_OPTIONS_EDIT_EXPLAIN' => 'Place each option on a new line. You may enter up to <strong>%d</strong> options. If you remove or add options all previous votes will be reset.',
'POLL_QUESTION' => 'Poll question',
'POLL_TITLE_TOO_LONG' => 'The poll title must contain fewer than 100 characters.',
'POLL_TITLE_COMP_TOO_LONG' => 'The parsed size of your poll title is too large, consider removing BBCodes or smilies.',
'POLL_VOTE_CHANGE' => 'Allow re-voting',
'POLL_VOTE_CHANGE_EXPLAIN' => 'If enabled users are able to change their vote.',
'POSTED_ATTACHMENTS' => 'Posted attachments',
'POST_APPROVAL_NOTIFY' => 'You will be notified when your post has been approved.',
'POST_CONFIRMATION' => 'Confirmation of post',
'POST_CONFIRM_EXPLAIN' => 'To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.',
'POST_DELETED' => 'This message has been deleted successfully.',
'POST_EDITED' => 'This message has been edited successfully.',
'POST_EDITED_MOD' => 'This message has been edited successfully, but it will need to be approved by a moderator before it is publicly viewable.',
'POST_GLOBAL' => 'Global',
'POST_ICON' => 'Post icon',
'POST_NORMAL' => 'Normal',
'POST_REVIEW' => 'Post review',
'POST_REVIEW_EXPLAIN' => 'At least one new post has been made to this topic. You may wish to review your post in light of this.',
'POST_STORED' => 'This message has been posted successfully.',
'POST_STORED_MOD' => 'This message has been submitted successfully, but it will need to be approved by a moderator before it is publicly viewable.',
'POST_TOPIC_AS' => 'Post topic as',
'PROGRESS_BAR' => 'Progress bar',

'QUOTE_DEPTH_EXCEEDED' => 'You may embed only %1$d quotes within each other.',

'SAVE' => 'Save',
'SAVE_DATE' => 'Saved at',
'SAVE_DRAFT' => 'Save draft',
'SAVE_DRAFT_CONFIRM' => 'Please note that saved drafts only include the subject and the message, any other element will be removed. Do you want to save your draft now?',
'SMILIES' => 'Smilies',
'SMILIES_ARE_OFF' => 'Smilies are <em>OFF</em>',
'SMILIES_ARE_ON' => 'Smilies are <em>ON</em>',
'STICKY_ANNOUNCE_TIME_LIMIT'=> 'Sticky/Announcement time limit',
'STICK_TOPIC_FOR' => 'Stick topic for',
'STICK_TOPIC_FOR_EXPLAIN' => 'Enter 0 or leave blank for a never ending Sticky/Announcement.',
'STYLES_TIP' => 'Tip: Styles can be applied quickly to selected text.',

'TOO_FEW_CHARS' => 'Your message contains too few characters.',
'TOO_FEW_POLL_OPTIONS' => 'You must enter at least two poll options.',
'TOO_MANY_ATTACHMENTS' => 'Cannot add another attachment, %d is the maximum.',
'TOO_MANY_CHARS' => 'Your message contains too many characters.',
'TOO_MANY_CHARS_POST' => 'Your message contains %1$d characters. The maximum number of allowed characters is %2$d.',
'TOO_MANY_CHARS_SIG' => 'Your signature contains %1$d characters. The maximum number of allowed characters is %2$d.',
'TOO_MANY_POLL_OPTIONS' => 'You have tried to enter too many poll options.',
'TOO_MANY_SMILIES' => 'Your message contains too many smilies. The maximum number of smilies allowed is %d.',
'TOO_MANY_URLS' => 'Your message contains too many URLs. The maximum number of URLs allowed is %d.',
'TOO_MANY_USER_OPTIONS' => 'You cannot specify more options per user than existing poll options.',
'TOPIC_BUMPED' => 'Topic has been bumped successfully.',

'UNAUTHORISED_BBCODE' => 'You cannot use certain BBCodes: %s.',
'UNGLOBALISE_EXPLAIN' => 'To switch this topic back from being global to a normal topic, you need to select the forum you wish this topic to be displayed.',
'UPDATE_COMMENT' => 'Update comment',
'URL_INVALID' => 'The URL you specified is invalid.',
'URL_NOT_FOUND' => 'The file specified could not be found.',
'URL_IS_OFF' => '[url] is <em>OFF</em>',
'URL_IS_ON' => '[url] is <em>ON</em>',
'USER_CANNOT_BUMP' => 'You cannot bump topics in this forum.',
'USER_CANNOT_DELETE' => 'You cannot delete posts in this forum.',
'USER_CANNOT_EDIT' => 'You cannot edit posts in this forum.',
'USER_CANNOT_REPLY' => 'You cannot reply in this forum.',
'USER_CANNOT_FORUM_POST' => 'You are not able to do posting operations on this forum due to the forum type not supporting it.',

'VIEW_MESSAGE' => '%sView your submitted message%s',
'VIEW_PRIVATE_MESSAGE' => '%sView your submitted private message%s',

'WRONG_FILESIZE' => 'The file is too big, maximum allowed size is %1d %2s.',
'WRONG_SIZE' => 'The image must be at least %1$d pixels wide, %2$d pixels high and at most %3$d pixels wide and %4$d pixels high. The submitted image is %5$d pixels wide and %6$d pixels high.',
));

?>
[/code]

I allready used Automod to installed the instal_ntna.php file. Any more mod's to be made?
Second part gone well also, modded includes/functions_posting.php file sucessfully.

Using these settings, choosing "NO" will block both reply's and new topics...
I only wanted to lock new topics..?
:mrgreen:

mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

Re: New topics need approval

Post by mtrs »

There are only two file edits
phpBB3/posting.php
phpBB3/includes/functions_posting.php

This mod only sends new topics to moderation queue if the permission set, reply and quotes are not affected.
I abandoned all of my mods.

User avatar
Lowered
Registered User
Posts: 166
Joined: Sun May 10, 2009 10:55 pm

Re: New topics need approval

Post by Lowered »

phpBB3/posting.php - no lines found (as above)
phpBB3/includes/functions_posting.php - modifications done.
mtrs wrote: This mod only sends new topics to moderation queue if the permission set, reply and quotes are not affected.
Everything is beeing sent to queue..
Is is because of no lines beeing found on the posting.php file?
Check post above please..
:mrgreen:

Locked

Return to “[3.0.x] MOD Database Releases”