Code: Select all
Find
Tip: This may be a partial find and not the whole line.
Code:Select All
case 'viewprofile':
Find
Tip: This may be a partial find and not the whole line.
Code:Select All
$template->assign_vars(show_profile($member));
Add after
Tip: Add these lines on a new blank line after the preceding line(s) to find.
Code:Select All
//added by Nyquist Show Groups Info
if (isset($config['nyq_showgroupsinfo']))
{
//take the image of the default rank from the template
$nyq_default_rank = $template->_rootref['RANK_IMG_SRC'];
//extract the groups
$nyq_groups_ranks_array = nyq_getgroupsarray_new($member['user_id'], $config['nyq_showgroupsinfo'], $nyq_default_rank);
foreach ($nyq_groups_ranks_array as $single_rank)
{
$nyq_listofranks = array(
'TITLE' => $single_rank['TITLE'],
'IMAGE' => $single_rank['IMAGE'],
);
$template->assign_block_vars('nyq_listofranks', $nyq_listofranks);
}
}
//End added by Nyquist Show Groups Info