Yeah, I thought about it. Thank's.
But it still didn't work.
I've posted this:
Code:
if ( ( ! file_exists( JPATH_SITE . '/libraries/CBLib/CBLib/Core/CBLib.php' ) ) || ( ! file_exists( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' ) ) ) {
echo 'CB not installed'; return;
}
include_once( JPATH_ADMINISTRATOR . '/components/com_comprofiler/plugin.foundation.php' );
cbimport( 'cb.html' );
cbimport( 'language.front' );
and then this:
Code:
value="<?php
//$cbUser =& CBuser::getInstance($user->id); if (!$cbUser) $cbUser =& CBuser::getInstance(null); echo $cbUser->getField('cb_phone');
?>"
Then I simply user SQL to pull the phone number from users DB entry. This worked, but for future, I would like to understant why echo
Code:
$cbUser->getField('cb_phone');
is not working .