on the 4.0 beta, i was having difficulty with the plugin tossing errors in signature and profile edits, even though i'd set it to not show ads on the profile page globally. it was just when i tried to edit a sig, etc. with this turned on. i was able to hack around it using the following code with my changes commented "dlv", using your conditional from elsewhere so it didn't even check for the autointegrate for these pages. -
Code:
//start hack to drop the error for profile edits dlv
if (THIS_SCRIPT != 'profile' && ($_REQUEST['do'] == 'editoptions' || $_REQUEST['do'] == 'editprofile'))
{
//endstart hack to drop for profile edits dlv
foreach($adintegrate_fields['1'] AS $adintegrate_find)
{
$adintegrate_replace = $global_getshared["$adintegrate_find"];
// This user's custom field is empty or they're banned from sharing, use the admin's default.
if (empty($adintegrate_replace))
{
$adintegrate_replace = 'adintegrate_'.$adintegrate_find;
$adintegrate_replace = $vbulletin->options["$adintegrate_replace"];
}
$adintegrate_preg_find[] = "/<!-- begin ad -->(.*)#$adintegrate_find#(.*)<!-- end ad -->/siU";
$adintegrate_preg_replace[] = "<!-- begin ad -->$1$adintegrate_replace$2<!-- end ad -->";
}
//hack ending_if statment to drop adds for profile edits dlv
}
//endofhack to drop for profile edits dlv