Check out the LimeSurvey source code on GitHub!

Limesurvey with Wordpress?

More
5 years 1 week ago #74179 by FreedomTrip
I think that clearly the future of LimeSurvey will necessitate a Wordpress plugin to allow for easy integration. Right now, though, I'm trying to figure out how to link the two manually.

I want to only allow registered users on the WP site to be able to access my survey, and only take it once. Can anyone give me a basic idea of how I would link the user profiles from the Wordpress wp-users table with the Tokens and/or user database for LimeSurvey? Is this a realistically possible goal?

Please Log in to join the conversation.

More
5 years 1 week ago #74180 by c_schmitz

Best regards

Carsten Schmitz
LimeSurvey project leader

Please Log in to join the conversation.

More
5 years 6 days ago #74187 by FreedomTrip
Unfortunately, this plugin only syncs users in WP with user accounts in LimeSurvey, so it doesn't mean they can take the tests, it just means they can log in to the admin section...

Please Log in to join the conversation.

More
5 years 6 days ago #74190 by holch
I haven't used the tool, but it says:

" which gives the capability of importing users from WordPress to LimeSurvey and registered users of WordPress site can see the public active surveys in there dashboard and take them as well!"

Doesn't that mean, that the users of your Wordpress site should be able to take the surveys?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 6 days ago #74192 by FreedomTrip
If you read further (and I've tried this out), it says "Make your surveys public (in LimeSurvey!) so that users can see and take them directly through there dashboard in WordPress."

The surveys are required to be public for users to take them...which makes this pretty much useless.
If only there was a way to have them be private and still get this to work, it would be an indispensable plugin.

Please Log in to join the conversation.

More
5 years 6 days ago #74194 by holch
OK, I've read further, but I didn't interpret that passage this way.

I doubt that besides keeping the user databases synced somehow, there is no way at the moment to do this then.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 6 days ago #74220 by Mazi
FreedomTrip, can you explain in more detail how you want to use Limesurvey and how you want both tools to be connected?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 6 days ago #74278 by Steve01
Hello,

I think the problem is that it matches the Wordpress users with the LimeSurvey users and not with the participants in the token table. I had a look at the source code of this plugin ( plugins.svn.wordpress.org/surveypress/trunk/ , file survey-press.php) and found
"SELECT * FROM ".$db_value_prefix."users WHERE users_name = %s AND password = %s", $username, $pwd
in it, there is nothing for communicating with a token table.

The problem might be that users in LimeSurvey are global while participant settings are defined in the token table of the specific survey.

Perhaps we can customize this plugin to do as we want.

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team

Please Log in to join the conversation.

More
5 years 6 days ago #74289 by holch
Maybe when the central participant database is implemented, then it might be worth a look to adapt the plugin to that. I guess it would be a lot easier, though I don't know how exactly tokens are stored at the moment. Is there a table with tokens for each survey?

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 6 days ago #74298 by Steve01
A table "lime_tokens_SID" will be created if you activate "Token management"/"Initialise tokens" .

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team

Please Log in to join the conversation.

More
5 years 6 days ago #74306 by holch
This would probably make it more complicated, as you would have to sync the wordpress users with every single token table. So with a centralized database for participants, you just have to sync these and then check which surveys each user can take.

Wouldn't be too bad to have something like that. Together with Buddypress, this would give new opportunities.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 6 days ago #74319 by Steve01
Yes, I agree, it would be nice. But if I'm correct the "Central Participants Database" feature will be available in LimeSurvey 2.0 so we might have to wait till it is released.

Mit freundlichen Grüßen/Best regards,

Stefan Gohlke
LimeSurvey Team

Please Log in to join the conversation.

More
5 years 6 days ago #74321 by magiclko
Updated the plugin! Now you can choose whether to list 'Private Surveys' in user dashboard or not!

Please Log in to join the conversation.

More
5 years 6 days ago #74322 by holch
I guess we'll survey it... ;-)

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 6 days ago #74324 by holch

magiclko wrote: Updated the plugin! Now you can choose whether to list 'Private Surveys' in user dashboard or not!


Wow, that was fast! I guess I'll have to give this plugin a try. So far I haven't seen the need to use it, but it might be a nice feature and open new opportunities.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form