public function displayShoutbox() { $shoutboxInfo = $this->menuItemObj->objShoutbox->get_info(); $shoutboxInfo['width'] = $shoutboxInfo['width'] <= 0 ? $this->defaultShoutboxWidth : $shoutboxInfo['width']; $blnShoutboxWidthPercent = $shoutboxInfo['percentwidth'] ? true : false; $shoutboxInfo['height'] = $shoutboxInfo['height'] <= 0 ? $this->defaultShoutboxHeight : $shoutboxInfo['height']; $blnShoutboxHeightPercent = $shoutboxInfo['percentheight'] ? true : false; $shoutboxObj = new Shoutbox($this->MySQL, "news", "news_id"); $newShoutboxID = uniqid("mainShoutBox_"); $this->data['shoutboxIDs'][] = $newShoutboxID; $shoutboxObj->strDivID = $newShoutboxID; $this->arrShoutBoxIDs[] = $newShoutboxID; $shoutboxObj->prepareLinks($this->memberObj); echo $shoutboxObj->dispShoutbox($shoutboxInfo['width'], $shoutboxInfo['height'], $blnShoutboxWidthPercent, $shoutboxInfo['textboxwidth'], $blnShoutboxHeightPercent); echo $shoutboxObj->getShoutboxJS(); }