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

How to replace / move components ?[Solved] | Forum

Topic location: Forum home » Support » General Questions
Jan Kowalski
Jan Kowalski Dec 4 '14
Hello all
I have problem with replace components / items between  "user dashboard" and "user profile" site.
For example "top users" component  from "user dashboard" move to "user profile".

Can I do it ?

Thanx for help
The Forum post is edited by ross Dec 8 '14
ross Team
ross Dec 4 '14
Top users is widget from a 3rd party plugin, you need to contact plugin developer to find out how to accomplish this. 
Jan Kowalski
Jan Kowalski Dec 5 '14
does it mean that before installing a new widget I can't be sure on what webpage it will be installed? Do I have to have a widget on this particular site or can I move it somewhere else?
 
tammy harris
tammy harris Dec 7 '14
look in plugin activate php 

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


if u want it on dashboard and profile 

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

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



does not work on all plugins 
ross Team
ross Dec 7 '14
Tammy is right, you can check in the activate.php file of the plugin, where it will be displayed, however not all plugins have the functionality in the code to change the place of display. 


As to this questions"Do I have to have a widget on this particular site or can I move it somewhere else?"

I'm not sure I understood you. Please elaborate. 

Jan Kowalski
Jan Kowalski Dec 8 '14
I will try do it.
Taks verry much
Jan Kowalski
Jan Kowalski Dec 8 '14
Unfortunetly changes on this lines are not working.
Even when I delete this line, wdgets are still in thesame places :)
Jan Kowalski
Jan Kowalski Dec 8 '14
Now its working.
Thanks very much
ross Team
ross Dec 8 '14
Great.