Hello,
I encountered two bugs within the file "classifieds_usercp.php". From around line 90 I've modified the code like shown below.
The first edit is a fix for the possibility, that no adtype is given (e.g.
http://www.example.com/classifieds_u...php?do=addedit).
The second one is a quick and dirty fix for a permission error, cause the function getCheckMaxAds() did not execute correctly, which means that users who already had maximum number of ads running were able to create unlimited new ones.
Code:
if(!$adtype){
$item["adtype"] = 1;
} else {
$item["adtype"] = $adtype;
}//EDITED so that if no adtype is given we'll make it 1
$item["categoryid"] = 0;
$item["userid"] = $vbulletin->userinfo['userid'];
$checkuserid = $item["userid"];
$docheckmax = getCheckMaxAds($checkuserid);//EDITED cause of permission
Correct me if I'm wrong

Oh, and nice mod, chris!!
All the best,
Alex