Vanilla 1 is no longer supported or maintained. If you need a copy, you can get it here.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Must choose a category...
A problem that happens a lot with me is I create a discussion and forget to categorise it...
Maybe the combobox should have a "Please choose a category" item and show a dialog telling you you haven't chosen one?
No good at php...
peace
0
This discussion has been closed.
Comments
Human interface guidelines would suggest that the category be blank like the discussion topic field when a new discussion is being started.
I fact, an error string already exists in the language file if the category is left blank: You must select a category for this discussion.
So all that needs to be done is a mechanism to have --empty-- as the default category when a new discussion is being started.
$cs->AddOption(0, 'Please select a category:');
http://lussumo.com/community/discussion/4556/blank-subjects-for-whispers/#Item_1
Another user top-whinge taken care of.
if (ForceIncomingString('CategoryID', '') == '') { $cs->AddOption('', 'Please select a category:'); }
And insert at line 208 as stated above.
In 1.1.2 you will have to insert this at line or about 217. (after the $cs variable is declared).
So it should look something like this
$cs->Name = 'CategoryID';
$cs->CssClass = 'CategorySelect';
$cs->SelectedValue = ForceIncomingInt('CategoryID', $Discussion->CategoryID);
if (ForceIncomingString('CategoryID', '') == '') {
$cs->AddOption('', 'Please select a category:');
}