[MODDB] New topics need approval

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment!
Scam Warning
mtrs
Registered User
Posts: 2049
Joined: Sat Sep 22, 2007 2:39 pm

[MODDB] New topics need approval

Post by mtrs » Thu Oct 02, 2008 2:05 pm

Modification Name: New topics need approval
Author: mtrs

Modification Description: Adds a new forum permission which can send new topics to moderation
Modification Version: 1.0.0

Features:
  • Users can be moderated to start new topics.
  • Independent from the default Can post without approval permission.
  • Setting this forum permission to Yes for a user or any group sends their new topics to moderation queue.
  • Administrators and moderators are not affected
Demo:
New permission screenshot
ACP -> Forum Permissions
Image
Can start new topics with approval

Modification Download: New topics need approval

Made upon request in this topic.

edit: 2008-10-12 - version 0.0.3
  • bug fix of unapproved last topic name shown in forumlist
edit: 2008-11-06 - version 0.0.4
  • - computable 3.0.2 and 3.0.3
edit: 2008-10-16 - version 0.0.5
  • - computable only 3.0.3
    - codes simplified
Note: 0.0.5 only works with phpBB 3.0.3
Last edited by mtrs on Tue Dec 09, 2008 7:17 pm, edited 6 times in total.
I abandoned all of my mods.

User avatar
Diet Ebola Cola
Registered User
Posts: 132
Joined: Fri Oct 03, 2008 3:57 am
Location: USA

Re: [ALPHA] New topics need approval (0.0.2)

Post by Diet Ebola Cola » Sat Oct 04, 2008 1:42 am

I can see myself using this for newly Registered Users that i want to take part in discussion and to participate in the forum community before their post count bumps them up to a new group and they can create new topics.

Nice work! :D
Diet Ebola Cola

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

Re: [ALPHA] New topics need approval (0.0.2)

Post by mtrs » Thu Oct 09, 2008 6:26 pm

Surely, this mod can be helpful that way.
I have a few forums in my board closed to new topics. Now, instead of that, I can give users opening new topics permission, but with approval. :)

dingos
Registered User
Posts: 12
Joined: Wed Oct 08, 2008 11:01 am

Re: [ALPHA] New topics need approval (0.0.2)

Post by dingos » Sat Oct 11, 2008 8:37 am

Hello ,

Thank you definitely, it is exactly what I wanted.
I have a supporting problem since I installed modification each time I put a subject in approbation, he remains quant even visible in the viewtopic but they cannot come back indoors?

thank you

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

Re: [ALPHA] New topics need approval (0.0.2)

Post by mtrs » Sat Oct 11, 2008 8:50 am

dingos wrote:I have a supporting problem since I installed modification each time I put a subject in approbation
If you give
Can start new topics with approval
permission YES to some users or groups in a forum. Then, new topics by those users in some forums are to be approved.
After that, moderators can approve their new topics.
he remains quant even visible in the viewtopic but they cannot come back indoors?
I didn't understand this part, what is come back indoors? An unapproved topic can only be seen by moderators.
I abandoned all of my mods.

dingos
Registered User
Posts: 12
Joined: Wed Oct 08, 2008 11:01 am

Re: [ALPHA] New topics need approval (0.0.2)

Post by dingos » Sat Oct 11, 2008 10:26 am

everybody can see subject but only one moderator and administrator be able to come back indoors

thank you

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

Re: [ALPHA] New topics need approval (0.0.2)

Post by mtrs » Sat Oct 11, 2008 10:33 am

I still don't understand, what you mean by saying "come back indoors"?
Administrators and moderators are not affected from this permission, it is the intended behavior. Test this permission with a normal user account.
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: [ALPHA] New topics need approval (0.0.2)

Post by DoYouSpeakWak » Sat Oct 11, 2008 11:52 am

We have a support section. Now all new topics and replies needs to be approved. With this on YES and the Post without approval OFF could new topics only require approval but not replies ?

DYSW
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: [ALPHA] New topics need approval (0.0.2)

Post by mtrs » Sat Oct 11, 2008 11:58 am

Yes, with this permission (set to YES), only new topics ($mode = "post") need approval; but any edits, replies and quotes won't not need approval.
I abandoned all of my mods.

dingos
Registered User
Posts: 12
Joined: Wed Oct 08, 2008 11:01 am

Re: [ALPHA] New topics need approval (0.0.2)

Post by dingos » Sat Oct 11, 2008 8:17 pm

ok it's not easy to explain because it's not my language :roll: :roll: :roll:

when a new topic from user need approval !
the user can see the topic
but just can see the title of the topic , the title of topic it's not invisible for the member
and if the user want to go in the topic it's impossible because (i think) it's not approval

thank you

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

Re: [ALPHA] New topics need approval (0.0.2)

Post by mtrs » Sat Oct 11, 2008 8:46 pm

You need to check the edits in includes/functions_posting.php file.
I abandoned all of my mods.

dingos
Registered User
Posts: 12
Joined: Wed Oct 08, 2008 11:01 am

Re: [ALPHA] New topics need approval (0.0.2)

Post by dingos » Sun Oct 12, 2008 8:24 am

hello

i have check the function_posting.php ! but i dont see a problems ?

can you see the files ?

Here for the file

Thank you

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

Re: [ALPHA] New topics need approval (0.0.2)

Post by mtrs » Sun Oct 12, 2008 8:28 am

You can't put php file as download, rename it with .txt extension. Also, you can give your board url and a test account to me. If you don't want post, pm me.
I abandoned all of my mods.

dingos
Registered User
Posts: 12
Joined: Wed Oct 08, 2008 11:01 am

Re: [ALPHA] New topics need approval (0.0.2)

Post by dingos » Sun Oct 12, 2008 9:46 am

ok but it's ok !

juste a problem with a mod "global announcement" !

i have double Insert ! arffff

thank you for your help

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

Re: [ALPHA] New topics need approval (0.0.3)

Post by mtrs » Sun Oct 12, 2008 8:54 pm

Version updated to 0.0.2 -> 0.0.3
dingos wrote:when a new topic from user need approval !
the user can see the topic
but just can see the title of the topic ,
Thank you, now I understand what you meant, that was a bug and fixed.

If the topic unapproved, although not accessible, last topic name was shown in forum list body.

That bug in 0.0.2 fixed in 0.0.3

Open
includes/functions_posting.php

Find

Code: Select all

		if (($post_mode == 'post' || $post_mode == 'reply') && $post_approved)
Replace with

Code: Select all

		if ((($post_mode == 'post' && $auth->acl_get('f_topic_approve', $data['forum_id'])) || $post_mode == 'reply') && $post_approved)
I abandoned all of my mods.

Locked

Return to “[3.0.x] MODs in Development”