how to disable Fileupload function in comment aera.

edited November 2011 in Vanilla 2.0 - 2.8
i only allow users upload in "start a new discussion", but not in the comment aera.

anyone can tell me how? thanks.

Best Answer

  • ericcarlericcarl New
    edited November 2011 Answer ✓
    If you're comfortable editing the CSS for your Vanilla theme, you should be able to hide the "Attach a File" link by adding the following CSS rule:

    #Form_Comment .AttachFileLink { display: none; }

    That CSS rule will keep the "Attach a File" link visible in the Discussion form but hidden in the Comment form. It's not the most elegant solution but should do in a pinch.

Answers

  • @tim can you help me?
  • TimTim Vanilla Staff
    You'd need to modify the plugin to do this, it doesn't support what you're asking for by default.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • ericcarlericcarl New
    edited November 2011 Answer ✓
    If you're comfortable editing the CSS for your Vanilla theme, you should be able to hide the "Attach a File" link by adding the following CSS rule:

    #Form_Comment .AttachFileLink { display: none; }

    That CSS rule will keep the "Attach a File" link visible in the Discussion form but hidden in the Comment form. It's not the most elegant solution but should do in a pinch.
  • thank you @ericcarl the css is a simple solution! cool
  • You are welcome, glad I could help!
Sign In or Register to comment.