Posted on by

Placing Dynamic Shortcodes using do_shortcode()

Sometimes it is necessary to place a shortcode where the attributes of the shortcode are set according to the current context. For example, if you need to show a logged-in user the list of records that belong to them, you need to use a dynamic shortcode something like this: echo do_shortcode(‘ First NameLast NameClub RoleCityStateMain… (read)

Posted on by

Generating Unique Member IDs for New Registrations

Update 1/16/19: this plugin had to be rewritten to work with versions of Participants Database later than 1.8.0. I often get questions about how to set up member IDs in Participants Database. It is possible to use the built in “id” or “private_id” fields, but in most cases, you’ll want to be able to generate… (read)

Posted on by

Matching Multiple Fields with CSV Import or Signup Submission

When importing a CSV, it is possible to configure it to match and update existing records. The same process can also be used when a new record is submitted via the signup form. Normally, this is done by matching a single identifying field such as an ID or email address. In some cases, it’s desirable… (read)

Posted on by

Using the PDb_Template Helper Class in a Custom List Template

The PDb_Template helper class makes setting up a custom display for a Participants Database record much easier in situations where you don’t want to just loop through the values. Sometimes you don’t want to treat each value the same, you want to lay out each value in a way that fits the information better. This… (read)

Posted on by

Changing the Length of the Private ID

Participants Database uses a “private id” value as a key for users to edit their own record. The plugin uses a short 5-character code for this purpose, it’s not meant to be airtight security, just something impractical to guess. Some administrators may want to use a larger term for their install, and it’s possible to… (read)

Posted on by

Populate a Form Dropdown from the Database

Sometimes, you want to give the user the ability to select from a list if things that are in the database, rather than a fixed set of options as defined in the field definition. This will require some simple PHP along with a database query, but once you get the idea, a lot of other… (read)