Difference between revisions of "Board18Players2"

From BOARD18 Project WIKI
Jump to navigation Jump to search
(2.1)
(Issue 228 - Remove "Send Broadcast" function)
 
Line 1: Line 1:
{{ReleaseNoticeX|2.1|Design_Document_board18Players_Page}}
{{ReleaseNoticeX|2.7|Design_Document_board18Players_Page}}
The board18Players2 script contains the Email functions  
The board18Players2 script contains the Email functions  
for the board18Players page.
for the board18Players page.
Line 20: Line 20:
of the send email button in the oneemail form.  
of the send email button in the oneemail form.  
It checks the input for missing fields and then
It checks the input for missing fields and then
does an ajax call to emailPlayer.php.
does an ajax call to emailPlayer.php.
 
==Function sendBroadcast()==
Function sendBroadcast checks the input for missing fields and then
and then does an ajax call to emailPlayer.php for every player in
the players table.

Latest revision as of 05:32, 2 June 2021

This page has been updated to comply with Release 2.7.x of BOARD18. Go Back

The board18Players2 script contains the Email functions for the board18Players page.

Function emailPlayerResult(response)

Function emailPlayerResult is the call back function for the ajax calls to emailPlayer.php and emailPlayerAll.php. It may have to process returns from multiple emails for the same call. It only needs to check for errors and it only needs to report the first error.

Output from emailPlayer.php and emailPlayerAll.php is an echo return status:

 "success" - Email sent.
 "fail"    - Uexpected error - This email not sent.


Function doEmail()

Function doEmail is called by the on-click method of the send email button in the oneemail form. It checks the input for missing fields and then does an ajax call to emailPlayer.php.