RedTyger Website Design, Hosting and Domains

Fyi - beta throwing errors for sig and profile edits .

In Discussion , Project Tools , vB Ad Management , Bug .

plugin tossing errors in signature and profile edits

Category: Unknown
Affected Version: 4.00 Beta
Priority: 7
Type: Unconfirmed
Fixed Version: 5.01 Beta

Subscribe to this issue 101 fyi - beta throwing errors for sig and profile edits by RedTyger.

Comment quotation: 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

Reported here:
http://www.vbulletin.org/forum/showp...postcount=1708

Submitted at 13:35, 22nd November, 2007.

Are you able to reproduce this bug?