Page 2 of 2

Posted: Sat Jan 05, 2008 11:53 am
by icepack
i found the second bit of code and changed it to:

function createNewFile($name,$mail,$subject,$comments,$count,$date,$other="",$up="0") {
global $settings, $dodano;

$newfile="msg/".$count.".".$settings['extension'];
if (file_exists($newfile))
{
deleteOld($count,$newfile);
}

but now when a post is made it cannot be found. i.e. after the post successful message and i return to board, there is no post!

Posted: Mon Jan 07, 2008 11:24 pm
by icepack
hi klemen,
just wondering if it's failing to work because i made the change after i exceeded the msg max count. i.e. when it was 220 i changed the max count to 200. would this be the cause. i've pasted the code above which doesn't work,
thanks

Posted: Tue Jan 08, 2008 9:10 am
by Klemen
You can try this:
in settings.php set max count to 200 and in mboard.php set count ID to 300:
if ($count >= 300) {

See if that works. If not the counting and deleting part of the code would have to be rewritten and that is out of the scope of my support here.

But why complicate in the first place? Why limit IDs to 0-200 or 0-300 in the first place? This is where the problems came from.

Posted: Tue Jan 08, 2008 11:18 pm
by icepack
ok thanks Klemen, got it now