Results 1 to 4 of 4

Thread: Coding a Forum from scracth

  1. #1
    Join Date
    Jul 2012
    Uk, Warrington

    Coding a Forum from scracth

    I am a web Developer working with a game development team, in the last few months the game has gained a huge audience and currently a huge release of a kick stater the website I have been making will go online. Which means I have 4 weeks to get the entire site completed, one of the requests that they have. Is a Forum, which needs to be fully kit'ed out. Usually I'd go with the pre-built forum, such as Php-BB, but I think it is high time I learn php, also the theme and css in pre-built forums can be tedious to use, with the add extra that it will look better on the game if everything was made from scratch.

    Now I have novice php coding skills, since I have never needed to actually write it, as I have always used pre made php. I know how to use it and all about php, but not how to make it from scratch, I've searched the internet and found a few tutorials. Although they do not fill the criteria needed for the forum. So my question is, does anyone know were a tutorial that fills the needs listed below or will be willing to teach me how to do this. I would watch php tutorials online or read a book on php, but with the restricted deadline and also the fact that I learn better on the job. This seems the best way, so if anyone can give any advise or help. It would be deeply appreciated.

    Thank you.

  2. #2
    Join Date
    Sep 2011
    Bristol, England, United Kingdom
    You're not going to be able to write a forum in 4-weeks if you're a novice. You state that you've never even written PHP and all your code so far has been generated code—in which case forget trying to write a forum.

    It may sound like an easy task but once you begin to encounter problems you'll soon realise what an escalating task it will be.

    Go with a pre-built forum such as phpBB; you'll thank yourself later. Not that you shouldn't ever attempt to write your own projects, but if you've truly never written any PHP before, you really should go back to basics and learn to code before trying to take on large projects. A basic, functional message board could be knocked up over the course of a day, but even then you'd at least need to be experienced. A fully functional, "kitted out" forum is probably miles out of your depth.

  3. #3
    Join Date
    Mar 2011
    I have to agree with George88. At this stage, you can't begin to appreciate all of the security issues when dealing with any kind of script that depends on user-generated content, let alone message threading, membership handling, administrative controls, etc.

    Whatever shortcomings you might see in scripts like phpBB, they're tested and mature. They come with a large support community and will give you a reliable foundation right out of the box.
    Rick Trethewey
    Rainbo Design

  4. #4
    Join Date
    Jun 2006
    Under your bed
    I once made a forum, with PHP, from scratch. It was an involved process and I would never have been able to do it had I been a novice. And even if I had somehow pulled it off, it would have sucked. I cringe at the bugs and security holes that would have been all over the place. Some troll probably would have hacked it in no time, lol.

    Save yourself a lot of frustration and code stuff more suited for a beginner, like a simple login script or something. Or heck, just something that displays "Hello World!" on the screen would be a great start!

    If you want to buy a book, I thought this one was pretty easy to understand:
    http://www.amazon.com/PHP-MySQL-Prog...olute+beginner ***Note that it assumes you already have a good grasp on HTML and CSS. If you don't know these, learn them before attempting PHP.

    If you need any help, we're here for you
    The better I get at programming, the more I appreciate arrays. Handy dandy things they are.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.09225 seconds
  • Memory Usage 2,859KB
  • Queries Executed 13 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (4)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (4)postbit
  • (4)postbit_onlinestatus
  • (4)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates