Quote:
Originally Posted by UncoderMom
I think the problem is somewhere in here...
Someone wanna take a stab? The mod just says that it cant be redistributed with out giving credit. LOL doesnt say we can fix it if its broke.
PHP Code:
// ********************************************************************** \\
if ( ( $THIS_HOOK == "profile_updateoptions" ) AND ( $permissions["hc_usercountdown"] & $vbulletin->bf_ugp["hc_usercountdown"]["canusecountdown"] ) )
{
$vbulletin->input->clean_array_gpc('p', array( "countdownuserfield" => TYPE_STR,
"cdsettings" => TYPE_ARRAY ));
$cdsettings = $vbulletin->GPC["cdsettings"];
$cdprofilefield = $vbulletin->GPC["countdownuserfield"];
$cddata["enabled"] = $cdsettings[$cdprofilefield . "_enable"];
$cddata["day"] = $cdsettings[$cdprofilefield . "_day"];
$cddata["month"] = $cdsettings[$cdprofilefield . "_month"];
$cddata["year"] = $cdsettings[$cdprofilefield . "_year"];
$cddata["hour"] = $cdsettings[$cdprofilefield . "_hour"];
$cddata["minute"] = $cdsettings[$cdprofilefield . "_minute"];
$cddata["event"] = $cdsettings[$cdprofilefield . "_event"];
$cddata["overmsg"] = $cdsettings[$cdprofilefield . "_overmsg"];
$vbuserfields[$cdprofilefield] = serialize( $cddata );
$vbuserfields[$cdprofilefield . "_set"] = "1";
$vbuserfields[$cdprofilefield . "_opt"] = "";
$userdata->set_userfields( $vbuserfields );
}
|
I don't think $vbuserfields is used anymore, however I'm not a coder so I could be wrong. I'd like to see this work in 3.7.x too, but it probably needs a complete rewrite.