Part 1) Yep, I thought it would be a good idea to write an xml based forum a)To learn to work with confidence around any xml (this helped me the other day when I wrote some javascipt using the DOM) b)To learn better OO coding practices c)To be able to handle a large (at least for me) code base and code for the future.anyway...The first thing I did was download the scoop, everything, slash and any other open sourced portal or message board system I could lay my hands on and install them. This helped heaps.

Part 2) Letting your users use HTML? I got around this problem by turning everything to >'s etc. Then turning back only the tags I allow them to use everything else just gets printed out.

Part 3)Regarding intergration with your news system, Isn't your news system just a flat or limited node depth forum? If you write your own forum system allow the administrator to set the depth on any node, that way you can restrict if for some parts and not for others. At least thats how I did it.


Even if you dont use any of the code it's a good idea to at least get a good look at how others before you have done it :)

In reply to Re: Where to begin on coding a forum by IOrdy
in thread Where to begin on coding a forum by Coplan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.