PDA

View Full Version : Problem in options.php File Damaged BB code!


alain4ever
05-28-2006, 10:20 PM
hi,

I added (Can't Use Private Messages Before X posts) hack, and every thing was ok, but when I changed the Enable the hack from No to Yes, its cause problem in all BB codes!!

All BB code are unselected, but when I select theme and click save, this massage shown:

Warning: Invalid argument supplied for foreach() in /admincp/options.php on line 784

Then, I went to options.php file to find line 784:

foreach ($vbulletin->GPC['setting']["$oldsetting[varname]"] AS $bitval)

this line is from this code:


// **************************************************
case 'memberlistfields':
case 'defaultregoptions':
case 'allowedbbcodes':
case 'postelements':
case 'activememberoptions':
case 'showeaster':
{
$bitfield = 0;
foreach ($vbulletin->GPC['setting']["$oldsetting[varname]"] AS $bitval)
{
$bitfield += $bitval;
}
$vbulletin->GPC['setting']["$oldsetting[varname]"] = $bitfield;
}
break;

// **************************************************




After that, I removed this hack but the problem still there.

Plz, if any one can understand what is the problem, plz help.

alain4ever
05-31-2006, 08:22 PM
up....