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

Plugin question | Forum

Shaun
Shaun Dec 6 '20

Does anyone remember the plugin Friend Sugestor?


The item has been suspended so I no longer have access to the support forum and would like to move the Widget from the User's profile to the user Dashboard.


I remember it was a fairly simple and easy thing to do but I just cannot remember which file in what folder needed to be edited.


Can any one remember or help?


Thanks


Shaun

Sumate
Sumate Dec 6 '20

In the script activate.php


Change 
$placeWidget = BOL_ComponentAdminService::getInstance()->addWidgetToPlace($widget, BOL_ComponentAdminService::PLACE_PROFILE);


to


$placeWidget = BOL_ComponentAdminService::getInstance()->addWidgetToPlace($widget, BOL_ComponentAdminService::PLACE_DASHBOARD);

The Forum post is edited by Sumate Dec 6 '20
dave Leader
dave Dec 8 '20

Anytime you change widgets or anything in the activate file be sure you deactivate the plugin first or you will get errors beause the old data is still in the db... and when it cant find it, youll get errors.


deactivate

change

reactivate

Shaun
Shaun Dec 9 '20

Thank you both for your input, All done and seems to be working perfectly.


Cheers