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?
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...
" 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?
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
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.
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
survey-consulting.com
offlinesurveys.com
Feel free to contact me by email for professional LimeSurvey support!
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
Code:
"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.
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?
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
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.
Help us to help you!
Provide your LS version and where it is installed (own server, uni/employer, SaaS hosting, etc.).
Always provide a LSS file (not LSQ or LSG).
Note: I answer at this forum in my spare time, I'm not a LimeSurvey GmbH employee.
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.