Hi,
You need to separate your code.
The tabs system is comprised of two pieces:
- the ul/li list of the titles for each tab
- the divs with the content of each tab
I can see that you put the div with the content of your new tab right after the title of your new tab inside the ul/li list of the titles.
You should move the div with the content of your new tab after/before another tab's content div. For example, just before the line:
if($status_vote == "comment" || $status_vote == "two" || $status_vote == "both" ) { ?>
which is the beginning of the content div for the vote/comment tab.