mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 14:13:03 +02:00
Issue #1309. e_BASE."user.php" replaced with SEF URL.
This commit is contained in:
@@ -101,7 +101,10 @@ class list_forum
|
||||
$LASTPOST = "";
|
||||
if($lp_name)
|
||||
{
|
||||
$LASTPOST = "<a href='".e_HTTP."user.php ?id.{$thread_lastuser}'>$lp_name</a>";
|
||||
//$LASTPOST = "<a href='".e_HTTP."user.php ?id.{$thread_lastuser}'>$lp_name</a>";
|
||||
$uparams = array('id' => $thread_lastuser, 'name' => $lp_name);
|
||||
$link = e107::getUrl()->create('user/profile/view', $uparams);
|
||||
$LASTPOST = "<a href='".$link."'>".$lp_name."</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -128,9 +131,12 @@ class list_forum
|
||||
}
|
||||
$rowheading = $this->parent->parse_heading($parent_name);
|
||||
$lnk = ($parent_id ? $thread_id.".post" : $thread_id);
|
||||
|
||||
//"<a href='".e_HTTP."user.php ?id.$thread_user'>$user_name</a>"
|
||||
$uparams = array('id' => $thread_user, 'name' => $user_name);
|
||||
$link = e107::getUrl()->create('user/profile/view', $uparams);
|
||||
$userlink = "<a href='".$link."'>".$user_name."</a>";
|
||||
$record['heading'] = "<a href='".$path."forum_viewtopic.php?$lnk'>".$rowheading."</a>";
|
||||
$record['author'] = ($this->parent->settings['author'] ? ($thread_anon ? $thread_user : "<a href='".e_HTTP."user.php ?id.$thread_user'>$user_name</a>") : "");
|
||||
$record['author'] = ($this->parent->settings['author'] ? ($thread_anon ? $thread_user : $userlink) : "");
|
||||
$record['category'] = ($this->parent->settings['category'] ? "<a href='".$path."forum_viewforum.php?$forum_id'>$forum_name</a>" : "");
|
||||
$record['date'] = ($this->parent->settings['date'] ? $this->parent->getListDate($thread_datestamp) : "");
|
||||
$record['icon'] = $bullet;
|
||||
|
@@ -266,7 +266,10 @@ class forumStats
|
||||
{
|
||||
if($ma['user_name'])
|
||||
{
|
||||
$uinfo = "<a href='".e_HTTP."user.php ?id.{$ma['user_id']}'>{$ma['user_name']}</a>"; //TODO SEf Url .
|
||||
//$uinfo = "<a href='".e_HTTP."user.php ?id.{$ma['user_id']}'>{$ma['user_name']}</a>"; //TODO SEf Url .
|
||||
$uparams = array('id' => $ma['user_id'], 'name' => $ma['user_name']);
|
||||
$link = e107::getUrl()->create('user/profile/view', $uparams);
|
||||
$uinfo = "<a href='".$link."'>".$ma['user_name']."</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -312,7 +315,10 @@ class forumStats
|
||||
{
|
||||
if($ma['user_name'])
|
||||
{
|
||||
$uinfo = "<a href='".e_HTTP."user.php ?id.{$ma['user_id']}'>".$ma['user_name']."</a>"; //TODO SEf Url .
|
||||
//$uinfo = "<a href='".e_HTTP."user.php ?id.{$ma['user_id']}'>".$ma['user_name']."</a>"; //TODO SEf Url .
|
||||
$uparams = array('id' => $ma['user_id'], 'name' => $ma['user_name']);
|
||||
$link = e107::getUrl()->create('user/profile/view', $uparams);
|
||||
$uinfo = "<a href='".$link."'>".$ma['user_name']."</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@@ -63,12 +63,16 @@ function search_forum($row)
|
||||
|
||||
$link_id = $row['thread_id'];
|
||||
|
||||
//<a href='user.php?id.".$row['user_id']."'>".$row['user_name']."</a>
|
||||
$uparams = array('id' => $row['user_id'], 'name' => $row['user_name']);
|
||||
$link = e107::getUrl()->create('user/profile/view', $uparams);
|
||||
$userlink = "<a href='".$link."'><b>".$row['user_name']."</b></a>";
|
||||
$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'] = "<div class='smalltext' style='padding: 2px 0px'><a href='".e_PLUGIN."forum/forum.php'>".LAN_PLUGIN_FORUM_NAME."</a> -> <a href='".e_PLUGIN."forum/forum_viewforum.php?".$row['forum_id']."'>".$row['forum_name']."</a></div>";
|
||||
$res['summary'] = $row['post_entry'];
|
||||
$res['detail'] = LAN_SEARCH_7."<a href='user.php?id.".$row['user_id']."'>".$row['user_name']."</a>".LAN_SEARCH_8.$datestamp;
|
||||
$res['detail'] = LAN_SEARCH_7.$userlink.LAN_SEARCH_8.$datestamp;
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
Reference in New Issue
Block a user