From 6b07955476a9932b247df678ec19a6b0ddaf440d Mon Sep 17 00:00:00 2001 From: jhunkeler Date: Mon, 28 Dec 2009 17:12:53 +0000 Subject: (OC) phased out BBCode() and added the extras to bbcode_format() condensed the style sheets. git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@406 c5b2fb0a-d05d-0410-98c8-828840a80ff6 --- modules/news/functions.php | 28 +++------------------------- modules/newsreel/index.php | 9 ++------- 2 files changed, 5 insertions(+), 32 deletions(-) (limited to 'modules') diff --git a/modules/news/functions.php b/modules/news/functions.php index bd901aa..22952af 100644 --- a/modules/news/functions.php +++ b/modules/news/functions.php @@ -93,7 +93,7 @@ function displayComments($data){
-

+

@@ -145,17 +145,6 @@ function getNews($id = NULL){ $result = $db->Query($query); $data = $db->Fetch($result); - //decho($data); - // {{{ XXX: FIXME -- Re-write - /* - while(($row = $db->Fetch($result)) != false) - { - $data[] = $row; - } - - $db->Free($result); - */ - // }}} return $data; } @@ -173,7 +162,7 @@ function displayNews($data){ foreach($data as $news) { $numComments = getNumOfComments($news['news_id']); - //echo "
".print_r($news,true)."
"; + OpenContent(); ?>
@@ -186,7 +175,7 @@ function displayNews($data){
<?php echo $news['catname']; ?> - +
@@ -223,17 +212,6 @@ function commentForm(){ $cur_user_id = 0; //testing variable, until i get the login system working for this $logged_in = false; - // {{{ XXX: FIXME -- Re-write this - /* - $result = $db->Query("SELECT `username`, `avatar` FROM `mybb_users` WHERE `uid` = '$cur_user_id' LIMIT 1"); - while(($row = $db->Fetch($result)) != false) - { - $username = $row['username']; - $avatar = $row['avatar']; - $logged_in = true; - } - */ - // }}} ?>

Add Your Comment

diff --git a/modules/newsreel/index.php b/modules/newsreel/index.php index 70b9958..f45f2f5 100644 --- a/modules/newsreel/index.php +++ b/modules/newsreel/index.php @@ -1,4 +1,5 @@ +