-
Notifications
You must be signed in to change notification settings - Fork 71
Installing the Wordpress plugin
This page serves as a guide to developers who want to install the SBTK Wordpress plugin. Note that this is an experimental plugin.
There are two ways of installing the plugin; the first (and more tedious) method is described below, and involves you cloning this repository and then manually copying the needed files into place. The second method is easier; just download the latest build and copy the plugin into your Wordpress plugins directory.
Step 1: Clone the SocialSDK repository.
Step 2: Under the Wordpress plugins directory (PATH TO INSTALL DIR/wp-content/plugins/) create a folder called ibm-sbtk. Inside this folder, create a sub folder called core. Inside core, create a sub folder called system.
Step 3: Copy the contents of SocialSDK/php/php-core-1.0/src/ into wordpress/wp-content/plugins/ibm-sbtk/core (exclude /php-core-1.0/src/models/SBTKSettings.php, /php-core-1.0/src/samples/* and /php-core-1.0/src/views/*).
Step 4: Now we deploy the plugin. Copy the contents of SocialSDK/php/wordpress-plugin-1.0/src/ to wordpress/wp-content/plugins/ibm-sbtk/.
Step 5: Replace the core header with the header provided by the plugin: Copy the header.php from SocialSDK/php/wordpress-plugin-1.0/src/views/includes/ into wordpress/wp-content/plugins/ibm-sbtk/core/views/includes/header.php (replacing the existing header.php).
Step 6: Now deploy the front page controller: copy index.php from SocialSDK/php/php-core-1.0/src/ into wordpress/wp-content/plugins/ibm-sbtk/core/
Step 7: Log into your Wordpress administrator page and go to "Plugins" -> "Installed Plugins". Activate the plugin called Social Business Toolkit integration plugin.
Step 8: Go to "Settings" -> "IBM Connect Settings". Ensure that your endpoint is configured correctly. Click "Save".
Step 9: Go to "Appearance" -> "Widgets". Drag the desired SBTK widget onto your page.
Step 10: Done.