aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authornatec <natec@users.sourceforge.net>2001-03-17 00:46:26 +0000
committernatec <natec@users.sourceforge.net>2001-03-17 00:46:26 +0000
commit40f1f172a81232e910e09981116e58f45bb6b344 (patch)
treec1e70a3cb88d1fb8a8675db7ba3cb5b6942a4795 /phpBB/viewtopic.php
parentb1ce902c02c90e58dc54e52f90946937f7b569e0 (diff)
downloadforums-40f1f172a81232e910e09981116e58f45bb6b344.tar
forums-40f1f172a81232e910e09981116e58f45bb6b344.tar.gz
forums-40f1f172a81232e910e09981116e58f45bb6b344.tar.bz2
forums-40f1f172a81232e910e09981116e58f45bb6b344.tar.xz
forums-40f1f172a81232e910e09981116e58f45bb6b344.zip
New template system. Lots of merging conflicts, so let nate know if he broke stuff.
git-svn-id: file:///svn/phpbb/trunk@105 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php60
1 files changed, 29 insertions, 31 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index d036055f12..97a47d82b4 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -104,8 +104,6 @@ if(!$total_posts = $db->sql_numrows($result))
}
$postrow = $db->sql_fetchrowset($result);
-$template->set_block("body", "postrow", "posts");
-
for($x = 0; $x < $total_posts; $x++)
{
$poster = stripslashes($postrow[$x]["username"]);
@@ -169,32 +167,31 @@ for($x = 0; $x < $total_posts; $x++)
$message = eregi_replace("\[addsig]$", "<BR>_________________<BR>" . stripslashes($postrow[$x]["user_sig"]), $message);
- $template->set_var(array("TOPIC_TITLE" => $topic_title,
- "L_POSTED" => $l_posted,
- "L_JOINED" => $l_joined,
- "POSTER_NAME" => $poster,
- "POSTER_RANK" => $poster_rank,
- "RANK_IMAGE" => $rank_image,
- "ROW_COLOR" => $color,
- "POSTER_JOINED" => $poster_joined,
- "POSTER_POSTS" => $poster_posts,
- "POSTER_FROM" => $poster_from,
- "POST_DATE" => $post_date,
- "MESSAGE" => $message,
- "PROFILE_IMG" => $profile_img,
- "EMAIL_IMG" => $email_img,
- "WWW_IMG" => $www_img,
- "ICQ_STATUS_IMG" => $icq_status_img,
- "ICQ_ADD_IMG" => $icq_add_img,
- "AIM_IMG" => $aim_img,
- "MSN_IMG" => $msn_img,
- "YIM_IMG" => $yim_img,
- "EDIT_IMG" => $edit_img,
- "QUOTE_IMG" => $quote_img,
- "PMSG_IMG" => $pmsg_img,
- "IP_IMG" => $ip_img,
- "DELPOST_IMG" => $delpost_img));
- $template->parse("posts", "postrow", true);
+ $template->assign_block_vars("postrow", array("TOPIC_TITLE" => $topic_title,
+ "L_POSTED" => $l_posted,
+ "L_JOINED" => $l_joined,
+ "POSTER_NAME" => $poster,
+ "POSTER_RANK" => $poster_rank,
+ "RANK_IMAGE" => $rank_image,
+ "ROW_COLOR" => $color,
+ "POSTER_JOINED" => $poster_joined,
+ "POSTER_POSTS" => $poster_posts,
+ "POSTER_FROM" => $poster_from,
+ "POST_DATE" => $post_date,
+ "MESSAGE" => $message,
+ "PROFILE_IMG" => $profile_img,
+ "EMAIL_IMG" => $email_img,
+ "WWW_IMG" => $www_img,
+ "ICQ_STATUS_IMG" => $icq_status_img,
+ "ICQ_ADD_IMG" => $icq_add_img,
+ "AIM_IMG" => $aim_img,
+ "MSN_IMG" => $msn_img,
+ "YIM_IMG" => $yim_img,
+ "EDIT_IMG" => $edit_img,
+ "QUOTE_IMG" => $quote_img,
+ "PMSG_IMG" => $pmsg_img,
+ "IP_IMG" => $ip_img,
+ "DELPOST_IMG" => $delpost_img));
}
if($total_replies > $posts_per_page)
@@ -247,10 +244,11 @@ else
{
$pages = "1 page";
}
-$template->set_var(array("PAGES" => $pages,
- "PAGINATION" => $pagination));
-$template->pparse("output", array("posts", "body"));
+$template->assign_vars(array("PAGES" => $pages,
+ "PAGINATION" => $pagination));
+
+$template->pparse("body");
include('includes/page_tail.'.$phpEx);