-
Notifications
You must be signed in to change notification settings - Fork 2
Configurations
Configuring SAMBRO for your instance
- SMS Gateway
- Twitter
- Languages
##Lookup values
- To add/remove the drop down values for selecting the in the CAP Information tab, you will need to change the list of languages in the code file: mod/msg/shn_cap_form.inc
$language = array('si_LK'=>_t("Sinhala"),'tm_LK'=>_t("Tamil"),'en_US'=>_t("English"));
Register on https://www.clickatell.com/register/ and generate the api_id to activate SMS gateway.
put your clickatell details in /mo/msg/lib_msg.inc file as mention below
USERNAME - Clickatell user name
PASSWORD - Clickatell password
API_ID - Clickatell api_id
$url="http://api.clickatell.com/http/sendmsg?user=USERNAME&password=PASSWORD&api_id=API_ID&to=$receipient&text=$msg";
Got to the https://dev.twitter.com/ and create the application that entering the required fields and generate the keys to activate twitter for you.
Now put that four keys as mention below in /mod/twitter/handler_tweet.php file
$consumerKey = '';
$consumerSecret = '';
$oAuthToken = '';
$oAuthSecret = '';
Each XSL file that transforms the CAP XML to human readable or technology compliant (e.g. Twitter 140 chars) must be indicated in the /mod/msg/config file as such
- first backup the config file
cp /mod/msg/config /mod/msg/config.bkp
- next edit the config file
nano /mod/msg/config
- match the file names of the corresponding xsl files stored in /res/msg/cap/