diff --git a/online.php b/online.php index 8fa8deac8..b30476223 100644 --- a/online.php +++ b/online.php @@ -271,15 +271,21 @@ Think these are no longer used $online_location_page = ADMINAREA; } - $ONLINE_TABLE_ICON = (vartrue($pref['plug_installed']['pm']) && $oid != USERID ? $tp->parseTemplate("{SENDPM={$oid}}", 'sendpm.sc') : ""); +// $ONLINE_TABLE_ICON = (vartrue($pref['plug_installed']['pm']) && $oid != USERID ? $tp->parseTemplate("{SENDPM={$oid}}", 'sendpm.sc') : ""); //$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); +// $ONLINE_TABLE_USERNAME = "".$oname.""; +// $ONLINE_TABLE_LOCATION = ($class_check ? "{$online_location_page}" : $online_location_page); - $textstring .= preg_replace("/\{(.*?)\}/e", '$\1', $ONLINE_TABLE); + $scArray = array( + 'ONLINE_TABLE_ICON' => (vartrue($pref['plug_installed']['pm']) && $oid != USERID ? $tp->parseTemplate("{SENDPM={$oid}}", 'sendpm.sc') : ""), + 'ONLINE_TABLE_USERNAME' => "".$oname."", + 'ONLINE_TABLE_LOCATION' => ($class_check ? "{$online_location_page}" : $online_location_page) + ); + + $textstring .= $tp->parseTemplate($ONLINE_TABLE, true, $scArray); // preg_replace("/\{(.*?)\}/e", '$\1', $ONLINE_TABLE); } $ONLINE_TABLE_MEMBERS_ONLINE = ONLINE_EL1.GUESTS_ONLINE;