Hy kingwithin,
In CompleteProfilePopup.class.php remove:
public $strTemplate = 'Templates/complete_profile_popup.tpl.php';
and
public function btnClose_Click() {
$this->HideDialogBox();
}
then change
class CompleteProfilePopup extends QDialogBox {
to
class CompleteProfilePopup extends QForm {
then
public function __construct($strCloseCallback, $objParentObject, $strControlId = null) {
$this->objUser = unserialize($_SESSION['User']);
parent::__construct($objParentObject, $strControlId);
$this->strCloseCallback = $strCloseCallback;
$this->objUserDetails = UserDetails::LoadById($this->objUser->UserDetailId);
...
to
public function Form_Create() {
$this->objUser = unserialize($_SESSION['User']);
$this->objUserDetails = UserDetails::LoadById($this->objUser->UserDetailId);
...
and in complete_profile_popup.tpl.php change all $_CONTROL to $this.