View pdb-wp-user-shortcodes.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: PDB WP User Shortcodes | |
* Description: defines several shortcodes for use with Participants Database and WordPress Users | |
*/ | |
class PDb_User_List_Shortcodes { | |
/** | |
* @var string name of the user ID field |
View pdb-check-link-match.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: PDB Check Link Field for Duplicate | |
* Description: make sure a new record does not match the link of an existing record | |
* Version: 1.1 | |
*/ | |
// this filter checks the submission | |
add_action( 'pdb-incoming_record_match_object', 'xnau_check_for_link_match' ); | |
View pdb-list-sort-columns.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @version 1.0 | |
* | |
* template for participants list shortcode output | |
* | |
* this demonstrates how to add a click-to-sort header to the list | |
* | |
*/ |
View pdb-autocomplete-cache.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: PDB Autosuggest Term Cache Set | |
* Description: shows how to set the cache time for the Combo Multisearch autrosuggest term list | |
* | |
*/ | |
// set the cache time to 1 second, effectively bypassing it | |
add_filter( 'pdbcms-autosuggest_term_list_expiration', function( $cache_time ) { return 1; } ); |
View pdb-custom-format-tag.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: PDB Custom Format Tag | |
* Description: shows how to add a custom formatting tag for use in a Participants Database calculated field | |
* Version: 1.0 | |
* Tutorial: https://xnau.com/using-custom-format-tags-for-calculation-fields/ | |
* | |
* this requires Participants Database version 2.4.8 or later! | |
*/ |
View pdb-generate-member-id.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: PDB Generate Member ID | |
* Description: provides a unique ID for new signups and new records in Participants Database | |
* Version: 2.1 | |
*/ | |
class pdb_generate_member_id { | |
/** |
View pdb-multi-field-match-import.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Plugin Name: PDb Multi-Field Match Import | |
* Description: Demonstrates how to set up a multiple-field match when a signup form is submitted or importing a CSV to Participants Database | |
* Version: 2.0 | |
* | |
*/ | |
class PDb_Multifield_Match_Import { | |
/** |
View pdb-record-approval-switch.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* when the user opens their record for editing, we check on their approval status | |
* and then select the shortcode to use based on that. | |
*/ | |
switch ( $this->participant_values['approved'] ) { | |
case 'yes' : | |
echo do_shortcode( '[pdb_record]' ); | |
break; |
View pdb-email-cron.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: PDB Email Cron | |
* Plugin URI: https://xnau.com/?p=7354 | |
* Description: Provides a basic framework for setting up an automated Participants Database email send | |
* Version: 1.0 | |
* Author: xnau webdesign | |
* Author URI: https://xnau.com | |
* License: GPL2 |
View pdb-custom-sum.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Plugin Name: PDB Custom Log Sum | |
* Description: calculates a summary value for a participant log | |
*/ | |
class pdb_custom_log_sum { | |
/** |
NewerOlder