A forum is a place to share.
It’s not technical support, it isn’t product specific, it isn’t a knowledge base or help desk. People participate in forums because they enjoy helping others, and learning. Most people understand that the code posted on forums represents ideas and suggestions, the code may not be ready to run. Often, it is impossible to deliver tested solutions to questions, because the information posted on the forum is not complete.
Many forums are moderated by volunteers, often people who are extremely good a what they do, busy, working professionals, and mature. Their role is to offer technical suggestions, ensure the forum rules are observed, and help people posting questions get the best answers. They shouldn’t be considered the primary source of content, because they are the minority, and their role includes not just content, but administration.
Therefore, all people that post on forums, who comply with the rules, should be treated with respect, even if they post code which is wrong (through a mistake or inexperience), won’t run (due to logic or syntax errors), or does not solve the problem (whether the question was poorly phrased or the respondent misinterpreted it).
The forum leaders should support the generous individuals that participate and ensure they are treated with the same respect expected from all members.