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

Display Avatar Image in Dashboard Page | Forum

Guna
Guna Oct 28 '14
Currently User Avatar Image is displaying in user profile section. I need to display in Dashboard Page's right section. In Which file I need to edit it? Please help


For Profile Photo Widget, How they added this widget to Profile page?

The Forum post is edited by Guna Oct 28 '14
Guna
Guna Oct 31 '14
Daisy has given the answer through chat. I provide it here so that others may find it is helpful.


 simply add the code provided below to the very bottom of the /ow_system_plugins/base/init.php file, refresh the page (http://domain/admin/user-dashboard) - remove the code and refresh the page again:

$widget = BOL_ComponentAdminService::getInstance()->addWidget("BASE_CMP_UserAvatarWidget");
$widgetPlace = BOL_ComponentAdminService::getInstance()->addWidgetToPlace($widget, BOL_ComponentAdminService::PLACE_DASHBOARD);
BOL_ComponentAdminService::getInstance()->addWidgetToPosition($widgetPlace, BOL_ComponentAdminService::SECTION_LEFT, 0);

Guna
Guna Oct 31 '14
Solution found for this question. Thanks for Daisy