Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
PHP
Tree: 9980710379

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
plugins
README.md
class.ls-pass.php
class.ls-users.php Commit changes
gp-config.php
license.txt

README.md

GlotPress & LimeSurvey Integration

This repository includes files to help in making GlotPress use the LimeSurvey users.

Installation

  1. Just put the all the three files located in the root of this repository in the GlotPress installation root directory.
  2. Modify gp-config.php - must edits: Database configuration, especially CUSTOM_USER_TABLE constant below in the file for the LimeSurvey Users table name.
  3. Install GlotPress. Now, for permissions, do either of these:
    1. Make all superadmins in LimeSurvey administrators in GlotPress - put the attached permission.php in plugins folder and uncomment the last line.
    2. Make only some people in LimeSurvey administrators in GlotPress - run this query - INSERT INTO gp_permissions (id, user_id, action, object_type, object_id) VALUES (NULL , '1', 'admin', NULL , NULL); (assuming gp_ is the prefix you've chosen) where the corresponding user_id is the user id in lime_users table whom you want to make the admin in GlotPress.

Hacking

The modifications to the original classes were done on GlotPress r683.

  1. Refer to this commit to see how the core files were modified to suit the needs.
  2. Refer to this blog post to know more.

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b gp-ls-integration)
  3. Commit your changes (git commit -m "Fixed X Bug/Added X Enhancement")
  4. Push to the branch (git push origin gp-ls-integration)
  5. Create an Issue with a link to your branch
  6. Enjoy a refreshing Diet Coke and wait
Something went wrong with that request. Please try again.