Message limit for a new post

Looking for a MOD? Have a MOD request? Post here for help. (Note: This forum is community supported; phpBB does not have official MOD authors)
Get Involved
Locked
User avatar
vsabah
Registered User
Posts: 357
Joined: Wed Apr 05, 2006 5:57 pm
Location: Konya / Türkiye
Contact:

Message limit for a new post

Post by vsabah » Fri Aug 14, 2009 10:42 pm

Hi friends,

I want a mod which limits sending a new post for new users. In other words I don't want that new users can't post a new message. If they reach number of 15 messages they can post a new title.

Is there a mod for this?

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

Re: Message limit for a new post

Post by mtrs » Fri Aug 14, 2009 11:06 pm

You can use Auto Groups mod, by adding users who has fewer than 15 posts to groupA, (set groupA permission cannot start new topics)
After having more then 15 post remove users from groupA.
I abandoned all of my mods.

User avatar
vsabah
Registered User
Posts: 357
Joined: Wed Apr 05, 2006 5:57 pm
Location: Konya / Türkiye
Contact:

Re: Message limit for a new post

Post by vsabah » Sat Aug 15, 2009 12:00 am

mtrs wrote:You can use Auto Groups mod, by adding users who has fewer than 15 posts to groupA, (set groupA permission cannot start new topics)
After having more then 15 post remove users from groupA.
Thanks! But I can't follow that. :(

More easiear way please!

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

Re: Message limit for a new post

Post by mtrs » Sat Aug 15, 2009 12:06 am

Open
posting.php
Find

Code: Select all

$current_time = time();  
After add

Code: Select all

if ($user->data['user_posts'] < 15 && $mode == 'post' && !$auth->acl_gets('a_', 'm_') && !$auth->acl_getf_global('m_'))
{
       trigger_error('You cannot open new topics unless you have 15 posts.');
} 
I didn't test it.
I abandoned all of my mods.

User avatar
vsabah
Registered User
Posts: 357
Joined: Wed Apr 05, 2006 5:57 pm
Location: Konya / Türkiye
Contact:

Re: Message limit for a new post

Post by vsabah » Sat Aug 15, 2009 12:17 am

Great! Again! :D

It worked 8-)

Thanks my friend ;)

Poldi225
Registered User
Posts: 6
Joined: Thu Feb 19, 2009 7:20 pm

Re: Message limit for a new post

Post by Poldi225 » Mon Aug 17, 2009 6:18 pm

great!

Locked

Return to “[3.0.x] MOD Requests”