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.

Empty Discussion, how to make it work ?

edited October 2007 in Vanilla 1.0 Help
Hi, I'de like to post a new discussion with a title and an attachment without a word in the discussion, does anyone knows how can i do that ? I've tried modifying the Framework.Class.SqlBuilder.php file at while (list($name, $value) = each($this->FieldValues)) { if ($Fields != "") { $Fields .= ", "; $Values .= ", "; } but i does not work, thank's !

Comments

  • edited October 2007
    I believe you would need to change this line of Vanilla.Class.CommentManager.php: $ResultComment = $cm->SaveComment($this->Comment, 1);
    Note the only thing that has changed is adding , 1.

    This will then allow blank messages everywhere... there are some delegates around this point that you could presumably attach to and skip the validation depending on if there is an attachment.
  • thanks, i did not find this line in this file but i found it in the Vanilla.Control.DiscussionForm.php file i added the ", 1" but it did not change anything, i use vanilla for attachments which does not need more text, do you know another solution ?
  • No ? there is no way ??
  • Please i really need this option
This discussion has been closed.