2014-03-18, 08:03 PM
I'd like to add an edit profile button on this page so that when you are looking at all your group members you can got straight to edit profile in the Mod CP without having to go to the users profile and then click edit profile in mod cp.
I know I have to edit the templates to add columns
and something in this section of the managegroup.php page
Can someone show me the edit please?
I know I have to edit the templates to add columns
and something in this section of the managegroup.php page
Can someone show me the edit please?
while($user = $db->fetch_array($query))
{
$altbg = alt_trow();
$regdate = my_date($mybb->settings['dateformat'].", ".$mybb->settings['timeformat'], $user['regdate']);
$post = $user;
$sendpm = $email = '';
if($mybb->settings['enablepms'] == 1 && $post['receivepms'] != 0 && $mybb->usergroup['cansendpms'] == 1 && my_strpos(",".$post['ignorelist'].",", ",".$mybb->user['uid'].",") === false)
{
eval("\$sendpm = \"".$templates->get("postbit_pm")."\";");
}
if($user['hideemail'] != 1)
{
eval("\$email = \"".$templates->get("postbit_email")."\";");
}
else
{
$email = '';
}
$query1 = $db->simple_select("groupleaders", "uid", "uid='{$user['uid']}' AND gid='{$gid}'");
$isleader = $db->fetch_array($query1);
$user['username'] = format_name($user['username'], $user['usergroup'], $user['displaygroup']);
$user['profilelink'] = build_profile_link($user['username'], $user['uid']);
if($isleader['uid'])
{
$leader = $lang->leader;
}
else
{
$leader = '';
}