Page 1 of 2
max messages count
Posted: Tue Nov 13, 2007 12:47 pm
by icepack
Script URL:
Version of script:
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
hi there,
i currently have the max number of messages set to 200.
when that limit is reached does the count go to 201, 202. etc, or start again from 1, 2...
also, the newest topic will still be displayed at the top right?
any help appreciated.
Thanks!
Posted: Tue Nov 13, 2007 12:56 pm
by icepack
sorry just another relating question.
for example if the limit was reached, and the oldest topic was msg number 1, with a reply being 2. what happens to the reply when a new topic is posted? is the entire topic deleted, i.e. posts 1 and 2 are both lost?
Posted: Tue Nov 13, 2007 2:18 pm
by Klemen
After that old posts will be deleted (yes, including replies)
Page Breaks
Posted: Tue Nov 20, 2007 4:58 pm
by len
Hi
Is it possible to have page breaks
i.e
| 1 2 3 4 of 4 | Next Page >>
On the Mboard?
Many thanks for any help!

Posted: Tue Nov 20, 2007 6:09 pm
by Klemen
No, MBoard doesn't support that.
Many thanks!
Posted: Wed Nov 21, 2007 9:06 am
by len
Klemen Stirn wrote:No, MBoard doesn't support that.
Hi
Ok many thanks for your reply
it's much appreciated!!!

Posted: Sat Dec 01, 2007 1:34 pm
by icepack
hi again
i was wondering if there's a max count limit on mboard.
i.e. after a certain number of counts, i'll need to reset the count or something, or will it just keep on going up to 10000000, etc
is there a way of recycling the numbers. for exmaple if i get the max msg to 200, is there a way of making the count cycle between 1 and 200, so that what would be msg 201 becomes 1.
thanks
Posted: Sat Dec 01, 2007 4:13 pm
by Klemen
No limit regarding how high the ID is.
You can try changing
to something like
Code: Select all
if ($count >= 200) {
$count = 1;
} else {
$count++;
}
, but I haven't tested it. The above change needs to be made
twice inside mboard.php.
Posted: Mon Dec 03, 2007 11:34 am
by icepack
hi,
and that would limit the posts between 1 and 200?
so after 200 posts, it just goes back to 1 again?
if so i'll change it on my mboard
will new topics still be displayed at the top?
cheers Klemen!!!
Posted: Mon Dec 03, 2007 3:02 pm
by Klemen
Haven't tesed it, but yes it should. And everything else remains the same.
Posted: Mon Dec 03, 2007 3:48 pm
by icepack
hi Klemen,
made the change and works great so far, one last thing...
In settings.php, I've set the max msg to 200, so should the above code be
if ($count >= 201) {
$count = 1;
} else {
$count++;
}
to accommodate the additional post. or is the old one deleted before the post made?
thanks!
Posted: Thu Dec 06, 2007 12:10 pm
by icepack
hello?
does anyone know? please help!
Posted: Thu Dec 06, 2007 2:34 pm
by Klemen
Yes, that should do it.
Posted: Fri Jan 04, 2008 10:49 pm
by icepack
hello
after i made this change the old posts are not getting deleted automatically. i have to do it manually via admin.
Posted: Sat Jan 05, 2008 10:16 am
by Klemen
Told you I haven't tested anything
Try removing this code:
Code: Select all
/* Delete old posts */
$count -= $settings['maxposts'];
$newfile="msg/".$count.".".$settings['extension'];
if (file_exists($newfile))
{
deleteOld($count,$newfile);
}
Then in line 340, just below
Code: Select all
function createNewFile($name,$mail,$subject,$comments,$count,$date,$other="",$up="0") {
global $settings;
try adding this:
Code: Select all
$newfile="msg/".$count.".".$settings['extension'];
if (file_exists($newfile))
{
deleteOld($count,$newfile);
}
Again haven't tested this...