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

Show widget only for particular account type | Forum

Topic location: Forum home » Support » General Questions
Abzal
Abzal Dec 18 '14
Hi,


i have two account types: 
User

Company


and i need to show the rating widget only on profiles of "company".


How can i do that?



May be i can create a variable for this account type and write code like this:

   {if accountType="company"}


widget code


{/if}


Thanks for everyone who viewed this topic.


Hope to get the feedback fast.

ross Team
ross Dec 18 '14
Abzal, widgets can be restricted for view only for user roles. In your case you can create a separate user role for each account type, for example user roles User and Company and make the widget visible for one of them in the settings of the widget. 
Abzal
Abzal Dec 19 '14

Quote from ross Abzal, widgets can be restricted for view only for user roles. In your case you can create a separate user role for each account type, for example user roles User and Company and make the widget visible for one of them in the settings of the widget. 
thanks for reply, but the plugin i am using doesnt have widget on admin page->profile view BUT it has the actual widget on each profile. So the solution is to open the code and insert there IF user role ="company" and etc. 

Hope to get the answer, thanks :)
ross Team
ross Dec 21 '14
In this case you will need to contact plugin developer as this is code modification.