1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-17 20:01:47 +02:00

Improved user-profile viewing in admin.

This commit is contained in:
Cameron
2015-04-15 15:34:58 -07:00
parent f3cdc78621
commit 01463a6759
3 changed files with 53 additions and 9 deletions

View File

@@ -3405,9 +3405,12 @@ class e_form
}
if(vartrue($parms['link']) && $id && $ttl && is_numeric($id))
if(!empty($parms['link']) && $id && $ttl && is_numeric($id))
{
$value = '<a href="'.e107::getUrl()->create('user/profile/view', array('id' => $id, 'name' => $ttl)).'" title="Go to user profile">'.$ttl.'</a>';
// Stay in admin area.
$link = e_ADMIN."users.php?mode=main&action=edit&id=".$id."&readonly=1&iframe=1"; // e107::getUrl()->create('user/profile/view', array('id' => $id, 'name' => $ttl))
$value = '<a class="e-modal" data-modal-caption="User #'.$id.' : '.$ttl.'" href="'.$link.'" title="Go to user profile">'.$ttl.'</a>';
}
else
{