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 can i display the profile question in a plugin? | Forum

Stephan Van der Vaar
Hi everyone!

Can you help me?


I want to display the profile questions in a plugin.


For example

if the code to display the username is the next:


$this->userId = $userId;


$username = BOL_UserService::getInstance()->getUsername($userId);

        $this->assign('username', $username);


What is the code to display another profile question?


for example, one question created by me!



The Forum post is edited by Stephan Van der Vaar Nov 2 '13
ross Team
ross Nov 11 '13
Topic was moved from General Questions.
Daisy Team
Daisy Nov 20 '13
Daryk, first it would be better if you create your own profile question on the plugin installation process, otherwise if somebody install this plugin while the profile question doesn't exist, the error will occur. You can use the following methods to create a profile question:

$questionService = BOL_QuestionService::getInstance();
$languageService = BOL_LanguageService::getInstance();


We suggest that you download our new Plugin Skeleton plugin to see how the profile questions system works. Here is URL to the Store item: http://www.oxwall.org/store/item/695
The Forum post is edited by Daisy Nov 21 '13
Stephan Van der Vaar
Daisy Thanks so much, I try with this method and I tell you again!.