//shows whole thread info, like thread body, title, thread by and time.
 $Show_thread_body = new Data_display($conn);
 //show thread body.
 $Show_thread_body->show_thread_body();
 //show thread replies.
 $Show_thread_body->show_replies();
 //code below only runs if user is logged in.
 if ($Thread_editor->is_user_logged_in("logged_in")) {
     //***************************************************************************//
     //*****************TAKES CARE OF SHOWING REPLY OPTIONS***********************//
     //***************************************************************************//
     //do these if only is user if logged in. this also shows the form to reply if user if logged in.
     $Post_reply = new reply($conn);
     $Post_reply->show_form();
     //takes care of making sure user is logged in. thread_id and cat_id variables exist, reply length and empty reply...
     if ($Post_reply->set_reply()) {
         $Post_reply->post_reply();
     }
     //***************************************************************************//
     //***************************************************************************//
     //*******************TAKES CARE OF EDITING THREAD****************************//
     //***************************************************************************//
     $Thread_editor = new Thread_editor($conn);
     //if user is allowed to edit the thread, either is admin or owns the thread.
     if ($Thread_editor->check_if_allowed_to_edit()) {
         echo "Edit thread";
         //show user the form.
         $Thread_editor->show_edit_form();
         //validate submitted infromation.
         if ($Thread_editor->validate_submitted_info()) {
             $Thread_editor->update_info();