diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php
index 87458f2e7..d4b87bde2 100644
--- a/e107_handlers/e_parse_class.php
+++ b/e107_handlers/e_parse_class.php
@@ -3177,8 +3177,8 @@ class e_parser
$title = (ADMIN) ? $image : $tp->toAttribute($userData['user_name']);
$shape = (vartrue($options['shape'])) ? "img-".$options['shape'] : "img-rounded";
-
- $text = "
";
+
+ $text = "
";
// return $img;
return $text;
diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php
index ccc926f4c..abfcdefd2 100644
--- a/e107_plugins/forum/forum_class.php
+++ b/e107_plugins/forum/forum_class.php
@@ -676,6 +676,8 @@ class e107forum
$info['data'] = $postInfo;
$postId = $sql->insert('forum_post', $info);
+ // Append last inserted ID to data array for passing it to event callbacks.
+ $info['data']['post_id'] = $postId;
e107::getEvent()->trigger('user_forum_post_created', $info);
$forumInfo = array();