aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-07-10 22:32:39 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-07-10 22:32:39 +0000
commitfff33ffa074712edb94406ea8504cc5615c1195b (patch)
treec356f8421d57552fade39abc3b9d0db92ed33f44 /phpBB/viewtopic.php
parentdf269ee0874322eed189e12d4b4c394bee3cf9e8 (diff)
downloadforums-fff33ffa074712edb94406ea8504cc5615c1195b.tar
forums-fff33ffa074712edb94406ea8504cc5615c1195b.tar.gz
forums-fff33ffa074712edb94406ea8504cc5615c1195b.tar.bz2
forums-fff33ffa074712edb94406ea8504cc5615c1195b.tar.xz
forums-fff33ffa074712edb94406ea8504cc5615c1195b.zip
Lots of checking in posting + delete now works
git-svn-id: file:///svn/phpbb/trunk@615 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php13
1 files changed, 4 insertions, 9 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 83a38ee646..eb28a506f5 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -226,7 +226,7 @@ $template->assign_vars(array(
// templating vars
//
$new_topic_url = append_sid("posting.$phpEx?mode=newtopic&" . POST_FORUM_URL . "=$forum_id");
-$reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id&" . POST_FORUM_URL . "=$forum_id");
+$reply_topic_url = append_sid("posting.$phpEx?mode=reply&" . POST_TOPIC_URL . "=$topic_id");
$view_forum_url = append_sid("viewforum.$phpEx?" . POST_FORUM_URL . "=$forum_id");
@@ -290,7 +290,7 @@ for($i = 0; $i < $total_posts; $i++)
//
// Generate ranks
//
- if( empty($postrow[$i]['user_rank']) || $postrow[$i]['user_id'] == ANONYMOUS )
+ if( $postrow[$i]['user_id'] == ANONYMOUS )
{
$poster_rank = "";
$rank_image = "";
@@ -370,14 +370,9 @@ for($i = 0; $i < $total_posts; $i++)
$search_img = "<a href=\"" . append_sid("search.$phpEx?a=" . urlencode($poster) . "&f=all&b=0&d=DESC&c=100&dosearch=1") . "\"><img src=\"" . $images['search_icon'] . "\" border=\"0\"></a>";
- if($i == 0)
- {
- $edit_post_url .= "&is_first_post=1";
- }
- $edit_post_url = append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=$topic_id&" . POST_FORUM_URL . "=$forum_id");
- $edit_img = "<a href=\"" . $edit_post_url . "\"><img src=\"" . $images['edit'] . "\" alt=\"" . $lang['Edit_delete_post'] . "\" border=\"0\"></a>";
+ $edit_img = "<a href=\"" . append_sid("posting.$phpEx?mode=editpost&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=$topic_id") . "\"><img src=\"" . $images['edit'] . "\" alt=\"" . $lang['Edit_delete_post'] . "\" border=\"0\"></a>";
- $quote_img = "<a href=\"" . append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id'] . "&" . POST_TOPIC_URL . "=$topic_id&" . POST_FORUM_URL . "=$forum_id") . "\"><img src=\"" . $images['quote'] . "\" alt=\"" . $lang['Reply_with_quote'] ."\" border=\"0\"></a>";
+ $quote_img = "<a href=\"" . append_sid("posting.$phpEx?mode=quote&" . POST_POST_URL . "=" . $postrow[$i]['post_id']) . "\"><img src=\"" . $images['quote'] . "\" alt=\"" . $lang['Reply_with_quote'] ."\" border=\"0\"></a>";
if($is_auth['auth_mod'] || $userdata['user_level'] == ADMIN)
{