Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Topic started by: RRasco on November 08, 2007, 05:31:48 PM

Title: What is $modSettings['maxMsgID'] used for?
Post by: RRasco on November 08, 2007, 05:31:48 PM
What is this setting used for?  I have searched and any question pertaining this has always gone unanswered.  More importantly, where is it set?
Title: Re: What is $modSettings['maxMsgID'] used for?
Post by: codenaught on November 08, 2007, 05:36:01 PM
It's not a setting. It stores the highest message ID of your forum, mainly so it doesn't have to be calculated on the fly each time it is used.
Title: Re: What is $modSettings['maxMsgID'] used for?
Post by: RRasco on November 08, 2007, 05:37:41 PM
Thanks.  MKPortal uses this to restrict the topics that can be displayed as news.  Which IMO is dumb as all get out, but whatever, I can fix it.  Thanks again ak.

WHERE m.ID_MSG = t.ID_FIRST_MSG
    AND m.ID_MSG >= " . max(0, $modSettings['maxMsgID'] - 200 * $limit) . "