Hi all.

I am trying to create the layout of a forum index page, with boards under their correct category. The code I am currently using is below. I am sure there are better ways to do what is required but have been unable to think of any.

There is also a problem with the current code. If you go to http://www.2312.co.uk/hh/forum/index3.php you will notice there are three boards (The Bar, Rescue Centre and Archive). The Archive board should be under it's own category (which is non-existant at the minute) and if that isn't possible, it shouldn't be displayed - but it obviously is.

My code can be seen at the following link (made the post too long if included here): http://www.2312.co.uk/hh/forum/index3.txt

What I would like is a more effective way of displaying the boards under their correct category. Am willing to make any changes at all (even to the database) as the project is still in it's infancy and any changes might as well be done now.

Thanks in advance
Stu

    I didn't take the time to read through your code but Why re-invent the wheel.

    If you are loking at message board scripts there are a ton of free ones out there that have all the functionality you are looking at phpbb being my favorite.

    I am usually a proponent of doing it yourself but when it comes to something that can take the time that a message board script can I would say take a look at the prefab ones.

      Originally posted by mystrymaster
      I didn't take the time to read through your code but Why re-invent the wheel.

      If you are loking at message board scripts there are a ton of free ones out there that have all the functionality you are looking at phpbb being my favorite.

      I am usually a proponent of doing it yourself but when it comes to something that can take the time that a message board script can I would say take a look at the prefab ones.

      I know that there are many free message board scripts "out there" but myself and a mate want to pool our knowledge together and create our own script. I was trying to get the forum index page running myself.

      Can you offer any help with the above question whilst you're here 😃

      Cheers
      Stu

        I can understand the desire to do on your own - I will try and take a look at it at somepoint today and see what I can come up with for you.

          Originally posted by mystrymaster
          I can understand the desire to do on your own - I will try and take a look at it at somepoint today and see what I can come up with for you.

          Thanks very much 🙂

            If it works. Keep it.

            Don't try making your coding clean. If you can; do it but don't seek on how to clean up code.

            Everyone does it in their own way. Yours is logical and I can see where you are coming from.

            I would have written it differently, but it is your project and therefore your style.

              Originally posted by zingbats
              If it works. Keep it.

              Don't try making your coding clean. If you can; do it but don't seek on how to clean up code.

              Everyone does it in their own way. Yours is logical and I can see where you are coming from.

              I would have written it differently, but it is your project and therefore your style.

              It works, to an extent. It works only if the first category has the ID of 1. That is unlikely to be the case in a real life situation and is the main problem I would have to overcome. Any suggestions?

                Write a Reply...