code:
if ( (strlen($ibforums->input['TopicTitle']) < ($ibforums->vars['min_topic_title'])) )
{
$class->obj['post_errors'] = 'no_topic_title';
}
if ( (strlen($ibforums->input['TopicDesc']) < ($ibforums->vars['min_topic_desc'])) )
{
$class->obj['post_errors'] = 'no_topic_desc';
}
if ( (strlen($ibforums->input['TopicTitle']) < ($ibforums->vars['min_topic_title'])) and (strlen(!$ibforums->input['TopicDesc']) < ($ibforums->vars['min_topic_desc'])) )
{
$class->obj['post_errors'] = 'no_topic_title_or_desc';
}
Incase you can't tell from the code, this is what i'm trying to do...
if they don't meet the requirments for the TopicTitle they get the 'no_topic_topic' error
if they don't meet the requirments for the TopicDesc they get the 'no_topic_desc' error
if they don't meet the requirments for the TopicDesc & the TopicDesc they get the 'no_topic_title_or_desc' error
The problem is that even if the requirements are met for the input['TopicDesc'] it still shows the error for the 'no_topic_title_or_desc'
I know it must have something to do with me needing an else if or something in there, but i tried a few different combinations with no avail, anyone know what i need?
[This message has been edited by Synthetic (edited 01-26-2003).]