My UBB needs to have a double posting block. I run an RPG that is turned based and I can't have newbies posting three times in a row because their impatient.
blaaskaak
Enthusiast
Registered: 02/25/07
Posts: 329
Loc: The Netherlands
If it's just the newbees, wouldn't correcting them solve the problem?
Update:
Also, describe exactly the situation where somebody is not allowed to post. We cannot make anything when we don't know the exact conditions of the no-go situation.
// -----------------------------------------------------------------------------
// Check if the latest post in this topic is by the same user. If so, deny post.
if (($post_is_topic == 0) && ($user['USER_MEMBERSHIP_LEVEL'] == "User")) {
$query = "
SELECT TOPIC_LAST_POSTER_ID
FROM {$config['TABLE_PREFIX']}TOPICS
WHERE TOPIC_ID = ?
AND TOPIC_LAST_POSTER_ID = ?
";
$sth = $dbh->do_placeholder_query($query,array($Main,$posterid),__LINE__,__FILE__);
while(list($check) = $dbh->fetch_array($sth)) {
$html -> not_right('You cannot post in a topic where the last reply is your own');
}
}
The error message users get is somewhere on the bottom, you can edit that if you want.