WHAT IS “GEO-TEXTING”?
(def) “Geo-texting” – (verb) the act of inviting individuals by way of textual content to share their location realtime with one another on a personal geomap…uberstyle. Anybody with a smartphone and may textual content to the geo-textual content telephone quantity can play dispatcher and invite individuals to share a geomap. To arrange your personal geo-textual content your personal surroundings, you’ll have to host this plug-in, my newest script PHP Uber-style Geotracking and Twilio’s SMS “texting” providers (www.twilio.com). You’ll be able to attempt it out in my demo setting right here. Simply textual content instructions (under) to 415-360-0886 – FREE! To get began, see “How-To” information here or cllick on “Live Demo” link above.! |
WHAT DOES THIS TWILIO “GEO-TEXT” PLUG-IN DO?
This Twilio “Geo-textual content” plug-in is an add-on to my PHP Uber-style Geotracking script that permits anybody with entry to your Twilio telephone quantity to ask individuals by way of textual content to share their location with others uber-fashion on a personal geomap. As well as the script options dispatcher performance not discovered within the unique geotracking script. This performance consists of managing a number of geomaps, including/deleting geotrackees, renaming maps and geotrackees, pinging geotrackees to replace their location, all from a smartphone utilizing SMS texting.
The script is straightforward to put in – simply unzip contents – 1 file – into the <root>/php/sms folder of your unique PHP Uber-type Geotracking instalation. This requires a Twilio account to ship and course of SMS texts. Configuration directions to hyperlink your Twilio telephone quantity to this plug-in seem under.
NOTE: THIS SCRIPT IS AN ADD-ON AND REQUIRES THE PURCHASE OF MY PHP UBER-STYLE GEOTRACKING SCRIPT. THIS ALSO REQUIRES SIGNING UP FOR A PAID TWILIO ACCOUNT.
This script consists of PHP code that CAN BE USED BY PHP DEVELOPERS AS A TEMPLATE for utilizing SMS TEXTING (utilizing Twilio) because the consumer interface for his or her software program/net purposes. For PHP builders who haven’t explored SMS texting as a consumer interface on your software program (as I’ve carried out right here), it’s value exploring. Texting is one thing everybody is aware of the right way to do (younger, previous and in between) and cuts studying curve of utilizing your software program. (see “Overview of PHP Code” part under for a way code is structured).
QUICK DEMO/START
Utilizing the plug-in is as straightforward as texting an inventory of geotrackees to the script’s twilio telephone quantity (or for demo – 415-360-0886). Click on on “Reside Demo” hyperlink above for extra detailed directions.
- Set up script/plug-in. For demo, textual content to 415-360-0886.
- Merely “textual content” an area or comma separated record of geotrackee e mail addresses or sensible telephone numbers to ask to a personal geomap. The script will textual content you an invite hyperlink (it routinely consists of map proprietor as a geotrackee in each map. It is going to additionally textual content you affirmation which geotrackees have been invited and which of them didn’t (didn’t cross validation).
- So as to add extra geotrackees, proceed to textual content emaill handle and telephone numbers to the plug-in telephone quantity in step 1.
OTHER DISPATCHER FEATURES
Right here is the record of all of the dispatcher options constructed into this script that may be executed by texting instructions to your Twilio telephone quantity in your smartphone. Click on here for screenshots of performance under.
- LIST ALL YOUR MAPS – Textual content “record-maps” or “lm” to the twilio quantity to get a numbered record of maps you personal.
- ADD A NEW MAP – Textual content “new-map” or “nm” to the twilio quantity
- SWITCH ACTIVE MAP – Textual content “change-map” or “sm” after which the map quantity (from “record-maps” listing) to the twilio quantity (e.g. “sm three”)
- RENAME MAP – Give your map a friendlier identify. Textual content “rename-map” or “rm”, adopted by the map quantity after which the pleasant identify you need to give the map. (e.g. “rm 2 My Check Map”)
- DELETING A MAP – Textual content “delete-map” or “dm” after which the map quantity you need to delete adopted by the map quantity you need to delete.
- ADDING A GEOTRACKEE – Textual content “add-geotrackee” or “ag” after which a comma or area separated listing of geotrackee emails and telephone numbers. That is non-compulsory, you’ll be able to simply textual content new emails and telephone numbers. (e.g. “ag new1@dataninja.biz new2@dataninja.biz 4153333333”)
- LIST ALL GEOTRACKEES OF ACTIVE MAP – Textual content “record-geotrackees” or “lg” to get a numbered listing of geotrackees within the lively map. (e.g. “ag new1@dataninja.biz new2@dataninja.biz 4153333333”)
- DELETING A GEOTRACKEE – Textual content “delete-geotrackee” or “dg” and the geotrackee’s quantity from “listing-geotrackee” listing. (e.g. “dg 2”)
- RENAME A GEOTRACKEE – Textual content “rename-geotrackee” or “rg”, the geotrackee’s quantity from “record-geotrackee” record and the geotrackee’s nickname. (e.g. “rg 2 Fortunate Louie”)
- PING ALL THE GEOTRACKEES IN THE ACTIVE MAP – Textual content “ping-geotrackee” or “pg”, then the phrase “all”. (e.g. “pg all”)
- PING AN INDIVIDUAL GEOTRACKEE IN THE ACTIVE MAP – Textual content “ping-geotrackee” or “pg”, then the geotrackee’s quantity you need to ping. (e.g. “pg three”)
- GETTING HELP – Textual content “assist-me” or ”?” to clear all of the maps and geotrackees and reset.
- RESETTING – Textual content “clear-all” or “ca” to clear all of the maps and geotrackees and reset.
HOW DO I INSTALL THIS PLUG-IN?
- In case you have not accomplished so, buy the “PHP Uber-style Geotracker” script from codecanyon.net
- If in case you have not carried out so, set up the script (see ‘Set up Directions’ part within the script’s documentation)
- Buy this plug-in- Twilio “Geo-Textual content” Plug-In
- Unzip the contents of the zip file into the next folder in your set up from step 1 and a couple of (http://<domain root>/php/sms/)
- Go to Twilio.com and join your account (join the SMS product – be sure to buy a twilio telephone quantity on your customers to textual content to)
- Click on on ‘Dashboard’ hyperlink to show Console Dashboard.
- Click on on ‘Programmable SMS’ hyperlink beneath the All Twilio Merchandise part on Console Dashboard.
- Click on on ‘Messaging Providers’ hyperlink on the Programmable SMS Dashbaord web page
- Click on on ’+’ signal on the Messaging Providers web page
- Enter ‘geotracker’ because the pleasant identify and ‘Notifications, 2-Approach’ because the use case
- Verify the ‘Course of Inbound Messages’ verify field and enter https://<your area>/php/sms/obtain.php and save Configure web page
LIST OF TEXT COMMANDS
See desk under for listing of instructions. Examples under are “textual content” instructions which are despatched to the Twilio telephone quantity you arrange throughout set up (or use the demo telephone quantity: 415-360-0886).
LIST OF COMMANDS | DESCRIPTION |
assist-me or hm | get assist or listing of instructions textual content: “assist-me” |
clear-all or ca | clear all my maps and geotrackees textual content: “clear-all” or “ca” |
new-map or nm | create new map textual content: “new-map” or “nm” |
record-maps or lm | record all my maps textual content: “record-maps” or “lm” |
rename-map or rm | rename present map textual content: “rm 2 My Map” |
change-map or sm | change lively map textual content: “change-map three” |
delete-map or dm | textual content: “delete-map 2” |
add-geotrackees or ag | add geotrackees to the lively map (default) textual content: “ag newuser1@dataninja.biz 4154444444” |
record-geotrackees or lg | get record of geotrackees in lively map textual content: “record-geotrackees” |
delete-geotrackee or dg | delete geotrackee textual content: “dg four” |
rename-geotrackee or rg | create nickname for a geotrackee textual content: “rename-geotrackee 2 Cool Dude” |
ping-geotrackees or pg | ping all geotrackee to replace location textual content: “pg 1,2,three” or “pg all” |
or just sort in a comma separated (”,”) listing of e-mail addresses and telephone numbers immediately to ask individuals to an lively geotracking map |
OVERVIEW OF PHP CODE
With this script comes a “template” PHP class that can be utilized as a place to begin for PHP builders to create different conversational Twilio SMS purposes. See under documentation of this PHP class.
CLASS SYNOPSIS
class smsGeotracker
// Properties
personal $twilioFrom; // telephone variety of “texter”
personal $twilioBody; // physique of the textual content
personal $twilioAccountSid; // Twilio Account Sid
personal $twilioAuthToken; // Twilio Auth Token
personal $twilioPhoneNumber; // Twilio Telephone Quantity
personal $sessionActiveMap; // mapkey for present lively map
personal $db; // deal with to database db
personal $urlRoot; // url of script
personal $background; // background colour of geotrackee icon
personal $letter; // assigned geotrackee letter
personal $headers; // e-mail headers<
// Strategies
public perform getTwilioFrom()
public perform setTwilioFrom($twilioFrom)
public perform getTwilioBody()
public perform setTwilioBody($twilioBody)
public perform getUrlRoot()
public perform setUrlRoot($urlRoot)
public perform getLetter()
public perform setLetter($letter)
public perform getHeaders()
public perform setHeaders($headers)
public perform getBackground()
public perform setBackground($background)
public perform getTwilioAccountSid()
public perform setTwilioAccountSid($twilioAccountSid)
public perform getTwilioAuthToken()
public perform setTwilioAuthToken($twilioAuthToken)
public perform getTwilioPhoneNumber()
public perform setTwilioPhoneNumber($twilioPhoneNumber)
public perform getSessionActiveMap()
public perform setSessionActiveMap($sessionActiveMap)
public perform getDb()
public perform setDb($db)
public perform getGeotrackeeCount() // get geotrackee rely
public perform getGeotrackeeTable() // assemble geotrackee desk for e-mail
public perform generateRandomKey($size = 10) // generate random key
public perform validatePhone($phoneNumber)
public perform getMode() // get present mode of operation
public perform getArg($argNo) // get n-th token from command (textual content physique)
public perform getMapkey($arg) // get mapkey of lively map
public perform getMapname($arg) // get mapname of lively map
public perform getMapCreated($arg) // get created date of lively map
public perform sendSms($to, $msg) // ship sms again to “texter”
public perform getActiveMap() // get lively map information
public perform doHelpMe() // do “assist-me” command
public perform doListMaps() // do “listing-maps” command
public perform doClearAll() // do “clear-all” command
public perform doActiveMap() // do “lively-map” command
public perform doSwitchMap() // do “change-map” command
public perform doDeleteMap() // do “delete-map” command
public perform doAddMap() // do “add-map” command
public perform doRenameMap() // do “rename-map” command
public perform doListGeotrackees() // do “record-geotrackees” command
public perform doDeleteGeotrackee() // do “delete-geotrackee” command
public perform doAddGeotrackees() // do “add-geotrackee” command
public perform doPingGeotrackee() // do “ping-geotrackee” command
|
FUTURE IMPROVEMENTS – FROM THE NINJA Unsure if there’s far more so as to add to this script. I’ll need to add some geotrackee viewing restrictions as a way to differentiate between geotrackee’s that may see everybody’s location, with geotrackees that may solely see their very own and in addition hiding proprietor’s location. |
I do plan to create a dispatcher module that makes use of a daily desktop consumer interface for critical dispatching. However unsure of the timing of this. It’s going to in all probability leverage my different scripts together with PHP Dashboards, and so forth. Let me know what you assume by commenting on this script.
-Knowledge Ninja
AUTHOR’S NOTE IN BLOG: see weblog submit – Author’s Note: Twilio “Geo-text” Plug-In
DOCUMENTATION: see weblog publish – Author’s Note: Twilio “Geo-Text” Plug-In
REMINDER ON EXTENDED LICENSES: Only a pleasant reminder that there are two totally different license ranges at codecanyon.internet. The common license is for single FREE consumer use. When you’ve got a number of shoppers or charging shoppers for performance from this script, then an prolonged license is the suitable degree. It’s solely truthful as I do spend lots of time tuning these scripts. And extra gross sales/revenues means I can code extra options and it has come to my consideration that many purchasers are utilizing my script for business (for pay) functions with simply the common license. Thanks for you help. Click on for extra particulars – Regular vs. Extended License Comparison
SYSTEM REQUIREMENTS
- Any browser that helps HTML5/Javascript, jQuery (2.1.four). Examined with Chrome Model forty nine.zero.2623.one hundred ten (sixty four-bit), Safari Model 5.1.7 (7534.fifty seven.2), Web Explorer eleven.zero.9600.18230, Firefox 5.zero.2
- A PHP/MySQL supported webserver is required for jsfiddle options (preview, share, save) and render script choices #three and #four – click on here for phpinfo for PHP/MySQL variations and configuration choices of the server serving up the demo. IMPORTANT: ensure that to match with phpinfo of your set up. Many PHP/MySQL errors stem from configuration choices of buyer php server situations.
- You’ll need a PAID Twilio account and telephone quantity
(See set up directions on this web page to see how to enroll and set up)
VERSION HISTORY – Twilio “Geo-textual content” Plug-In
- VERSION 1.zero (10/02/2017) – Preliminary launch model
- Twilio SMS texting consumer interface for the PHP Uber-type Geotracker script.
- Dispatcher options not discovered within the unique geotracker script. See ’’Listing of Textual content Instructions’ part on this web page for the record of options included on this preliminary model.
My Different Scripts at Codecanyon:
– (BRAND NEW!!!) PHP Daytrader’s Candlestick Pattern Hunter
– PHP Uber-style GeoTracker
– PHP Dashboard v4.0 Collaborative Social Dashboards
– PHP Dashboard v2.7 – Responsive Carousels/D3js/Highcharts/Highmaps/MySQL
– PHP Dashboard v3.0 – For Mobile Devices
– HTML5 Cloud Dashboard Designer
– HTML5 Streetmaps
– PHP Streetmaps
- About Author – Data Ninja at Codecanyon.net
- Data Ninja Portfolio at Codecanyon.net
- Data Ninja’s WordPress blog
- Data Ninja’s Youtube Video Channel
- Knowledge Ninja’s E mail:: dataninja.at.codecanyon@gmail.com
OTHER LINKS
The post Twilio “Geo-text” Plug-In (a PHP Uber-style Geotracker Add On) (Social Networking) appeared first on Free Script Download.