How can we help?

Home > Integrations > Turnitin Partner Integrations > Moodle > Moodle Basic > Administrator User Manual > Installation and Configuration

Installation and Configuration

The interface to the Turnitin servers uses an ssl connection; openssl must be installed before the Turnitin plugin can be set up.


For Moodle 2.0 and above openssl and curl both need to be installed before the Turnitin plugin can be set up.


You must first unzip the plugin before it can be installed. The unzipped file will contain a folder labeled Turnitin and a read me file. You will need to copy the Turnitin folder onto the Moodle server. Copy it into the base of the moodle directory into the type folder. The location will look something like this: /mod/assignment/type.

Language Pack Update

 

For Moodle 1.9.5 and below, the Turnitin assignment type must be added to the language pack for installation. Find the language pack you are using and edit the assignment.php file with the addition below:

.../moodle/lang/<language>/assignment.php
$string[‘typeturnitin’] = ‘Turnitin’ ;


Optionally, you can also add this line:

$string[‘helpturnitin’] = ‘<Your Text Here>’


The text that has been entered will appear to every user after they create or modify a Turnitin assignment as a disclaimer or notice to alert the user to what is the current type of assignment. If it is not set, then helpturnitin will appear for the user.


For Moodle 1.9.6, the Turnitin assignment type must be added to the language pack for installation.

$string[‘typeturnitin’] = ‘Turnitin’;
Should be added in the following files:
lang/<language>/assignment.php
lang/<language>/assignment_turnitin.php (this file will need to be created if it does not already exist)


Optionally, you can also add this line:

$string[‘helpturnitin’] = ‘<Your Text Here>’

For Moodle 2 and above, the Turnitin assignment type must be added to the language pack for installation.

$string[‘typeturnitin’] = ‘Turnitin’;


Should be added in the following files:

lang/<language>/assignment_turnitin.php (this file will need to be created if it does not already exist)


The lang folder is located within the plugin file downloaded from Turnitin: /mod/assignment/type/lang/


To add other languages simply add a new lang/<language> folder in which to place the assignment_turnitin.php file. For example if you would like to access Turnitin in French you would create the folder lang/fr/assignment_turnitin.php.


For Moodle 2.3 and above, you will need to unhide the “Assignment 2.2” module type for use. Once this is done, Turnitin may be chosen as an assignment type when instructors set up activities from the Moodle Course home pages.


To unhide the assignment type, navigate to the activity module configuration screens. (Site administration -> Plugins -> Activity modules -> Manage Activities). Click the eye icon on the “Assignment 2.2” row, turning it from a closed eye (hidden) to a open eye (available).

 

Configuration of the Interface

 

Open up lib.php (tiilib.php for Moodle 2.0) found in the Turnitin folder .../assignment/type/turnitin/lib.php and configure the following values:

// CONFIGURE SECTION FOR SETUP
//=====================================
define(“TII_AID” ,<AID>);
define(“TII_SHAREDKEY” ,<SHARED KEY>);
define(“TII_WEBSERVICEURL” ,<WEBSERVICE>);
define(“TII_LOGGING” ,<LOGGING>);
//=====================================

 

Example:

 

// CONFIGUREABLE SECTION FOR SETUP
//=====================================
define(“TII_AID” ,99999);
define(“TII_SHAREDKEY” , ‘testkey’);
define(TII_WEBSERVICEURL” , ‘http://www.inst.ac.uk /moodle/mod/
assignment/type/turnitin/ws/dispatcher.php’);
define(TII_LOGGING” ,1);
//=====================================

 

Definitions

 

  •  TII_AID - The Turnitin Account Identifier. Used to target calls to the Turnitin Account
  •  TII_SHAREDKEY - The MD5 validation key provided through the configuration of the Turnitin account details
  •  TII_WEBSERVICEURL - The web service URL on the Moodle installation. The target for interface callbacks. Must point to the dispatcher.php script
  •  TII_LOGGING - The parameter that switches on and off the TII logging facility in the interface within Moodle. When switched on the API and Web Service calls are logged into the directory as ‘log.txt’
You must to post a comment.
Last modified
11:59, 18 Dec 2014

Tags

Classifications

(not set)