If you add
in front of any line, it will be ignored. This is usually the best way to get rid of code - instead of deleting it...If you comment the code out, it will always be there for reference or in case you want to add it back in again...if you delete it, it's gone forever.
Here's what my memberlist.php looks like for example
Code:
// Limit to a specific group for usergroup leaders
if ($usergroupid)
{
// Begin Comment out Leader Check for Legend
// // check permission to do authorizations in this group
// if (!$leadergroup = $db->query_first_slave("
// SELECT usergroupleader.usergroupleaderid, usergroup.title
// FROM " . TABLE_PREFIX . "usergroupleader AS usergroupleader
// LEFT JOIN " . TABLE_PREFIX . "usergroup AS usergroup ON (usergroupleader.usergroupid = usergroup.usergroupid)
// WHERE usergroupleader.userid = " . $vbulletin->userinfo['userid'] . "
// AND usergroupleader.usergroupid = $usergroupid
// "))
// {
// print_no_permission();
// }
// End Comment out Leader Check for Legend
$leadergroup['mtitle'] = $vbulletin->usergroupcache["$usergroupid"]['opentag'] . $leadergroup['title'] . $vbulletin->usergroupcache["$usergroupid"]['closetag'];
$condition .= " AND FIND_IN_SET('$usergroupid', membergroupids)";
$usergrouplink = "&usergroupid=$usergroupid";
}
else if ($vbulletin->options['memberlistposts'])
{
$condition .= ' AND posts >= ' . $vbulletin->options['memberlistposts'];
}
Everything on the same line as // is ignored...which results in the same thing that deleting it all together would