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 GET PROFILE QUESTIONS BASED ON USER ACCOUNT TYPE? [Solved] | Forum

Guna
Guna Sep 22 '14
I arranged Profile Questions for each account type in the admin panel. 


I am creating a plugin for user registration in the front-end where the default new user account type is "Student".


How to get profile questions based on Account type?


$questionService = BOL_QuestionService::getInstance();
$questions = $questionService->findAllQuestionsForAccountType('290365aadde35a97f11207ca7e4279cc');
is listing questions for a specific account type.


Any ideas friends?


The Forum post is edited by Daisy Jan 19 '15
Daisy Team
Daisy Oct 21 '14
Guna, please check the /ow_system_plugins/base/controllers/user_search.php file. Here you can find the method which can be used to get the list of questions belonging to the certain account type. Search for the MainSearchForm class.
Guna
Guna Dec 30 '14
I found the solution. Please mark this question as solved.