View Single Post
Old August 18th, 2005, 05:24 AM   #9 (permalink)
Chuck S
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,654
This is just a check to make sure you cant delete groups by accident that are suppose to be there

Now note this is only if your trying to delete something you should not

You only have a delete link is if its an internal install

if ($Globals['vbversion'] == "sellerspost" ) {
$addhtml = "<span class=\"{$Style['medium']}\"><b>(<a href=\"{$Globals['maindir']}/adm-misc.php?admact=usergroups&amp;ppaction=usergroups&amp;do=add\">Add a New
Usergroup</a>)</b></span>";
}
else {
$addhtml = "<span class=\"{$Style['medium']}\"><b>(<a
href=\"{$Globals['maindir']}/adm-misc.php?admact=usergroups&amp;ppaction=usergroups&amp;do=refresh-vb\">Refresh usergroups from your forum software?</a>)</b></span>";
}

So your issue is real simply here. You may not delete a usergroup on a classifieds install that is a default group. You can delete extra ones you add. Hense the restriction of

if ($Globals['vbversion'] == "sellerspost") {
if ($usergroupid < 6) {
diewell("You can't delete this usergroup.");
}
}
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is online now   Reply With Quote