Chat box on Home Page.

Good Day,

OK... I understand how to add a php block.  But when I add the following to the content in my database table sys_page_compose...

 

<----------------snippet----------------------------------------------->

require_once( BX_DIRECTORY_PATH_MODULES . $aModule['path'] . '/classes/' . $aModule['class_prefix'] . 'Module.php');

global $_page;
global $_page_cont;

$iId = ( isset($_COOKIE['memberID']) && ($GLOBALS['logged']['member'] || $GLOBALS['logged']['admin']) ) ? (int) $_COOKIE['memberID'] : 0;
$iIndex = 57;

$_page['name_index']    = $iIndex;
$_page['css_name']              = '';

$_page['header'] = _t('_chat_page_caption');
$_page['header_text'] = _t('_chat_box_caption', $site['title']);

$oChat = new BxChatModule($aModule);
$_page_cont[$iIndex]['page_main_code'] = $oChat->getContent($iId);

PageCode($oChat->_oTemplate);

<-----------------------------------------end snippet--------------------------->

 

I get a blank page when the PHP block is active.

Does anybody have a suggestion?

Thanks in advance,

Thomas

Quote · 12 Aug 2011

That appears to be page code. Used for creating a page. Not something that should be placed in a php block.

What is it your trying to do?

https://www.deanbassett.com
Quote · 12 Aug 2011
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.