Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
en:syces:customizing:sms [2015/07/07 15:46] co |
en:syces:customizing:sms [2015/08/05 07:22] (current) co |
||
|---|---|---|---|
| Line 2: | Line 2: | ||
| For sending of user credentials by SMS you need an smstrade account, see ([[en: | For sending of user credentials by SMS you need an smstrade account, see ([[en: | ||
| - | SMS are sent when you choose SMS as a registration method for self-ticketing (see [[en: | + | SMS are sent when you choose SMS as a registration method for self-ticketing (see [[en: |
| after creating accounts manually in the frontend, if you have entered a mobile number for the account. | after creating accounts manually in the frontend, if you have entered a mobile number for the account. | ||
| Line 8: | Line 8: | ||
| Customizing of SMS is done by templates. You need to create one or more templates (use one of the examples below) and edit it/them according to your needs. You can write any text and use any available placeholder (see description below) between the following start and end lines:\\ | Customizing of SMS is done by templates. You need to create one or more templates (use one of the examples below) and edit it/them according to your needs. You can write any text and use any available placeholder (see description below) between the following start and end lines:\\ | ||
| - | <!-- BEGIN SMS --> | + | < |
| + | <!-- BEGIN SMS --> | ||
| - | <!-- END SMS --> | + | <!-- END SMS --> |
| + | </ | ||
| - | + | You can use [[en:syces:frontend: | |
| - | You can use [[en:syces:fronted: | + | |
| all others should be named sms.tpl. | all others should be named sms.tpl. | ||
| - | If you want to provide more than 1 language you have to either use the standard | + | If you want to provide more than 1 language you have to either use the standard |
| - | Testing of your templates is possible in [[en: | + | Testing of your templates is possible in [[en: |
| ===== sms.tpl (default) ===== | ===== sms.tpl (default) ===== | ||
| Line 24: | Line 25: | ||
| This is the template currently used for the sending of SMS. Anything in brackets {} will be replaced. \\ | This is the template currently used for the sending of SMS. Anything in brackets {} will be replaced. \\ | ||
| The good thing is, that the sms is translated to German, English, Italian, French, Spanish, Dutch, Portuguese if necessary.\\ | The good thing is, that the sms is translated to German, English, Italian, French, Spanish, Dutch, Portuguese if necessary.\\ | ||
| - | <!-- BEGIN SMS --> | + | < |
| - | {HEADER} | + | <!-- BEGIN SMS --> |
| - | {BODY} | + | {HEADER} |
| - | {FOOTER} | + | {BODY} |
| - | <!-- END SMS --> | + | {FOOTER} |
| + | <!-- END SMS --> | ||
| + | </ | ||
| ===== template variables ===== | ===== template variables ===== | ||
| + | These also get translated.\\ | ||
| {HEADER}: Dear Mr. < | {HEADER}: Dear Mr. < | ||
| {BODY}: | {BODY}: | ||
| Line 40: | Line 43: | ||
| **example**: | **example**: | ||
| - | <!-- BEGIN SMS --> | + | < |
| - | {HEADER} | + | <!-- BEGIN SMS --> |
| - | {BODY} | + | {HEADER} |
| - | {GREETING} Hotel Sunshine | + | {BODY} |
| - | <!-- END SMS --> | + | {GREETING} Hotel Sunshine |
| + | <!-- END SMS --> | ||
| + | </ | ||
| what you definitely need to send is {USERNAME} and {PASSWORD}\\ | what you definitely need to send is {USERNAME} and {PASSWORD}\\ | ||
| - | <!-- BEGIN SMS --> | + | < |
| - | Hi, to log in use {USERNAME} / {PASSWORD} as username / password. Have fun! \\ | + | <!-- BEGIN SMS --> |
| - | <!-- END SMS --> | + | Hi, to log in use {USERNAME} / {PASSWORD} as username / password. Have fun! |
| + | <!-- END SMS --> | ||
| + | </ | ||