We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

cannot pull avatar | Forum

Dave
Dave Apr 25 '15
Hi i am trying to pull the avatar for my chat  but it is not working can
someone point me in right direction.
<?php
define('_OW_', true);
define('DS', DIRECTORY_SEPARATOR);

$str = dirname(__FILE__);
$str = substr( $str, 0, strrpos( $str, '/' ) ) . '/xxx/';
define('OW_DIR_ROOT', $str );

require_once(OW_DIR_ROOT . 'ow_includes' . DS . 'init.php');
@include OW_DIR_ROOT . 'ow_install' . DS . 'install.php';

OW::getSession()->start();
$application = OW::getApplication();
$id = OW::getUser()->getId();
        $pUrl = BOL_AvatarService::getInstance()->getAvatarUrl($id);
        if(empty($pUrl))
if ( OW_PROFILER_ENABLE || OW_DEV_MODE )
{
    UTIL_Profiler::getInstance()->mark('before_app_init');
}

$application->init();


thanx dave