mirror of
https://github.com/e107inc/e107.git
synced 2025-01-16 20:28:28 +01:00
Moving the system to the new URL assembling, fixed call to a non-existent eUrl method system wide.
This commit is contained in:
parent
0f794aa225
commit
548b585f7e
@ -142,7 +142,7 @@ if ($redirectFlag)
|
||||
switch ($table)
|
||||
{
|
||||
case "news" :
|
||||
header('Location: '.e107::getUrl()->create('core:news', 'main', 'action=extend&id='.$redirectFlag));
|
||||
header('Location: '.e107::getUrl()->create('news/view/item', 'id='.$redirectFlag));
|
||||
exit;
|
||||
case "poll" :
|
||||
echo "<script type='text/javascript'>document.location.href='".e_HTTP."comment.php?comment.{$table}.{$redirectFlag}'</script>\n";
|
||||
@ -154,7 +154,7 @@ if ($redirectFlag)
|
||||
echo "<script type='text/javascript'>document.location.href='".e_HTTP."page.php?{$redirectFlag}'</script>\n";
|
||||
exit;
|
||||
case 'user' :
|
||||
echo "<script type='text/javascript'>document.location.href='".e_HTTP."user.php?id.{$redirectFlag}'</script>\n";
|
||||
echo "<script type='text/javascript'>document.location.href='".e107::getUrl()->create('user/profile/view', 'id='.$redirectFlag)</script>\n";
|
||||
exit;
|
||||
}
|
||||
|
||||
|
@ -147,7 +147,7 @@ function show_admins()
|
||||
$text .= "
|
||||
<tr>
|
||||
<td>".$row['user_id']."</td>
|
||||
<td><a href='".e107::getUrl()->getUrl('core:user', 'main', "func=profile&id={$row['user_id']}")."'>".$row['user_name']."</a></td>
|
||||
<td><a href='".e107::getUrl()->create('user/profile/view', array('id' => $row['user_id'], 'name' => $row['user_name']))."'>".$row['user_name']."</a></td>
|
||||
<td>
|
||||
".$prm->renderperms($row['user_perms'],$row['user_id'],"words")."
|
||||
</td>
|
||||
|
@ -1008,7 +1008,7 @@ function show_avatars()
|
||||
{
|
||||
$row = $sql->db_Fetch();
|
||||
if($row['user_image'] == '-upload-'.$image_name) $image_pre = '-upload-';
|
||||
$users .= "<a href='".$e107->url->getUrl('core:user', 'main', 'func=profile&id='.$row['user_id'])."'>{$row['user_name']}</a> <span class='smalltext'>(".($row['user_sess'] == $image_name ? IMALAN_24 : IMALAN_23).")</span>";
|
||||
$users .= "<a href='".$e107->url->create('user/profile/view', 'name='.$row['user_name'].'&id='.$row['user_id'])."'>{$row['user_name']}</a> <span class='smalltext'>(".($row['user_sess'] == $image_name ? IMALAN_24 : IMALAN_23).")</span>";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -976,7 +976,7 @@ class admin_newspost
|
||||
// --------------------------------------------
|
||||
|
||||
$query = "
|
||||
SELECT n.*, nc.*, u.user_name FROM #news AS n
|
||||
SELECT n.*, nc.*, u.user_name, u.user_id FROM #news AS n
|
||||
LEFT JOIN #news_category AS nc ON n.news_category=nc.category_id
|
||||
LEFT JOIN #user AS u ON n.news_author=u.user_id
|
||||
";
|
||||
@ -1025,10 +1025,11 @@ class admin_newspost
|
||||
foreach($newsarray as $row)
|
||||
{
|
||||
// PREPARE SOME DATA
|
||||
$row['user_name'] = "<a href='".e107::getUrl()->createCoreUser('func=profile&id='.$row['news_author'])."' title='{$row['user_name']}'>{$row['user_name']}</a>";
|
||||
// safe to pass $row as it contains username and id only (no sensitive data), user_id and user_name will be internal converted to 'id', 'name' vars
|
||||
$row['user_name'] = "<a href='".e107::getUrl()->create('user/profile/view', $row)."' title='{$row['user_name']}'>{$row['user_name']}</a>";
|
||||
$row['news_thumbnail'] = ($row['news_thumbnail'] && is_readable(e_NEWSIMAGE.$row['news_thumbnail'])) ? "<a href='".e_NEWSIMAGE_ABS.$row['news_thumbnail']."' title='{$row['news_thumbnail']}' rel='external' class='e-image-preview'>".e107::getParser()->text_truncate($row['news_thumbnail'], 20, '...')."</a>" : "";
|
||||
$row['news_title'] = "<a href='".e107::getUrl()->createCoreNews("action=extend&id={$row['news_id']}&sef={$row['news_rewrite_string']}")."'>".$e107->tp->toHTML($row['news_title'], false, 'TITLE')."</a>";
|
||||
$row['category_name'] = "<a href='".e107::getUrl()->createCoreNews('action=list&id='.$row['category_id'].'&sef='.$row['news_category_rewrite_string'])."'>".$row['category_name']."</a>";
|
||||
$row['news_title'] = "<a href='".e107::getUrl()->create('news/view/item', $row)."'>".$e107->tp->toHTML($row['news_title'], false, 'TITLE')."</a>";
|
||||
$row['category_name'] = "<a href='".e107::getUrl()->create('news/list/items', $row)."'>".$row['category_name']."</a>";
|
||||
$row['news_render_type'] = $ren_type[$row['news_render_type']];
|
||||
|
||||
$row['news_allow_comments'] = !$row['news_allow_comments'] ? true : false; // old reverse logic
|
||||
@ -1294,7 +1295,7 @@ class admin_newspost
|
||||
//XXX DB UPLOADS STILL SUPPORTED?
|
||||
$upload_file = "pub_" . (preg_match('#Binary\s(.*?)\/#', $row['upload_file'], $match) ? $match[1] : $row['upload_file']);
|
||||
$_POST['news_title'] = LAN_UPLOAD.": ".$row['upload_name'];
|
||||
$_POST['news_body'] = $row['upload_description']."\n[b]".NWSLAN_49." [link=".$e107->url->getUrl('core:user', 'main', 'id='.$post_author_id)."]".$post_author_name."[/link][/b]\n\n[file=request.php?".$upload_file."]{$row['upload_name']}[/file]\n";
|
||||
$_POST['news_body'] = $row['upload_description']."\n[b]".NWSLAN_49." [link=".$e107->url->create('user/profile/view', 'id='.$post_author_id.'&name='.$post_author_name)."]".$post_author_name."[/link][/b]\n\n[file=request.php?".$upload_file."]{$row['upload_name']}[/file]\n";
|
||||
}
|
||||
}
|
||||
|
||||
@ -1369,7 +1370,7 @@ class admin_newspost
|
||||
$e107->sql->db_Select("user", "user_name", "user_id={$auth} LIMIT 1");
|
||||
$row = $e107->sql->db_Fetch(MYSQL_ASSOC);
|
||||
$text .= "<input type='hidden' name='news_author' value='".$auth.chr(35).$row['user_name']."' />";
|
||||
$text .= "<a href='".$e107->url->getUrl('core:user', 'main', 'id='.$_POST['news_author'])."'>".$row['user_name']."</a>";
|
||||
$text .= "<a href='".$e107->url->create('user/profile/view', 'name='.$row['user_name'].'&id='.$_POST['news_author'])."'>".$row['user_name']."</a>";
|
||||
}
|
||||
else // allow master admin to
|
||||
{
|
||||
|
@ -17,7 +17,7 @@ require_once ('../class2.php');
|
||||
|
||||
if (!getperms('4|U0|U1|U2|U3') )
|
||||
{
|
||||
header('location:'.$e107->url->getUrl('core:core','main','action=index'));
|
||||
header('location:'.$e107->url->create('/'));
|
||||
exit;
|
||||
}
|
||||
|
||||
@ -53,7 +53,8 @@ if (e_QUERY == 'logoutas' || varset($_POST['useraction']) == 'logoutas')
|
||||
|
||||
if (isset ($_POST['useraction']) && $_POST['useraction'] == 'usersettings')
|
||||
{
|
||||
header('location:'.$e107->url->getUrl('core:user','main','func=settings&id='.(int) $_POST['userid']));
|
||||
// __URLFIX__ - user name
|
||||
header('location:'.$e107->url->create('user/profile/edit', 'id='.(int) $_POST['userid'], 'full=1&encode=0'));
|
||||
exit;
|
||||
}
|
||||
|
||||
@ -1342,7 +1343,7 @@ class users
|
||||
break;
|
||||
|
||||
case 'user_name':
|
||||
return "<a href='".$e107->url->getUrl('core:user','main','func=profile&id='.$row['user_id'])."'>{$row['user_name']}</a>";
|
||||
return "<a href='".$e107->url->getUrl('user/profile/view', 'name='.$row['user_name'].'&id='.$row['user_id'])."'>{$row['user_name']}</a>";
|
||||
break;
|
||||
|
||||
case 'user_perms': //TODO display link to popup window with editable perms.
|
||||
|
@ -33,7 +33,7 @@ SC_BEGIN USERNAME
|
||||
global $USERNAME, $comrow;
|
||||
if (isset($comrow['user_id']) && $comrow['user_id'])
|
||||
{
|
||||
$USERNAME = $parm == 'raw' ? $comrow['user_name'] : "<a href='".e107::getUrl()->create('core:user', 'main', 'func=profile&id='.$comrow['user_id'])."'>".$comrow['user_name']."</a>\n";
|
||||
$USERNAME = $parm == 'raw' ? $comrow['user_name'] : "<a href='".e107::getUrl()->create('user/profile/view', array('id' => $comrow['user_id'], 'name' => $comrow['user_name']))."'>".$comrow['user_name']."</a>\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -477,8 +477,8 @@ function nextprev_shortcode($parm = '')
|
||||
if(substr($url, 0, 5) == 'url::')
|
||||
{
|
||||
$urlParms = explode('::', $url);
|
||||
$urlParms[3] = str_replace('[FROM]', $prevstart, $urlParms[3]);
|
||||
$link = $e107->url->getUrl($urlParms[1], $urlParms[2], $urlParms[3]);
|
||||
$urlParms[2] = str_replace('[FROM]', $prevstart, $urlParms[2]);
|
||||
$link = $e107->url->create($urlParms[1], $urlParms[2], varset($urlParms[3]));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -492,8 +492,8 @@ function nextprev_shortcode($parm = '')
|
||||
if(substr($url, 0, 5) == 'url::')
|
||||
{
|
||||
$urlParms = explode('::', $url);
|
||||
$urlParms[3] = str_replace('[FROM]', $nextstart, $urlParms[3]);
|
||||
$link = $e107->url->getUrl($urlParms[1], $urlParms[2], $urlParms[3]);
|
||||
$urlParms[2] = str_replace('[FROM]', $nextstart, $urlParms[2]);
|
||||
$link = $e107->url->create($urlParms[1], $urlParms[2], varset($urlParms[3]));
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -513,8 +513,8 @@ function nextprev_shortcode($parm = '')
|
||||
if(substr($url, 0, 5) == 'url::')
|
||||
{
|
||||
$urlParms = explode('::', $url);
|
||||
$urlParms[3] = str_replace('[FROM]', $newstart, $urlParms[3]);
|
||||
$link = $e107->url->getUrl($urlParms[1], $urlParms[2], $urlParms[3]);
|
||||
$urlParms[2] = str_replace('[FROM]', $newstart, $urlParms[2]);
|
||||
$link = $e107->url->create($urlParms[1], $urlParms[2], varset($urlParms[3]));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -41,8 +41,8 @@ class core_user_url extends eUrlConfig
|
||||
if(!varset($route[1])) $route[1] = 'index';
|
||||
|
||||
## aliases as retrieved from the DB, map vars to proper values
|
||||
if(isset($params['user_name']) && !empty($params['user_name'])) $params['id'] = $params['user_name'];
|
||||
if(isset($params['user_id']) && !empty($params['user_id'])) $params['id'] = $params['user_id'];
|
||||
//if(isset($params['user_name']) && !empty($params['user_name'])) $params['id'] = $params['user_name'];
|
||||
|
||||
$url = 'user.php';
|
||||
$page = $params['page'] ? intval($params['page']) : '0';
|
||||
|
@ -75,6 +75,13 @@ class core_user_rewrite_url extends eUrlConfig
|
||||
$name = $request->getRequestParam('name');
|
||||
if(!$name) return;
|
||||
|
||||
// if id only is passed, don't do DB query
|
||||
if(is_numeric($name))
|
||||
{
|
||||
$request->setRequestParam('id', $name)->setRequestParam('name', null);
|
||||
return;
|
||||
}
|
||||
|
||||
$sql = e107::getDb('url');
|
||||
$name = e107::getParser()->toDB($name);
|
||||
if($sql->db_Select('user', 'user_id', "user_name='{$name}'")) // XXX - new user_sef field? Discuss.
|
||||
|
@ -910,7 +910,7 @@ class comment
|
||||
$comment_author_id = $row['comment_author_id'];
|
||||
$ret['comment_author_id'] = $comment_author_id ;
|
||||
$comment_author_name = $row['comment_author_name'];
|
||||
$ret['comment_author'] = (USERID ? "<a href='".e107::getUrl()->create('core:user', 'main', 'func=profile&id='.$comment_author_id)."'>".$comment_author_name."</a>" : $comment_author_name);
|
||||
$ret['comment_author'] = (USERID ? "<a href='".e107::getUrl()->create('user/profile/view', array('id' => $comment_author_id, 'name' => $comment_author_name))."'>".$comment_author_name."</a>" : $comment_author_name);
|
||||
//comment text
|
||||
$comment = strip_tags(preg_replace("/\[.*?\]/", "", $row['comment_comment'])); // remove bbcode - but leave text in between
|
||||
$ret['comment_comment'] = $tp->toHTML($comment, FALSE, "", "", $pref['main_wordwrap']);
|
||||
@ -925,9 +925,9 @@ class comment
|
||||
require_once(e_HANDLER.'news_class.php');
|
||||
$ret['comment_type'] = COMLAN_TYPE_1;
|
||||
$ret['comment_title'] = $tp->toHTML($row2['news_title'], TRUE, 'emotes_off, no_make_clickable');
|
||||
$ret['comment_url'] = e107::getUrl()->create('core:news', 'main', 'action=extend&id='.$row['comment_item_id']);//e_HTTP."comment.php?comment.news.".$row['comment_item_id'];
|
||||
$ret['comment_url'] = e107::getUrl()->create('news/view/item', $row2);//e_HTTP."comment.php?comment.news.".$row['comment_item_id'];
|
||||
$ret['comment_category_heading'] = COMLAN_TYPE_1;
|
||||
$ret['comment_category_url'] = e107::getUrl()->create('core:news', 'main', '');//e_HTTP."news.php";
|
||||
$ret['comment_category_url'] = e107::getUrl()->create('news');//e_HTTP."news.php";
|
||||
}
|
||||
break;
|
||||
case '1': // article, review or content page - defunct category, but filter them out
|
||||
@ -963,7 +963,7 @@ class comment
|
||||
{
|
||||
$ret['comment_type'] = COMLAN_TYPE_8;
|
||||
$ret['comment_title'] = $comment_author_name;
|
||||
$ret['comment_url'] = e107::getUrl()->create('core:user', 'main', 'func=profile&id='.$row['comment_item_id']);//e_HTTP."user.php?id.".$row['comment_item_id'];
|
||||
$ret['comment_url'] = e107::getUrl()->create('user/pofile/view', array('id' => $row['user_id'], 'name' => $row['user_name']));//e_HTTP."user.php?id.".$row['comment_item_id'];
|
||||
}
|
||||
break;
|
||||
case 'page': // Custom Page
|
||||
|
@ -1512,7 +1512,7 @@ class e_form
|
||||
|
||||
if(vartrue($parms['link']) && $id && $ttl && is_numeric($id))
|
||||
{
|
||||
$value = '<a href="'.e107::getUrl()->createCoreUser('func=profile&id='.intval($id)).'" title="Go to user profile">'.$ttl.'</a>';
|
||||
$value = '<a href="'.e107::getUrl()->create('user/profile/view', array('id' => $id, 'name' => $ttl)).'" title="Go to user profile">'.$ttl.'</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -978,7 +978,7 @@ class e_news_category_item extends e_model
|
||||
public function sc_news_category_url($parm = '')
|
||||
{
|
||||
|
||||
$url = e107::getUrl()->create('core:news', 'main', 'action=list&id='.$this->getId().'&sef='.$this->get('rewrite_string'));
|
||||
$url = e107::getUrl()->create('news/list/items', $this->getData());
|
||||
switch($parm)
|
||||
{
|
||||
case 'link':
|
||||
|
@ -91,7 +91,7 @@ for($i = $start_year; $i <= $end_year; $i++)
|
||||
list($xmonth, $xday) = explode(" ", date("n j", $news['news_datestamp']));
|
||||
if (!$day_links[$xmonth][$xday])
|
||||
{
|
||||
$day_links[$xmonth][$xday] = e107::getUrl()->create('core:news', 'main', 'action=day&value='.formatDate($req_year, $xmonth, $xday));
|
||||
$day_links[$xmonth][$xday] = e107::getUrl()->create('news/list/day', 'id='.formatDate($req_year, $xmonth, $xday));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -122,7 +122,7 @@ for($i = 1; $i <= 12; $i++)
|
||||
// href the current month regardless of newsposts or any month with news
|
||||
if (($req_year == $cur_year && $i == $cur_month) || $day_links[$i])
|
||||
{
|
||||
$archive .= "<a class='forumlink' href='".e107::getUrl()->create('core:news', 'main', 'action=month&value='.formatDate($req_year, $i))."'>".$marray[$i-1]."</a>";
|
||||
$archive .= "<a class='forumlink' href='".e107::getUrl()->create('news/list/month', 'id='.formatDate($req_year, $i))."'>".$marray[$i-1]."</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -42,8 +42,9 @@ if(false === $cached)
|
||||
list($cur_year, $cur_month, $cur_day) = explode(" ", date("Y n j"));
|
||||
if (e_PAGE == 'news.php' && strstr(e_QUERY, "day"))
|
||||
{
|
||||
//$tmp = explode(".", e_QUERY);
|
||||
$tmp = e107::getUrl()->parseRequest('core:news', 'main', urldecode(e_QUERY));
|
||||
$tmp = explode(".", e_QUERY);
|
||||
// Core now support legacy queries - use just the old way
|
||||
//$tmp = e107::getUrl()->parseRequest('core:news', 'main', urldecode(e_QUERY));
|
||||
$item = $tmp[1];
|
||||
$req_year = intval(substr($item, 0, 4));
|
||||
$req_month = intval(substr($item, 4, 2));
|
||||
@ -63,8 +64,9 @@ if(false === $cached)
|
||||
}
|
||||
elseif(e_PAGE == 'news.php' && strstr(e_QUERY, "month"))
|
||||
{
|
||||
//$tmp = explode(".", e_QUERY);
|
||||
$tmp = e107::getUrl()->parseRequest('core:news', 'main', urldecode(e_QUERY));
|
||||
$tmp = explode(".", e_QUERY);
|
||||
// Core now support legacy queries - use just the old way
|
||||
//$tmp = e107::getUrl()->parseRequest('core:news', 'main', urldecode(e_QUERY));
|
||||
$item = $tmp[1];
|
||||
$req_year = intval(substr($item, 0, 4));
|
||||
$req_month = intval(substr($item, 4, 2));
|
||||
@ -107,14 +109,14 @@ if(false === $cached)
|
||||
$xmonth = date("n", $news['news_datestamp']);
|
||||
if (!isset($month_links[$xmonth]) || !$month_links[$xmonth])
|
||||
{
|
||||
$month_links[$xmonth] = e107::getUrl()->create('core:news', 'main', 'action=month&value='.formatDate($req_year, $xmonth));//e_BASE."news.php?month.".formatDate($req_year, $xmonth);
|
||||
$month_links[$xmonth] = e107::getUrl()->create('news/list/month', 'idv='.formatDate($req_year, $xmonth));//e_BASE."news.php?month.".formatDate($req_year, $xmonth);
|
||||
}
|
||||
if($news['news_datestamp'] >= $month_start AND $news['news_datestamp'] <= $month_end)
|
||||
{
|
||||
$xday = date("j", $news['news_datestamp']);
|
||||
if (!isset($day_links[$xday]) || !$day_links[$xday])
|
||||
{
|
||||
$day_links[$xday] = e107::getUrl()->create('core:news', 'main', 'action=day&value='.formatDate($req_year, $xmonth, $xday));//e_BASE."news.php?day.".formatDate($req_year, $req_month, $xday);
|
||||
$day_links[$xday] = e107::getUrl()->create('news/list/day', 'id='.formatDate($req_year, $xmonth, $xday));//e_BASE."news.php?day.".formatDate($req_year, $req_month, $xday);
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -122,7 +124,7 @@ if(false === $cached)
|
||||
// if we're listing the current year, add the current month to the list regardless of posts
|
||||
if ($req_year == $cur_year)
|
||||
{
|
||||
$month_links[$cur_month] = e107::getUrl()->create('core:news', 'main', 'action=month&value='.formatDate($cur_year, $cur_month));//e_BASE."news.php?month.".formatDate($cur_year, $cur_month);
|
||||
$month_links[$cur_month] = e107::getUrl()->create('news/list/month', 'id='.formatDate($cur_year, $cur_month));//e_BASE."news.php?month.".formatDate($cur_year, $cur_month);
|
||||
}
|
||||
|
||||
// go over the link array and create the option fields
|
||||
|
@ -143,7 +143,9 @@ if ($pages)
|
||||
if(strpos($FORUM_VIEW_START, 'THREADPAGES') !== false || strpos($FORUM_VIEW_END, 'THREADPAGES') !== false)
|
||||
{
|
||||
//if(!$page) $page = 1;
|
||||
$url = rawurlencode(e107::getUrl()->getUrl('forum', 'forum', array('func' => 'view', 'id' => $forumId, 'page' => '[FROM]')));
|
||||
|
||||
// __FIX URL__ - forum urls - fixed only parse error
|
||||
$url = rawurlencode(e107::getUrl()->create('forum', 'forum', array('func' => 'view', 'id' => $forumId, 'page' => '[FROM]')));
|
||||
$parms = "total={$pages}&type=page¤t={$page}&url=".$url."&caption=off";
|
||||
$fVars->THREADPAGES = $e107->tp->parseTemplate("{NEXTPREV={$parms}}");
|
||||
}
|
||||
|
10
top.php
10
top.php
@ -86,7 +86,7 @@ if ($action == 'active')
|
||||
{
|
||||
if ($row['user_name'])
|
||||
{
|
||||
$POSTER = "<a href='".$e107->url->getUrl('core:user', 'main', "func=profile&id={$row['thread_user']}")."'>{$row['user_name']}</a>";
|
||||
$POSTER = "<a href='".$e107->url->create('user/profile/view', 'main', "name={$row['user_name']}&id={$row['thread_user']}")."'>{$row['user_name']}</a>";
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -99,7 +99,7 @@ if ($action == 'active')
|
||||
$lastpost_datestamp = $gen->convert_date($row['thread_lastpost'], 'forum');
|
||||
if ($row['user_last'])
|
||||
{
|
||||
$LASTPOST = "<a href='".$e107->url->getUrl('core:user', 'main', "func=profile&id={$row['thread_lastuser']}")."'>{$row['user_last']}</a><br />".$lastpost_datestamp;
|
||||
$LASTPOST = "<a href='".$e107->url->create('user/profile/view', 'main', "name={$row['user_last']}&id={$row['thread_lastuser']}")."'>{$row['user_last']}</a><br />".$lastpost_datestamp;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -174,7 +174,7 @@ if ($action == 'top')
|
||||
if(!$r) $r = 'n/a';
|
||||
$text .= "<tr>
|
||||
<td style='width:10%; text-align:center' class='forumheader3'>{$counter}</td>
|
||||
<td style='width:50%' class='forumheader3'><a href='".e107::getUrl()->create('core:user', 'main', 'func=profile&id='.$row['user_id'])."'>{$row['user_name']}</a></td>
|
||||
<td style='width:50%' class='forumheader3'><a href='".e107::getUrl()->create('user/profile/view', 'id='.$row['user_id'].'&name='.$row['user_name'])."'>{$row['user_name']}</a></td>
|
||||
<td style='width:10%; text-align:center' class='forumheader3'>{$row['user_plugin_forum_posts']}</td>
|
||||
<td style='width:30%; text-align:center' class='forumheader3'>{$r}</td>
|
||||
</tr>";
|
||||
@ -222,7 +222,7 @@ if ($action == 'top')
|
||||
if(!$r) $r = 'n/a';
|
||||
$text .= "<tr>
|
||||
<td style='width:10%; text-align:center' class='forumheader3'>{$counter}</td>
|
||||
<td style='width:50%' class='forumheader3'><a href='".e107::getUrl()->create('core:user', 'main', 'func=profile&id='.$row['user_id'])."'>{$row['user_name']}</a></td>
|
||||
<td style='width:50%' class='forumheader3'><a href='".e107::getUrl()->create('user/profile/view', 'id='.$row['user_id'].'&name='.$row['user_name'])."'>{$row['user_name']}</a></td>
|
||||
<td style='width:10%; text-align:center' class='forumheader3'>{$row['user_comments']}</td>
|
||||
<td style='width:30%; text-align:center' class='forumheader3'>{$r}</td>
|
||||
</tr>";
|
||||
@ -270,7 +270,7 @@ if ($action == 'top')
|
||||
if(!$r) $r = 'n/a';
|
||||
$text .= "<tr>
|
||||
<td style='width:10%; text-align:center' class='forumheader3'>{$counter}</td>
|
||||
<td style='width:50%' class='forumheader3'><a href='".e107::getUrl()->create('core:user', 'main', 'func=profile&id='.$row['user_id'])."'>{$row['user_name']}</a></td>
|
||||
<td style='width:50%' class='forumheader3'><a href='".e107::getUrl()->create('user/profile/view', 'id='.$row['user_id'].'&name='.$row['user_name'])."'>{$row['user_name']}</a></td>
|
||||
<td style='width:10%; text-align:center' class='forumheader3'>{$row['user_chats']}</td>
|
||||
<td style='width:30%; text-align:center' class='forumheader3'>{$r}</td>
|
||||
</tr>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user