SMS Sender
This module enables sending SMS from ExpressionEngine frontend pages.
To send SMS, you will need to use third-party SMS gateway service. Currently following are supported: Twilio.
Sending the message
{exp:sms_sender:form}
{exp:sms_sender:form}
<p>Message:
<textarea name="message"></textarea>
</p>
<p>Recipients:
<textarea name="recipients"></textarea>
</p>
<p><input type="submit" value="Send SMS" /></p>
{/exp:sms_sender:form}
Tag parameters:
- return — a page to return to after submitting the form. Can be a full URL or URI segments.
Use return="SAME_PAGE" to return user to the page used to display this form. - skip_success_message="yes" — force redirect to return page without showing success message.
- ajax="yes" — turn on AJAX mode. The success or error messages shown upon submission will be shown as simple text, without using message templates. The "return" parameter will not be functional if you supply this parameter.
- id — form ID (defaults to 'sms_sender_form')
- class — form class (defaults to 'sms_sender_form')
- name — form name (defaults to 'sms_sender_form')
Form fields:
- message — SMS message text
- recipients — list of recipients phones (in internation format). Put each number on new line, or separate with comma
Log of sent messages
{exp:sms_sender:log member_data="yes" custom_fields="yes"}
{if count==1}
<div class="box2">
<div class="header">
<div class="t">
<h3>MY BOOKMARKS</h3>
</div>
</div>
<ul class="broadcasters">
{/if}
<li>
<a class="img" href="{path=entry/{url_title}}"><img src="{photo_url}" alt="{title}" /></a>
<div class="text">
<a href="{path=entry/{url_title}}">{title}</a>
{if description}<p>{description}</p>{/if}}
</div>
</li>
{if count==total_results}
</ul>
</div>
{/if}
{/exp:bookmarks:entries}
{exp:bookmarks:entries} tag will display all channel entries bookmarked by user.
Tag parameters (all optional):
- member_id — ID of member to fetch bookmarks. Defaults to logged in user
- username — alternatively, you can specify username istead of member_id
- group_id — set this parameter to Channel ID if you want to restrict output to entries from certain channel
- site_id — you can restrict output to certain site. Defaults to current site. Separate multiple site_id's with a pipe |
- custom_fields="yes" — if set to "yes", will also parse custom fields data for bookmarked entries
- member_data="yes" — if set to "yes", will also parse entry author's data
- prefix — optional prefix for variables. Ex. if you set prefix="bookmark" you'll be able to use {bookmark:title} instead of {title}
- sort — sorting order. Possible values are 'asc', 'desc' (default) and 'random'
- return_ids_string — return ONLY pipe-separated string ot entry_ids (1|7|15|26) as {ids_string} variable
Single variables:
- remove_url — URL that user can click to remove entry from bookmarks
- bookmark_date format="%Y-%m-%d" — the date when entry was favorited
- entry_id
- title
- url_title
- entry_date
- and other standard entry fields
Additionally, if you have custom_fields="yes" set then all custom entry fields are parsed.
If you have member_data="yes" set then entry author's standard member profile fields are also parsed.