Najad Owners Association Website
When a member logs in, Memberpress re-directs them to the member-message page.
Member Message page
has the shortcode with a snippet id=8693
[8693] has Title of ‘Display Member Message’
It gets the users name from WordPress and checks PDB to see if a record exists.
If no record exists, it asks the user to go to Members Details and enter their boat details. If record does exist then it redirects the user to the home page.
Page – Members Details
This page calls the snippet [8415]
[8415] – Add or Amend PDB Record
This routine gets the users WordPress username, firstname, lastname, email.
It then scans the PDB database to see if that user has a record on PDB.
If the user is not on PDB it initialises the PDB record.
It creates a new record with the users ‘username’, ‘firstname’, ‘lastname’, ’email’, ‘boat_name’, ‘boat_model’, ‘boat_owner’, “build_year’, ‘home_port’, ‘latlong_required’, ‘brief_description’.
The user now has a file with some information created by the system.
The system then asks the user to click on Members Details again.
When the user clicks on Members Details again or if the user has previously created a record, then the system allows the user to amend their record. They can even upload a single photo for the Members Yachts page.
After the user amends their record, his previous google placemark is deleted and replaced with the new google placemark as specified by the users Latitude and Longitude. Certain specified information is also entered via the placemark.
Thank You Page
When a new member joins, after payment of the fee MemberPress sends them to the Thank You page. The Thank You page asks the user to complete their member details. It doesn’t re-direct the user.
[8791] – Transfer WP Users to PDB
This routine will transfer all WordPress users to PDB. It basically adds those WP users to an empty PDB database. It is more or less a one time run routine.
Page – Flag Missing Lat & Longs
Sends user to [8688]
This routine will check all users in PDB and those with Lat and Long at 0 will have the PDB field ‘latlong_required’ set to ‘Yes’
[8745]-Initialise PDB User Record – Now Deleted
$current_user=wp_get_current_user();
$wp_username=$current_user->user_login;
$user_id=Participants_Db::get_record_id_by_term(‘username’,$wp_username);
if(empty($user_id)) {
$data=array(‘username’ => $wp_username,
‘boat_name’ => ‘Zero Name’,
‘latlong_required’ => ‘Yes’);
Participants_Db::write_participant($data);
}
Najad Owners Association Website
When a member logs in, Memberpress re-directs them to the member-message page.
Member Message page
has the shortcode with a snippet id=8693
[8693] has Title of ‘Display Member Message’
It gets the users name from WordPress and checks PDB to see if a record exists.
If no record exists, it asks the user to go to Members Details and enter their boat details. If record does exist then it redirects the user to the home page.
Page – Members Details
This page calls the snippet [8415]
