PHP Classes
elePHPant
Icontem

Xaja Notifier: Notify user browsing a site in real time with AJAX

Recommend this page to a friend!
  Info   View files Example   Screenshots Screenshots   View files View files (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-10-14 (1 year ago) RSS 2.0 feedStarStarStar 57%Total: 429 This week: 1All time: 6,059 This week: 686Up
Version License PHP version Categories
xaja-notifier 1.0.0MIT/X Consortium ...5.0PHP 5, Databases, Content management, A...
Description Author

This package can notify user browsing a site in real time with AJAX.

It takes AJAX requests that perform long polling to send notification messages to users browsing the current site pages.

Browser side JavaScript code can receive the messages immediately and display them to the user.

The package provides an administration interface that can send messages to the users queueing them in a database.

Recommendations
Innovation Award
PHP Programming Innovation award nominee
November 2015
Number 3
Sites like for instance social networks send notifications to the users to let them know about new content, new messages, or actions that they need to take.

This package implements a solution to send notifications to users using AJAX so they can be aware of new notifications without having to load a new page.

Manuel Lemos
  Performance   Level  
Name: Ettore Moretti <contact>
Classes: 11 packages by
Country: Italy Italy
Innovation award
Innovation award
Nominee: 3x

Details

xajanotifier

What is XajaNotifier? XajaNotifier is a solution designed to send notifications to users browsing your site in real-time. Using the technique of reverse ajax through the implementation of long polling.

What I could use? Could be very useful in case you want to send any message to all your users online fast and non-invasive.

How do I configure? Db side, import the table that you will find in the package. Server side, change configurations to connect to the db in config.php. Client side configuration is the only one in the script js, where you specify the server address.

Known issues - deliberately (to make scripts as customizable as possible) has been given the opportunity to inject JavaScript code in the message

if not you need it, you may want to inhibit such a possibility ... 
File NotificationSender.php 
Replace: 
	$XS->SendNotification($notification,$uid);
with:
	$XS->SendNotification(htmlentities($notification),$uid);
Screenshots  
  • ServerAdminPanel.png
  • ClientWait.png
  • ClientNotification.png
  Files folder image Files  
File Role Description
Files folder imageCLIENT (1 file, 1 directory)
Files folder imageSERVER (3 files, 3 directories)
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file Xaja_db_export.sql Data sql export

  Files folder image Files  /  CLIENT  
File Role Description
Files folder imagejs (1 file)
  Accessible without login Plain text file index.php Example Example script

  Files folder image Files  /  CLIENT  /  js  
File Role Description
  Accessible without login Plain text file XajaClient.js Data Auxiliary data

  Files folder image Files  /  SERVER  
File Role Description
Files folder imagecore (3 files)
Files folder imageimg (4 files)
Files folder imagejs (2 files)
  Accessible without login Plain text file AdminNotificationControlPanel.php Example Example script
  Accessible without login Plain text file HttpLongPoll.php Example Class source
  Accessible without login Plain text file NotificationSender.php Example Class source

  Files folder image Files  /  SERVER  /  core  
File Role Description
  Accessible without login Plain text file config.php Conf. Configuration script
  Plain text file XajaAdminServer.php Class Class source
  Plain text file XajaServer.php Class Class source

  Files folder image Files  /  SERVER  /  img  
File Role Description
  Accessible without login Image file asc.gif Icon img
  Accessible without login Image file bg.gif Icon img
  Accessible without login Image file desc.gif Icon img
  Accessible without login Image file refresh.jpg Icon img

  Files folder image Files  /  SERVER  /  js  
File Role Description
  Accessible without login Plain text file dialog.js Data Auxiliary data
  Accessible without login Plain text file tablesorter.min.js Data Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 60%
Total:429
This week:1
All time:6,059
This week:686Up
User Ratings User Comments (3)
 All time
Utility:81%StarStarStarStarStar
Consistency:68%StarStarStarStar
Documentation:43%StarStarStar
Examples:56%StarStarStar
Tests:-
Videos:-
Overall:57%StarStarStar
Rank:1470
 
This is a handy package and has many, many uses.
1 year ago (Terry Woody)
70%StarStarStarStar
This is just nice nothing else
1 year ago (Samuel Ladapo)
60%StarStarStarStar
This is just nice nothing else
1 year ago (Samuel Ladapo)
60%StarStarStarStar