2010-07-30, 08:43 PM
Didn't read that thoroughly enough I see..
Couldn't you count from the existing posts and then compare to the ones in the post being checked?
Basically like this:
New thread scenario:
- Obviously, check how many there are in the current post and compare to the maximum.
Replying:
- Check how many exist by doing something like 'find [video where tid = 12232' or something
- Check how many are in the current post
- Now determine whether or not the user's post will go above the set limit
These queries would only need to be run if the post being added actually contained the {video} mycode.
Is this plausible or no?
Couldn't you count from the existing posts and then compare to the ones in the post being checked?
Basically like this:
New thread scenario:
- Obviously, check how many there are in the current post and compare to the maximum.
Replying:
- Check how many exist by doing something like 'find [video where tid = 12232' or something
- Check how many are in the current post
- Now determine whether or not the user's post will go above the set limit
These queries would only need to be run if the post being added actually contained the {video} mycode.
Is this plausible or no?