Topic: Post limit in topic

Hello everyone.

I want to make my forum close the topic after 1000 post and probaly open the next one with the same "title (continuation)".

I've found one solution in version 1.2, but it doesn't work in 1.4. Can anybody help me with this task?

2 (edited by kudataz 2015-01-13 22:20)

Re: Post limit in topic

divoannet wrote:

Hello everyone.

I want to make my forum close the topic after 1000 post and probaly open the next one with the same "title (continuation)".

I've found one solution in version 1.2, but it doesn't work in 1.4. Can anybody help me with this task?

i think this may be great with new extension big_smile

sorry my BAD english T___T
Have a nice day >.<
(^____^)v

3 (edited by divoannet 2015-01-20 15:12)

Re: Post limit in topic

Finally I wrote to post.php

if ($cur_posting['num_replies'] > 999 && $cur_topic['closed'] == '0') {
    $query = array(
        'UPDATE'    => 'topics',
        'SET'        => 'closed=1',
        'WHERE'        => 'id='.$cur_posting['id']
    );
    $forum_db->query_build($query) or error(__FILE__, __LINE__);
}

and it's working.

4 (edited by keeshii 2015-01-20 18:33)

Re: Post limit in topic

Great! Can you tell us, where exacly have you put this code? I assume it is next to the hook po_pre_add_post? Am I right?

If you want to contact me quickly - send e-mail, not PM.
<?php $t='<?php $t=%c%s%c; printf($t,39,$t,39,10);%c'; printf($t,39,$t,39,10);

Re: Post limit in topic

Code contains a lot of mistakes.
The original version (also may contain errors): http://punbb.ru/post43286.html#p43286

ForkBB
I speak only Russian  :P

Re: Post limit in topic

Visman, it's my own code from the time of waiting your answer.
Not experienced developer, don't understand now my mistakes. Sorry)
I'll be better.

Re: Post limit in topic

divoannet wrote:

Visman, it's my own code from the time of waiting your answer.
Not experienced developer, don't understand now my mistakes. Sorry)
I'll be better.

nope dont get stack.. may guru keeshii can solved this case big_smile

sorry my BAD english T___T
Have a nice day >.<
(^____^)v