Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Feb 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Attempting to make a "step-forum"

    I have recently been trying to create a forums using SQL and PHP.

    However, I have hit a roadblock.

    I am trying to make, what I call, a step-forum but I am having some issues trying to come up with the code to get it to work.


    Here is an example of what I'm trying to do.



    A user makes a general post for people to respond to.

    Then, a user makes a post in response and makes the title "post1".

    Here's what the forum would look like:

    post1




    Next, another user makes a post to respond to "post1" called "post2".

    Here's what the forum would look like:

    post1
    -post2


    Another user makes a post to respond to "post1" called "post3".

    Here's what the forum would look like:

    post1
    -post3
    -post2



    Then a user responds to the original forum post called "post4".

    Here's what the forum would look like:

    post4
    post1
    -post3
    -post2



    Now a user responds to "post3" called "post5".

    Here's what the forum would look like:

    post1
    -post3
    --post5
    -post2
    post4



    After this a user responds to "post2" which bumps it up.
    Let's call this "post6".

    Here's what the forum would look like:

    post1
    -post2
    --post6
    -post3
    --post5
    post4



    With each post made to a previous post, it is tabbed out thus creating a step-effect.

    I don't really know how else to explain this.




    Hopefully I can get a little help with this.
    Thanks for your time,
    SupermanDX

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    What you need is a threaded discussion
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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