diff --git a/e107_plugins/chatbox_menu/chatbox_menu.php b/e107_plugins/chatbox_menu/chatbox_menu.php index b0e8d748c..304e666d0 100644 --- a/e107_plugins/chatbox_menu/chatbox_menu.php +++ b/e107_plugins/chatbox_menu/chatbox_menu.php @@ -72,7 +72,10 @@ if(!class_exists('chatbox_shortcodes')) list($cb_uid, $cb_nick) = explode(".", $this->var['cb_nick'], 2); if($this->var['user_name']) { - $cb_nick = "".$this->var['user_name'].""; + //$cb_nick = "".$this->var['user_name'].""; + $uparams = array('id' => $cb_uid, 'name' => $this->var['user_name']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $cb_nick = "".$this->var['user_name'].""; } else { diff --git a/e107_plugins/chatbox_menu/e_list.php b/e107_plugins/chatbox_menu/e_list.php index b8408636e..08f97702f 100644 --- a/e107_plugins/chatbox_menu/e_list.php +++ b/e107_plugins/chatbox_menu/e_list.php @@ -50,9 +50,13 @@ class list_chatbox_menu $cb_nick = substr($row['cb_nick'] , (strpos($row['cb_nick'] , ".")+1)); $cb_message = ($row['cb_blocked'] ? CHATBOX_L6 : str_replace("
", " ", $tp->toHTML($row['cb_message']))); $rowheading = $this->parent->parse_heading($cb_message); + //".$cb_nick." + $uparams = array('id' => $cb_id, 'name' => $cb_nick); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$cb_nick.""; $record['icon'] = $bullet; $record['heading'] = $rowheading; - $record['author'] = ($this->parent->settings['author'] ? ($cb_id != 0 ? "".$cb_nick."" : $cb_nick) : ""); + $record['author'] = ($this->parent->settings['author'] ? ($cb_id != 0 ? $userlink : $cb_nick) : ""); $record['category'] = ""; $record['date'] = ($this->parent->settings['date'] ? ($row['cb_datestamp'] ? $this->parent->getListDate($row['cb_datestamp']) : "") : ""); $record['info'] = ""; diff --git a/e107_plugins/download/admin_download.php b/e107_plugins/download/admin_download.php index 344f170f6..394fa90d0 100644 --- a/e107_plugins/download/admin_download.php +++ b/e107_plugins/download/admin_download.php @@ -364,8 +364,12 @@ if ($action == "uopt") foreach($activeUploads as $row) { $post_author_id = substr($row['upload_poster'], 0, strpos($row['upload_poster'], ".")); - $post_author_name = substr($row['upload_poster'], (strpos($row['upload_poster'], ".")+1)); - $poster = (!$post_author_id ? "".$post_author_name."" : "".$post_author_name.""); + $post_author_name = substr($row['upload_poster'], (strpos($row['upload_poster'], ".")+1)); + // $poster = (!$post_author_id ? "".$post_author_name."" : "".$post_author_name.""); + $uparams = array('id' => $post_author_id, 'name' => $post_author_name); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$post_author_name.""; + $poster = (!$post_author_id ? "".$post_author_name."" : $userlink); $upload_datestamp = $gen->convert_date($row['upload_datestamp'], "short"); $text .= " diff --git a/e107_plugins/forum/e_list.php b/e107_plugins/forum/e_list.php index 53c89b34a..1b4e9fa12 100644 --- a/e107_plugins/forum/e_list.php +++ b/e107_plugins/forum/e_list.php @@ -101,7 +101,10 @@ class list_forum $LASTPOST = ""; if($lp_name) { - $LASTPOST = "$lp_name"; + //$LASTPOST = "$lp_name"; + $uparams = array('id' => $thread_lastuser, 'name' => $lp_name); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $LASTPOST = "".$lp_name.""; } else { @@ -128,9 +131,12 @@ class list_forum } $rowheading = $this->parent->parse_heading($parent_name); $lnk = ($parent_id ? $thread_id.".post" : $thread_id); - + //"$user_name" + $uparams = array('id' => $thread_user, 'name' => $user_name); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$user_name.""; $record['heading'] = "".$rowheading.""; - $record['author'] = ($this->parent->settings['author'] ? ($thread_anon ? $thread_user : "$user_name") : ""); + $record['author'] = ($this->parent->settings['author'] ? ($thread_anon ? $thread_user : $userlink) : ""); $record['category'] = ($this->parent->settings['category'] ? "$forum_name" : ""); $record['date'] = ($this->parent->settings['date'] ? $this->parent->getListDate($thread_datestamp) : ""); $record['icon'] = $bullet; diff --git a/e107_plugins/forum/forum_stats.php b/e107_plugins/forum/forum_stats.php index ac305c66b..ceeab40dc 100644 --- a/e107_plugins/forum/forum_stats.php +++ b/e107_plugins/forum/forum_stats.php @@ -266,7 +266,10 @@ class forumStats { if($ma['user_name']) { - $uinfo = "{$ma['user_name']}"; //TODO SEf Url . + //$uinfo = "{$ma['user_name']}"; //TODO SEf Url . + $uparams = array('id' => $ma['user_id'], 'name' => $ma['user_name']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $uinfo = "".$ma['user_name'].""; } else { @@ -312,7 +315,10 @@ class forumStats { if($ma['user_name']) { - $uinfo = "".$ma['user_name'].""; //TODO SEf Url . + //$uinfo = "".$ma['user_name'].""; //TODO SEf Url . + $uparams = array('id' => $ma['user_id'], 'name' => $ma['user_name']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $uinfo = "".$ma['user_name'].""; } else { diff --git a/e107_plugins/forum/search/search_parser.php b/e107_plugins/forum/search/search_parser.php index f99c0dbd1..036857ece 100644 --- a/e107_plugins/forum/search/search_parser.php +++ b/e107_plugins/forum/search/search_parser.php @@ -63,12 +63,16 @@ function search_forum($row) $link_id = $row['thread_id']; + //".$row['user_name']." + $uparams = array('id' => $row['user_id'], 'name' => $row['user_name']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$row['user_name'].""; $res['link'] = e_PLUGIN."forum/forum_viewtopic.php?".$link_id.".post"; $res['pre_title'] = $title ? FOR_SCH_LAN_5.": " : ""; $res['title'] = $title ? $title : LAN_SEARCH_9; $res['pre_summary'] = "
".LAN_PLUGIN_FORUM_NAME." -> ".$row['forum_name']."
"; $res['summary'] = $row['post_entry']; - $res['detail'] = LAN_SEARCH_7."".$row['user_name']."".LAN_SEARCH_8.$datestamp; + $res['detail'] = LAN_SEARCH_7.$userlink.LAN_SEARCH_8.$datestamp; return $res; } diff --git a/e107_plugins/list_new/section/list_members.php b/e107_plugins/list_new/section/list_members.php index fd45bbea0..522ec8018 100644 --- a/e107_plugins/list_new/section/list_members.php +++ b/e107_plugins/list_new/section/list_members.php @@ -48,10 +48,14 @@ class list_members { while($row = $this->parent->e107->sql->fetch()) { - $record = array(); + $record = array(); $rowheading = $this->parent->parse_heading($row['user_name']); + //".$rowheading." + $uparams = array('id' => $row['user_id'], 'name' => $rowheading); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$rowheading.""; $record['icon'] = $bullet; - $record['heading'] = (USER ? "".$rowheading."" : $rowheading); + $record['heading'] = (USER ? $userlink : $rowheading); $record['category'] = ''; $record['author'] = ''; $record['date'] = (vartrue($this->parent->settings['date']) ? $this->parent->getListDate($row['user_join']) : ""); diff --git a/e107_plugins/list_new/section/list_news.php b/e107_plugins/list_new/section/list_news.php index 1b9985e8e..a2153c94f 100644 --- a/e107_plugins/list_new/section/list_news.php +++ b/e107_plugins/list_new/section/list_news.php @@ -82,7 +82,10 @@ class list_news { if(vartrue($row['news_author_name'])) { - $record['author'] = "".$row['news_author_name'].""; + //$record['author'] = "".$row['news_author_name'].""; + $uparams = array('id' => $row['news_author_id'], 'name' => $row['news_author_name']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $record['author'] = "".$row['news_author_name'].""; } } } diff --git a/e107_plugins/newforumposts_main/newforumposts_main.php b/e107_plugins/newforumposts_main/newforumposts_main.php index eca46d4f4..c63d58e97 100644 --- a/e107_plugins/newforumposts_main/newforumposts_main.php +++ b/e107_plugins/newforumposts_main/newforumposts_main.php @@ -110,7 +110,10 @@ foreach ($forumArray as $forumInfo) $tmp = explode(".", $thread_lastuser, 2); if($lp_name) { - $LASTPOST = "$lp_name"; + //$LASTPOST = "$lp_name"; + $uparams = array('id' => $tmp[0], 'name' => $lp_name]); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $LASTPOST = "".$lp_name.""; } else { diff --git a/e107_plugins/newsletter/admin_config.php b/e107_plugins/newsletter/admin_config.php index bb1fda9b0..50e669b28 100644 --- a/e107_plugins/newsletter/admin_config.php +++ b/e107_plugins/newsletter/admin_config.php @@ -654,10 +654,14 @@ class newsletter $nl_sql -> db_Select("user", "*", "user_id=".$val); if($nl_row = $nl_sql-> db_Fetch()) { + //".$nl_row['user_name']." + $uparams = array('id' => $val, 'name' => $nl_row['user_name']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$nl_row['user_name']""; $vs_text .= " ".$val." - ".$nl_row['user_name']." + ".$userlink." ".$nl_row['user_email']." ".ADMIN_DELETE_ICON."".(($nl_row['user_ban'] > 0) ? NLLAN_62 : "")." "; diff --git a/e107_plugins/online/online_shortcodes.php b/e107_plugins/online/online_shortcodes.php index b0dff4b6e..23362bb92 100644 --- a/e107_plugins/online/online_shortcodes.php +++ b/e107_plugins/online/online_shortcodes.php @@ -110,7 +110,10 @@ class online_shortcodes { $newest_member_sql = $sql->select('user', 'user_id, user_name', "user_ban='0' ORDER BY user_join DESC LIMIT 1"); $row = $sql->fetch(); - $ret = "".$row['user_name'].""; + //$ret = "".$row['user_name'].""; + $uparams = array('id' => $row['user_id'], 'name' => $row['user_name']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $ret = "".$row['user_name'].""; $this->e107->ecache->set('online_menu_member_newest', $ret); } return $ret; @@ -169,7 +172,10 @@ class online_shortcodes function sc_online_member_user() { - return "{$this->currentMember['oname']}"; + //return "{$this->currentMember['oname']}"; + $uparams = array('id' => $this->currentMember['oid'], 'name' => $this->currentMember['oname']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + return "".$this->currentMember['oname'].""; } diff --git a/e107_plugins/poll/oldpolls.php b/e107_plugins/poll/oldpolls.php index 6d77c6c18..545cb8cd3 100644 --- a/e107_plugins/poll/oldpolls.php +++ b/e107_plugins/poll/oldpolls.php @@ -54,12 +54,15 @@ if(e_QUERY) $start_datestamp = $gen->convert_date($poll_datestamp, "long"); $end_datestamp = $gen->convert_date($poll_end_datestamp, "long"); - + //".$user_name." + $uparams = array('id' => $user_id, 'name' => $user_name); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$user_name.""; $text = " @@ -149,10 +152,13 @@ foreach($oldpollArray as $oldpoll) $to = $gen->convert_date($poll_end_datestamp, "short"); $poll_title = $tp->e_bb->parseBBCodes($poll_title, 0,TRUE,TRUE); // Strip bbcodes - +//{$user_name} + $uparams = array('id' => $poll_admin_id, 'name' => $user_name); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$user_name.""; $text .= " - + \n"; } diff --git a/e107_plugins/poll/poll_class.php b/e107_plugins/poll/poll_class.php index 4d45a2754..bccf8e193 100644 --- a/e107_plugins/poll/poll_class.php +++ b/e107_plugins/poll/poll_class.php @@ -461,7 +461,11 @@ class poll $OLDPOLLS = ($type == 'menu' ? "".POLLAN_28."" : ""); } - $AUTHOR = POLLAN_35." ".($type == 'preview' || $type == 'forum' ? USERNAME : "".$pollArray['user_name'].""); + //"".$pollArray['user_name']."" + $uparams = array('id' => $pollArray['poll_admin_id'], 'name' => $pollArray['user_name']); + $link = e107::getUrl()->create('user/profile/view', $uparams); + $userlink = "".$pollArray['user_name'].""; + $AUTHOR = POLLAN_35." ".($type == 'preview' || $type == 'forum' ? USERNAME : $userlink);
".$tp -> toHTML($poll_title,TRUE,'TITLE')." -
".POLLAN_35." ".$user_name.".
".POLLAN_37." ".$start_datestamp." ".POLLAN_38." ".$end_datestamp.".
".POLLAN_26.": {$voteTotal}
+
".POLLAN_35." ".$userlink."
".POLLAN_37." ".$start_datestamp." ".POLLAN_38." ".$end_datestamp.".
".POLLAN_26.": {$voteTotal}

{$poll_title}{$user_name}".$userlink." {$from} ".POLLAN_38." {$to}