From f69013ec14cc87e7e86dca999702f4e756402ef3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Tue, 15 Dec 2015 10:33:33 +0100 Subject: [PATCH 1/2] Forum post created: Append last inserted ID to data array for passing it to event callbacks. --- e107_plugins/forum/forum_class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/e107_plugins/forum/forum_class.php b/e107_plugins/forum/forum_class.php index e593aca52..6352b88b0 100644 --- a/e107_plugins/forum/forum_class.php +++ b/e107_plugins/forum/forum_class.php @@ -671,6 +671,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(); From 146e74d1fe6747c790da0d7335f5d6d83cb4572e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=B3na=20Lore?= Date: Wed, 16 Dec 2015 15:28:05 +0100 Subject: [PATCH 2/2] Removed fixed width and height from imgage tag. --- e107_handlers/e_parse_class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 4ce2f1b4a..feeb51044 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;