aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewtopic.php
diff options
context:
space:
mode:
authorJames Atkinson <thefinn@users.sourceforge.net>2001-06-11 20:02:01 +0000
committerJames Atkinson <thefinn@users.sourceforge.net>2001-06-11 20:02:01 +0000
commit678f7204558a74ab9f1b2533eb30b7e570efd94e (patch)
tree5fefc34d2150c3d641a9038e136e20909292cfc9 /phpBB/viewtopic.php
parentb7f1a3605c478929870848f596f196bc83a8e584 (diff)
downloadforums-678f7204558a74ab9f1b2533eb30b7e570efd94e.tar
forums-678f7204558a74ab9f1b2533eb30b7e570efd94e.tar.gz
forums-678f7204558a74ab9f1b2533eb30b7e570efd94e.tar.bz2
forums-678f7204558a74ab9f1b2533eb30b7e570efd94e.tar.xz
forums-678f7204558a74ab9f1b2533eb30b7e570efd94e.zip
Made some fixes to posting, next up Reply with Quote
git-svn-id: file:///svn/phpbb/trunk@470 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
-rw-r--r--phpBB/viewtopic.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php
index 55ce3dd1ee..c5fe3c8581 100644
--- a/phpBB/viewtopic.php
+++ b/phpBB/viewtopic.php
@@ -478,8 +478,16 @@ for($x = 0; $x < $total_posts; $x++)
$msn_img = ($postrow[$x]['user_msnm']) ? "<a href=\"profile.$phpEx?mode=viewprofile&".POST_USERS_URL."=$poster_id\"><img src=\"".$images['msn']."\" border=\"0\"></a>" : "";
$yim_img = ($postrow[$x]['user_yim']) ? "<a href=\"http://edit.yahoo.com/config/send_webmesg?.target=".$postrow[$x]['user_yim']."&.src=pg\"><img src=\"".$images['yim']."\" border=\"0\"></a>" : "";
-
- $edit_img = "<a href=\"".append_sid("posting.$phpEx?mode=editpost&".POST_POST_URL."=".$postrow[$x]['post_id']."&".POST_TOPIC_URL."=$topic_id&".POST_FORUM_URL."=$forum_id")."\"><img src=\"".$images['edit']."\" alt=\"$l_editdelete\" border=\"0\"></a>";
+
+ if($x == 0)
+ {
+ $edit_post_url = append_sid("posting.$phpEx?mode=editpost&".POST_POST_URL."=".$postrow[$x]['post_id']."&".POST_TOPIC_URL."=$topic_id&".POST_FORUM_URL."=$forum_id&is_first_post=1");
+ }
+ else
+ {
+ $edit_post_url = append_sid("posting.$phpEx?mode=editpost&".POST_POST_URL."=".$postrow[$x]['post_id']."&".POST_TOPIC_URL."=$topic_id&".POST_FORUM_URL."=$forum_id");
+ }
+ $edit_img = "<a href=\"".$edit_post_url."\"><img src=\"".$images['edit']."\" alt=\"$l_editdelete\" border=\"0\"></a>";
$quote_img = "<a href=\"".append_sid("posting.$phpEx?mode=reply&quote=true&".POST_POST_URL."=".$postrow[$x]['post_id']."&".POST_TOPIC_URL."=$topic_id&".POST_FORUM_URL."=$forum_id")."\"><img src=\"".$images['quote']."\" alt=\"$l_replyquote\" border=\"0\"></a>";