From 282322e322ef8b70f9c071acf204776ebaf42169 Mon Sep 17 00:00:00 2001 From: Jimmi08 Date: Wed, 27 Jan 2016 12:33:36 +0100 Subject: [PATCH] Issue #1309. e_BASE."user.php" replaced with SEF URL. --- e107_plugins/newforumposts_main/newforumposts_main.php | 5 ++++- online.php | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/e107_plugins/newforumposts_main/newforumposts_main.php b/e107_plugins/newforumposts_main/newforumposts_main.php index c63d58e97..e1b753fe6 100644 --- a/e107_plugins/newforumposts_main/newforumposts_main.php +++ b/e107_plugins/newforumposts_main/newforumposts_main.php @@ -199,7 +199,10 @@ foreach ($forumArray as $forumInfo) $tmp = explode(".", $x[0], 2); if($user_name) { - $POSTER = "$user_name"; + //$POSTER = "$user_name"; + $uparams = array('id' => $tmp[0], 'name' => $user_name]); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $POSTER = "".$user_name.""; } else { diff --git a/online.php b/online.php index 68595a362..29a582fde 100644 --- a/online.php +++ b/online.php @@ -273,7 +273,10 @@ Think these are no longer used $ONLINE_TABLE_ICON = (vartrue($pref['plug_installed']['pm']) && $oid != USERID ? $tp->parseTemplate("{SENDPM={$oid}}", 'sendpm.sc') : ""); - $ONLINE_TABLE_USERNAME = "{$oname}"; + //$ONLINE_TABLE_USERNAME = "{$oname}"; + $uparams = array('id' => $oid, 'name' => $oname); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $ONLINE_TABLE_USERNAME = "".$oname.""; $ONLINE_TABLE_LOCATION = ($class_check ? "{$online_location_page}" : $online_location_page); $textstring .= preg_replace("/\{(.*?)\}/e", '$\1', $ONLINE_TABLE);