The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
The Guiding Principles and New Rules document is now in effect.

Pseudocode for a forum

TolwrathTolwrath Registered User regular
edited March 2009 in Help / Advice Forum
I'm not sure if this is the right board to post on or not, but I'm looking for pseudocode for a forum.

As part of a security project, I'm trying to build a forum for a website (it's not important which), but I'm not quite sure how to go about building a forum. Obviously I'd need log in systems, posting systems, thread systems, search support. I'm just not sure how to go about coding it, or what language(s) I should use.

Thanks in advance!

[SIGPIC][/SIGPIC]
Tolwrath on

Posts

  • admanbadmanb unionize your workplace Seattle, WARegistered User regular
    edited March 2009
    A forum is a multi-month, full-time project all on its own. Are you sure you know what you're getting into?

    As for language, PHP would be the obvious choice, but you could also look into a Ruby framework (Rails) or Python (Django).

    admanb on
  • SixSix Caches Tweets in the mainframe cyberhex Registered User regular
    edited March 2009
    Rather than build one from scratch, why not use phpbb or vbulletin or another forum software package?

    Six on
    can you feel the struggle within?
  • OremLKOremLK Registered User regular
    edited March 2009
    Six wrote: »
    Rather than build one from scratch, why not use phpbb or vbulletin or another forum software package?

    This. Unless your employer (or the guy who hired you for a freelance gig) specifically requested a custom-built forum from the ground-up, there's no reason to reinvent the wheel.

    And frankly, there's no way you're going to get the answer you're looking for here. Pseudocode for a whole forum?

    Hey guys, could you write me my next indie game in pseudocode?

    OremLK on
    My zombie survival life simulator They Don't Sleep is out now on Steam if you want to check it out.
  • SevorakSevorak Registered User regular
    edited March 2009
    In addition to the language that actually displays the forum pages, you are going to need knowledge of sql and database design to actually store the posts.

    Sevorak on
    steam_sig.png 3DS: 0748-2282-4229
  • RendRend Registered User regular
    edited March 2009
    OremLK wrote: »
    Six wrote: »
    Rather than build one from scratch, why not use phpbb or vbulletin or another forum software package?

    This. Unless your employer (or the guy who hired you for a freelance gig) specifically requested a custom-built forum from the ground-up, there's no reason to reinvent the wheel.

    And frankly, there's no way you're going to get the answer you're looking for here. Pseudocode for a whole forum?

    Hey guys, could you write me my next indie game in pseudocode?
    StartGame()
    while(true)
    {
       GameLoop()
    }
    EndGame()
    

    Rend on
  • TolwrathTolwrath Registered User regular
    edited March 2009
    I wasn't expecting to get code for a whole forum, I'm really looking for basic structure... like... "what sort of functions would I need?" and "How would some of these functions interact with others?"

    Also: this is a college project and something I wanted to do as a challenge; even if it's nowhere near fully functional, I'll still get an A.

    Tolwrath on
    [SIGPIC][/SIGPIC]
  • SixSix Caches Tweets in the mainframe cyberhex Registered User regular
    edited March 2009
    In that case, download a free software package like phpbb and take a look at what functions it provides.

    Six on
    can you feel the struggle within?
  • ReznikReznik Registered User regular
    edited March 2009
    Tolwrath wrote: »
    I wasn't expecting to get code for a whole forum, I'm really looking for basic structure... like... "what sort of functions would I need?" and "How would some of these functions interact with others?"

    Also: this is a college project and something I wanted to do as a challenge; even if it's nowhere near fully functional, I'll still get an A.

    You'll need a registration page that sends the username/pass/email/whatever other reg values to the database. You'll need a login page that will check against these values in the database. You'll need a basic post function, but then you'll also need checks to see if the user is logged in, or what permissions they have (if you have different access levels for different users). You'll need an admin control panel so the admin can add/remove forums...

    ugh, this is giving me a headache just thinking about it. We took a whole semester just to write a registration page and set up the database.

    Why don't you download a phpBB forum and just start poking around in its guts to see how they do stuff?

    edit: I see I was beaten to that suggestion

    Reznik on
    Do... Re.... Mi... Ti... La...
    Do... Re... Mi... So... Fa.... Do... Re.... Do...
    Forget it...
  • EchoEcho ski-bap ba-dapModerator, Administrator admin
    edited March 2009
    One thread per topic. Continued in the other thread.

    Echo on
This discussion has been closed.