Open Messaging
This tool provides a 'WhatsApp-like' group discussion forum from a popup on your website. It is good for feedback, but can also be used as a live discussion tool, or a CRM. We actually run our entire operation off one page with several of these popups on it.
The client software is entirely Javascript and CSS, but it refers to an AtomJump server to store messages (this is optionally available as a separate project at http://github.com/atomjump/loop-server, or by default you can use the AtomJump.com server). Supported platforms: IE8 upwards, Edge, Chrome, Firefox, Safari, Android Native, Android Chrome, Android Firefox, iPad, iPhone, Opera. There may be other supported platforms we haven't tested on.
See the demo at AtomJump
You are most welcome to adjust the styling by making changes to the CSS file for your project.
With bower from within the root of your project path:
bower install atomjump
(Or without bower, unpack into your project, edit index.html, and replace bootstrap css and javascript paths as mentioned)
Run atomjump/index.html in your browser. You should see a 'Click me for comments' link. Click this to see the pop-up. For Wordpress instructions, see below.
Look carefully at the index.html example.
The code between
<!-- AtomJump Feedback Starts -->
and
<!-- AtomJump Feedback Ends -->
should be put into your page's <head> section.
Links can be added to the comments with
<a class="comment-open" href="javascript:">Click me for comments</a>
The code
<div id="comment-holder"></div>
must be placed anywhere in the <body> section.
Note: jQuery ver 1.9.1 is used. Other jQuery versions will likely work also.
-
Adjust 'uniqueFeedbackId' value to a unique value to suit your feedback. This can be unique per page or the same throughout the whole site.
-
Obtain the 'myMachineUser' value by following the sub-steps below:
- Settings
- Entering an email/Password
- Click save
- Settings
- Clicking: 'Your password', then 'Advanced'
- Copy the myMachineUser into the myMachineUser value in your html file.
This ensures only you as a logged in user will receive feedback from your site.
- If you wish to, you can enter your mobile phone number under Settings to receive SMS messages when there is any feedback (at a cost of 16c per message. Messages within 5 minutes of each other do not trigger an SMS). If you want to include an sms modify the myMachineUser string on your page to include the 3rd term 'sms' e.g. "123.456.123.32:1200:sms". If you don't include an 'sms', you won't receive sms messages.
If you wish to send SMS messages, we will keep track of messages sent, and charge independently based on usage, on a monthly basis.
You can do this three different ways. The simplest is to set the link's href to '"#comment-open-' followed by the forum name:
<a href="proxy.php?url=https%3A%2F%2Fgithub.com%2F%23comment-open-my_different_forum_name">Open special forum</a>
Or, you can add the 'comment-open' class to a link with an 'id' referring to the forum name:
<a class="comment-open" id="my_different_forum_name" href="javascript:">Open special forum</a>
Or, for further control over the owner of the forum, you can add the following data tags, and enter your own names/ips:
<a class="comment-open" data-uniquefeedbackid="my_different_forum_name" data-mymachineuser="10.12.13.14:2" href="javascript:">Open special forum</a>
Open the messaging forum in your browser.
- Settings
- Entering an email/Password
- Click save
- Settings
- Clicking: 'More', then 'Advanced'
- Edit the 'This forum's private owners' and put in each email separated by a comma.
Note: you can also add individuals with their ip/user id. In this case 'sms' can be added individually to each user to optionally send an sms also.
e.g. "123.456.123.32:1200:sms,123.456.123.32:1201:sms"
Add
"cssBootstrap":"relative/url"
and
"cssFeedback":"relative/url/to/your/css"
to the ajFeedback object.
Note: your css file must be on an https server.
Endpoint https://atomjump.com/api/download.php
Parameters
- email Your AtomJump Loop email address from the standard interface
- pass
Your AtomJump Loop password - uniqueFeedbackId
The particular forum to view. Note: include 'ajps_' at the start of this string for x.atomjump.com forums. - from_id
There is a limit of 2000 records per request. To download more, include the 'id' of the last record, from the previous download request, in this field.
Which returns a JSON object. Included for reporting is a 'sentiment' field which measures how positive the comment is (< 0 negative, 0= neutral, > 0 positive).
Include the following parameters along with 1,2, and 3 above.
-
format
Set to 'avg'
-
duration
Period over which to average in seconds.
The response will be an average over the last period of all the message sentiment values. This will be expressed as a single number eg. 5.324. Note: it can take up to 1 minute before any new message's sentiment will be calculated.
- Install the 'Header and Footer' plugin.
- Install AtomJump using 'bower' as described above in your Wordpress folder.
- Go into 'Settings->Header and Footer', and enter the two sections below (adjusting any paths required to fit your installation)
- Any link's address (i.e. the 'href') on the page can now start with '#comment-open-', followed by the forum name and it will open a popup.
- Copy into the ' SECTION INJECTION' section:
<!-- AtomJump Feedback Starts -->
<!-- Bootstrap core CSS. Ver 3.3.1 sits in css/bootstrap.min.css -->
<link rel="StyleSheet" href="proxy.php?url=https%3A%2F%2Fgithub.com%2Fbower_components%2Fbootstrap%2Fdist%2Fcss%2Fbootstrap.min.css" rel="stylesheet">
<!-- AtomJump Feedback CSS -->
<link rel="StyleSheet" href="proxy.php?url=https%3A%2F%2Fgithub.com%2Fbower_components%2Fatomjump%2Fcss%2Fcomments-0.9.1.css%3Fver%3D1">
<!-- Bootstrap HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="proxy.php?url=https%3A%2F%2Foss.maxcdn.com%2Flibs%2Fhtml5shiv%2F3.7.0%2Fhtml5shiv.js"></script>
<script src="proxy.php?url=https%3A%2F%2Foss.maxcdn.com%2Flibs%2Frespond.js%2F1.4.2%2Frespond.min.js"></script>
<![endif]-->
<script>
//Add your configuration here for AtomJump Messaging
var ajFeedback = {
"uniqueFeedbackId" : "test_feedback", //This can be anything globally unique to your company/page
"myMachineUser" : "92.27.10.17:8", /* Obtain this value from 1. Settings
2. Entering an email/Password
3. Click save
4. Settings
5. Clicking: 'More', then 'Developer Tools'
6. Copy the myMachineUser into here.
*/
"server": "https://atomjump.com/api"
}
</script>
<script type="text/javascript" src="proxy.php?url=https%3A%2F%2Fgithub.com%2Fbower_components%2Fatomjump%2Fjs%2Fchat.js"></script>
<!-- AtomJump Feedback Ends -->
- Copy into the 'BEFORE THE CLOSING TAG (FOOTER)' section:
<!-- Any link on the page can start with '#comment-open-', followed by the forum name and it will open a popup -->
<div id="comment-holder"></div><!-- holds the popup comments. Can be anywhere between the <body> tags -->
For more details see https://atomjump.com
