Page 4 of 10

Re: New topics need approval

Posted: Fri Jul 24, 2009 8:18 pm
by DoYouSpeakWak
Did the old version also have a install file ?, if so, Any chance you have it lying around ?

Thx for your time :)

Re: New topics need approval

Posted: Fri Jul 24, 2009 8:23 pm
by mtrs
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);

?>

Re: New topics need approval

Posted: Fri Jul 24, 2009 9:12 pm
by DoYouSpeakWak
Thx so much mtrs

Re: New topics need approval

Posted: Fri Jul 31, 2009 3:49 pm
by Seraphic
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?

Re: New topics need approval

Posted: Fri Jul 31, 2009 3:53 pm
by mtrs
Yes, correct.

Re: New topics need approval

Posted: Fri Jul 31, 2009 3:59 pm
by Seraphic
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?

Re: New topics need approval

Posted: Fri Jul 31, 2009 4:04 pm
by mtrs
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.

Re: New topics need approval

Posted: Fri Jul 31, 2009 4:10 pm
by Seraphic
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?

Re: New topics need approval

Posted: Fri Jul 31, 2009 4:18 pm
by mtrs
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.

Re: New topics need approval

Posted: Fri Jul 31, 2009 4:28 pm
by Seraphic
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.

Re: New topics need approval

Posted: Fri Jul 31, 2009 5:14 pm
by Seraphic
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

Re: New topics need approval

Posted: Fri Jul 31, 2009 5:51 pm
by mtrs
UMIL folder can stay.

Re: New topics need approval

Posted: Fri Jul 31, 2009 5:59 pm
by Seraphic
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?

Re: New topics need approval

Posted: Sat Aug 01, 2009 11:02 am
by nicke157
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 :?

Re: New topics need approval

Posted: Sat Aug 01, 2009 10:12 pm
by mtrs
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.