Support » Requests and Feedback » How much lines of code are allowed in a forum post?

  • ntm


    In is written “If you want to add more than a few lines of code to a post, […]” and “[…] If you are posting just a few lines, […]”. But how much are “a few” lines of code?

    It would be great to know that because it would save time and would help to resolve problems faster. Because if someone posts for instance 20 lines of code (e.g. in my opinion that are a few lines) and this code gets removed by a moderator with the advice to use a pastebin service instead, the one who has posted the code has to notices that the code is gone and needs to post it again. The recipient has to look again and this whole process may take some hours or a day more.
    I think it would be a good idea to put a notice near the forum post editor box. Maybe below the notice Put code in between backticks. Maybe something like: If you would like to post more than 3 lines of code at once, use a pastebin service and post here a link instead.


Viewing 3 replies - 1 through 3 (of 3 total)
  • mrmist


    Forum Janitor

    Good idea. Done.

    “Good idea. Done”…. Yes, a good idea indeed… but I don’t see the “Done” part? I don’t see any such notification anywhere near this post edit box… ???

    Here’s a few lines of code I’m working on:



    Forum Janitor

    Hmm, yes, I didn’t read the OP correctly. What I did was update the rules in the Codex to be more specific. I expect it would be non-trivial to edit the text shown when you create a post, because that text is the same for all bbpress installs. (Though it might be alterable in a plugin, I guess.)

    If you want help with your code, please start a new thread in the hacks forum.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How much lines of code are allowed in a forum post?’ is closed to new replies.