Then I do suggest that you don't tinker and tamper with it unless you want to break things
I do have some suggestions.
Read and understand IF / ELSE / ELSEIF
Read and understand Loops / for each / do / do while etc.
Don't tamper with code you don't know what does unless you want to break it.
Set things back as how it was before it was broken, so its possible to find out WHY its not working, take this scenario
100 000 users uses has a IPS forum, and it works (else it would been out for a quick fix as that is a major flaw in a forum)
You don't know what code you been tampered with, in what way you tampered with it, nor do you know or understand WHERE the code goes, considering it starts from the top and goes down moving code might not be the best.
Feed me a
Sorry to sound harsh, but if you keep tampering with code when we (as in me and others) are trying to assist it makes our job 50 times harder. As we don't know what you have changed. so IF you change things make some comments of what has changed or comment OUT the old code so you can easy revert back.
To make a comment you do this
<?php
echo 'This is a test'; // This is a one-line c++ style comment
/* This is a multi line comment
yet another line of comment */
echo 'This is yet another test';
echo 'One Final Test'; # This is a one-line shell-style comment
?>