I'm trying to add one more group to the show groups page and this is what I did on showgroups.php file
after
I added
PHP Code:
$newgroup1 = '';
then I changed this
PHP Code:
if ($usergroupid == 6) { // Admins
eval("\$admininfo .= \"".gettemplate("showgroups_adminbit")."\";");
} else if ($usergroupid == 5) { // Super Mods
eval("\$modinfo .= \"".gettemplate("showgroups_adminbit")."\";");
} else {
if (!$grouptitle[$usergroupid]) {
$grouptitle[$usergroupid] = $user['title'];
}
eval("\$groupinfo[$usergroupid] .= \"".gettemplate("showgroups_adminbit")."\";");
}
to look like this
PHP Code:
if ($usergroupid == 6) { // Admins
eval("\$admininfo .= \"".gettemplate("showgroups_adminbit")."\";");
} else if ($usergroupid == 5) { // Super Mods
eval("\$modinfo .= \"".gettemplate("showgroups_adminbit")."\";");
} else if ($usergroupid == 9) { // New group
eval("\$newgroup1 .= \"".gettemplate("showgroups_adminbit")."\";");
} else {
if (!$grouptitle[$usergroupid]) {
$grouptitle[$usergroupid] = $user['title'];
}
eval("\$groupinfo[$usergroupid] .= \"".gettemplate("showgroups_adminbit")."\";");
}
and then I added this
PHP Code:
if ($newgroup1) {
$groupname = 'New group';
$adminbits = $newgroup1;
eval("\$groupbits .= \"".gettemplate("showgroups_group")."\";");
}
after this
PHP Code:
if ($admininfo) {
$groupname = 'Adminstrators';
$adminbits = $admininfo;
eval("\$groupbits .= \"".gettemplate("showgroups_group")."\";");
}
I'm a newbie to PHP and I hope somebody will help me out with this thing and will tell me what I missed out or where my mistakes are