From b1574405e4c84a6b680baab0ec0a1041c194703f Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 24 May 2010 15:22:35 +0200 Subject: [PATCH] More cleaning code --- main/forum/editpost.php | 13 +------------ main/forum/iframe_thread.php | 20 ++++---------------- main/forum/viewthread.php | 17 +++++------------ 3 files changed, 10 insertions(+), 40 deletions(-) diff --git a/main/forum/editpost.php b/main/forum/editpost.php index f182acc20e..c0ef376776 100755 --- a/main/forum/editpost.php +++ b/main/forum/editpost.php @@ -19,20 +19,9 @@ * @Copyright Ghent University * @Copyright Patrick Cool * -* @package dokeos.forum +* @package chamilo.forum */ -/** - ************************************************************************** - * IMPORTANT NOTICE - * Please do not change anything is this code yet because there are still - * some significant code that need to happen and I do not have the time to - * merge files and test it all over again. So for the moment, please do not - * touch the code - * -- Patrick Cool - ************************************************************************** - */ - /* INIT SECTION */ diff --git a/main/forum/iframe_thread.php b/main/forum/iframe_thread.php index d09bbf0ffa..5f0e8976bc 100755 --- a/main/forum/iframe_thread.php +++ b/main/forum/iframe_thread.php @@ -15,24 +15,12 @@ * - new view option: nested view * - quoting a message * -* @Author Patrick Cool , Ghent University -* @Copyright Ghent University -* @Copyright Patrick Cool +* @author Patrick Cool , Ghent University +* @copyright Ghent University +* @copyright Patrick Cool * -* @package dokeos.forum +* @package chamilo.forum */ - -/** - ************************************************************************** - * IMPORTANT NOTICE - * Please do not change anything is this code yet because there are still - * some significant code that need to happen and I do not have the time to - * merge files and test it all over again. So for the moment, please do not - * touch the code - * -- Patrick Cool - ************************************************************************** - */ - /* INIT SECTION */ diff --git a/main/forum/viewthread.php b/main/forum/viewthread.php index 438fa2a0eb..052fa3b0a1 100755 --- a/main/forum/viewthread.php +++ b/main/forum/viewthread.php @@ -1,6 +1,7 @@ UI Improvements + lots of bugfixes * @package chamilo.forum */ // name of the language file that needs to be included @@ -33,14 +34,10 @@ if (isset($_GET['origin'])) { /* -============================================================================== MAIN DISPLAY SECTION -============================================================================== */ /* ------------------------------------------------------------ Retrieving forum and forum categorie information ------------------------------------------------------------ */ // we are getting all the information about the current forum and forum category. // note pcool: I tried to use only one sql statement (and function) for this @@ -216,17 +213,15 @@ if ($my_message<>'PostDeletedSpecial') { } /* - ----------------------------------------------------------- Display Forum Category and the Forum information - ----------------------------------------------------------- */ // we are getting all the information about the current forum and forum category. // note pcool: I tried to use only one sql statement (and function) for this // but the problem is that the visibility of the forum AND forum cateogory are stored in the item_property table - echo "\n"; + echo "
"; // the thread - echo "\t\n\t\t\n"; - echo "\t\n"; + echo ""; + echo ""; echo ''.prepare4display(isset($current_thread['thread_comment'])?$current_thread['thread_comment']:'').''; echo "
"; + echo "
"; echo ''.prepare4display($current_thread['thread_title']).'
'; if ($origin!='learnpath') { @@ -234,8 +229,8 @@ if ($my_message<>'PostDeletedSpecial') { } echo prepare4display($current_forum['forum_title']).'
'; - echo "
"; @@ -256,9 +251,7 @@ if ($my_message<>'PostDeletedSpecial') { } // if ($message<>'PostDeletedSpecial') // in this case the first and only post of the thread is removed /* -============================================================================== FOOTER -============================================================================== */ if ($origin!='learnpath') { Display :: display_footer();