diff options
author | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-28 12:12:53 -0500 |
---|---|---|
committer | jhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6> | 2009-12-28 12:12:53 -0500 |
commit | 6b07955476a9932b247df678ec19a6b0ddaf440d (patch) | |
tree | f8badab82ef54a74641cebc6bff043662f1184ca /modules/news | |
parent | 5c0c6135a304fa13c5a26d8c2801dda5420316ad (diff) | |
download | bayonetcms-6b07955476a9932b247df678ec19a6b0ddaf440d.tar.gz |
(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
Diffstat (limited to 'modules/news')
-rw-r--r-- | modules/news/functions.php | 28 |
1 files changed, 3 insertions, 25 deletions
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){ <div class="single_comment"> <img src="modules/news/images/comment_arrow.png" class="comment_arrow" /> - <p> <?php echo BBCode($comment['message']); ?></p> + <p> <?php echo bbcode_format($comment['message']); ?></p> </div> @@ -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 "<pre>".print_r($news,true)."</pre>"; + OpenContent(); ?> <div class="contentHeading"> @@ -186,7 +175,7 @@ function displayNews($data){ </div> <div class="content"> <img src="modules/news/categories/<?php echo $news['catimage']; ?>" alt="<?php echo $news['catname']; ?>" align="right" /> - <?php echo BBCode($news['message']); ?> + <?php echo bbcode_format($news['message']); ?> </div> <div class="contentFooter"> <table width="100%"> @@ -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; - } - */ - // }}} ?> <a name="add"></a> <h2>Add Your Comment</h2> |