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.
User avatar
DoYouSpeakWak
Registered User
Posts: 2307
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Name: Hans Lassen
Contact:

Re: New topics need approval

Post by DoYouSpeakWak » Fri Jul 24, 2009 8:18 pm

Did the old version also have a install file ?, if so, Any chance you have it lying around ?

Thx for your time :)
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid phpBB help and System administrator services.

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

Re: New topics need approval

Post by mtrs » Fri Jul 24, 2009 8:23 pm

The code below was the install script of 1.0.1

Code: Select all

<?php

/** 
*
* install script to set up permission options in the db for foo mod
* @license http://opensource.org/licenses/gpl-license.php GNU Public License 
*
*/

/**
* @ignore
*/

// initialize the page
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);

// This code from the phpBB.com wiki
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup();
$user->add_lang('install');

if ($user->data['user_type'] != USER_FOUNDER)
{
	trigger_error('NOT_AUTHORISED');
}

// Setup $auth_admin class so we can add tabulated survey permission options
include($phpbb_root_path . 'includes/acp/auth.' . $phpEx);
$auth_admin = new auth_admin();

// Add foo permissions as local permissions
// (you could instead make them global permissions by making the obvious changes below)
$auth_admin->acl_add_option(array(
    'local'        => array('f_topic_approve'),
    'global'    => array()
));
// end code from the wiki

$message = "New topics need approval permission installed. <br /><br />";
$message .= "Please remove /install_ntna.php";
trigger_error($message);

?>
I abandoned all of my mods.

User avatar
DoYouSpeakWak
Registered User
Posts: 2307
Joined: Fri Jul 25, 2008 1:32 pm
Location: Island of Wak-Wak
Name: Hans Lassen
Contact:

Re: New topics need approval

Post by DoYouSpeakWak » Fri Jul 24, 2009 9:12 pm

Thx so much mtrs
Whatever you share comes back. Support the phpBB Communities
My Validated and Released Modifications
Offering paid phpBB help and System administrator services.

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

Re: New topics need approval

Post by Seraphic » Fri Jul 31, 2009 3:49 pm

Hi,

I am considering using this mod and just want to make sure I understand it correctly.
So using this mod permission, users that post new topics into the forum using the permission will require approval before they appear. But users that post replies to current topics will have their posts appear normally, correct?

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

Re: New topics need approval

Post by mtrs » Fri Jul 31, 2009 3:53 pm

Yes, correct.
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 » Fri Jul 31, 2009 3:59 pm

Alright, that was what I was looking for.

So the basic difference between the default On Moderation Queue permission and your mod permission is that On Moderation Queue forces approval of all user posts (both new or reply). While your mod on the other hand just forces approval of new topics and not replies. That about some it up?

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

Re: New topics need approval

Post by mtrs » Fri Jul 31, 2009 4:04 pm

Yes, this mod only affects $mode = 'post' (new topics) , while reply, quote and edits are not affected at all from this permission.
You simply set the forum permission, then new topics in that forum will go to moderation queue.
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 » Fri Jul 31, 2009 4:10 pm

Alright, I'm sold.
Is 1.0.2 going to be the newest version for awhile or do you have a new version coming out any time soon?

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

Re: New topics need approval

Post by mtrs » Fri Jul 31, 2009 4:18 pm

1.0.2 is a maintanence update, whic has UMIL supported install code with with role updates. What do you expect in a new version? This is a simple mod, and will stay so.
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 » Fri Jul 31, 2009 4:28 pm

What I was trying to say was if there was a new version in the works I would wait.
Rather then having to do the mod twice. But sounds like that should not be a problem.

Thanks for help.

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

Re: New topics need approval

Post by Seraphic » Fri Jul 31, 2009 5:14 pm

The install went well. Wanted to ask though, is it recommended to still use the On Moderation Queue permission and just set Can start new topics without approval to never? Or switch to something like standard access and switch Can start new topics without approval to never?

Oh and after the install, can the umil folder be deleted or must remain?

Thanks

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

Re: New topics need approval

Post by mtrs » Fri Jul 31, 2009 5:51 pm

UMIL folder can stay.
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 » Fri Jul 31, 2009 5:59 pm

What does the UMIL folder do though and why is needed?
I mean even when using the mod isn't post validation still handled by the default phpbb3 system/templates?
Wouldn't you just click on the "This post is waiting for approvall" link like normal, be sent to ".../mcp.php?i=queue&mode=approve_details", and approve or disapprove the message?

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

Re: New topics need approval

Post by nicke157 » Sat Aug 01, 2009 11:02 am

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 :?

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

Re: New topics need approval

Post by mtrs » Sat Aug 01, 2009 10:12 pm

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 set the forum permission after installing this mod, since default settings does not change anything.
Last edited by mtrs on Sat Aug 01, 2009 10:21 pm, edited 1 time in total.
I abandoned all of my mods.

Locked

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