REPOST: Facebox not working with Qcodo

thread: 2 messages  |  last: a year ago  |  started: thursday, february 11, 2010, 10:33 am pst


#1  |  kingwithin (San Francisco, CA) United States of America
Thursday, February 11, 2010, 10:33 AM PST

Hi,

I followed the instructions several days ago and it still doesn't appear to be working and not getting anything through Firebug.  Thoughts?

http://stackoverflow.com/questions/2186486/getting-facebox-to-work-in-the-qcodo-qcube-php-framework

#2  |  Gaspar Attila (Odorheiu Secuiesc, RO) Romania
Thursday, February 11, 2010, 4:06 PM PST

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.




Copyright © 2005 - 2012, Quasidea Development, LLC
This open-source framework for PHP is released under the terms of The MIT License.