WordPress.org

Plugin Directory

PTA Member Directory and Contact Form

Create and display a member/staff directory and contact form. Sortable list of staff by position/title. Spambot protected contact form. Many options.

Version 1.6.6

  • Minor code fix for undefined variable on admin side when using Gravity Forms extension.
  • Confirmed compatibility with WordPress 4.2.1
  • Confirmed that all URLs generated with add_query_arg were already being properly escaped, so no issues with the recently discovered XSS vulnerability with the add_query_arg function.

Version 1.6.5

  • Minor query fix to allow use of purely numerical positions or locations.

Version 1.6.4

  • Added missing close div to the contact form wrapper.

Version 1.6.3

  • Added wrapper div and classes to the headings for the contact form.
  • Minor change in the output of the WordPress nonce field on the contact form.

Version 1.6.2

  • Due to continuing conflicts for the limited number of custom post type menu positions in the normal location (has to be an integer), I have changed the menu position yet again to a large, and hopefully not used by any other custom post type, menu position number. WordPress needs to fix this issue in the core code so menus items don't disappear when two of them have the same menu position! In the meantime, the Member Directory admin menu will move much further down the list.
  • Added a div wrapper around the member directory table with class: ptamd_directory_table and added classes to the h3 headers for position or location that show up when you specifiy a position or location in the shortcode. Those h3 classes are: ptamd_position_header and ptamd_location_header . This allows you to target elements of the directory table with your own CSS to modify the appearance.
  • If you're using a responsive theme that doesn't handle tables well on small screens, you can create your own CSS styles to restyle the Member Directory table using the updated CSS classes and the new div container. If that doesn't work for you, I have created a simple and lightweight plugin that simply loads the jQuery Stacktable plugin from John Polacek and applies that to ALL tables on the public side of your site (it automatically stacks table columns on smaller screens). You can download that free from my plugins site.

Version 1.6.1

  • Minor change to admin menu position to avoid conflict with another plugin that specified the same position.

Version 1.6

  • Adds a transient time and IP check to contact form processing to prevent multiple submissions of the contact form due to the user hitting refresh and re-submitting the form, or from theme & other plugin issues tha may cause the contact form to be processed more than once.
  • Tested for compatilbility with WordPress version 4.0

Version 1.5.3

  • Minor change to the way contact links for individuals are generated to work better with certain permalink structures.

Version 1.5.2

  • Adds some additional logic checking to the member directory contact links. If the contact form is set to show only positions, but you click on an individual member "send message" link, we need to change the id argument to be the position instead of the individual id, otherwise the contact form won't work properly since it's expecting position name slugs instead of numerical member ids in this case.
  • Adds a check to make sure PTA Manager role is added and Admin has manage_pta capability if plugin was upgraded without the activation function being triggered. If the role and capabilitiy wasn't added, the options and sort positions pages for the plugin may not appear unless you deactivate and reactivate the plugin.
  • Supports the Descriptions extension available at https://stephensherrardplugins.com

Version 1.5.1

  • Minor filter hooks change for upcoming extensions compatibility

Version 1.5

  • Allow id argument for contact form shortcode, so you can create a contact form for a specific member on their own page or post (can be used in each member's post content area)
  • Added a "hide_select" argument to the contact form shortcode that will not show the recipient select box if set to "true" AND if an id argument is set in the shortcode or passed in via a link.
  • Additional hooks added for extensions

Version 1.4.0

  • Add PTA Manager Role - same as Editor role but with added capabilities to manage PTA plugins
  • Additional hooks added for extensions

Version 1.3.9

  • Readme.txt cleanup. No functional changes after 1.3.8

Version 1.3.8

  • Added wp_reset_postdata() to end of directory display loop to fix extra post display issues with some themes.

Version 1.3.7

  • Minor Action/Filter hook updates for extensions

Version 1.3.7

Version 1.3.6

  • Added option to show/hide "more info..." link in photo column for members with post content
  • Added option to link member name to member post page if member has post content
  • Added filter hooks for all text that is output to the public side for the Directory and Contact Form, to make it easy to modify displayed text without using a translation plugin or editing the plugin files. See FAQ or Help Tabs for details. Customizer add-on to make modification of text super simple is available as an extension!
  • Help tab update
  • Include translation file that was missing from last update

Version 1.3.5

  • Fixes for translation
  • Fix to not display warning on contact form if no positions have been created yet and Debug is on
  • Includes French translation by Dan bp-fr.net

Version 1.3.4

  • Bug fix for compatibility with WordPress versions older than 3.5 (still need at least 3.3, though). Only affects WordPress versions before 3.5 (you really should upgrade!).

Version 1.3.3

  • Added shortcode argument for position for both directory and contact form shortcodes. Allows you to show a directory list for only the specified position, or a contact form that only sends email to the position as a group recipient
  • Small fix for compatibility with WordPress versions older than 3.5 (still need at least 3.3, though).
  • Additional hooks and filters for plugin extensions

Version 1.3.2

  • Added on option to turn on or off adding the blog title to the subject line for the emails sent by the contact form.
  • Added/improved hooks and filters for extension by other plugins
  • Relaxed shortcode argument handling - can enter either the Title or slug for location arguments in shortcodes
  • Added sender name, sender email, and sender IP info to contact form message body. Useful if you are using another SMTP mail plugin which might overwrite our header info, thus setting the from and reply-to address to your admin mail instead of the sender's name and email
  • Fixed directory display issue where it was limiting the number of members shown for each position to the max number of posts you had set per page on the WordPress Reading settings page.

Version 1.3.1

  • Important fix for the new lastname logic. Found situations where the lastname meta field could get wiped out, and the member would not show at all in the directory. This patch fixes that, but you will need to edit each affected member and hit update (don't actually have to change anything) to force it to update the member post meta info.

Version 1.3

  • Added a new option to show/hide the Send Group A Message text link on the directory.
  • Added some additional logic to try to figure out the last name from the member name (post title) in the cases where people use a suffix after a comma, or even if you enter the last name first and then a comma and first name. It will now ignore any characters after the first comma it finds, and then pick the last word in the string from anything before that comma (assuming words are separated by spaces). See the Help dropdown from any Member Directory Admin page for more.
  • Organized the options page better now that we have quite a few options

Version 1.2

  • Added a new shortcode to generate a simple admin contact form. Use [pta_admin_contact] to generate a simple contact form without the recipient checkbox. This contact form will send an email to the site admin email address.
  • Added error checking to wp_mail function for sending the contact form email. If you get a WordPress Mail Error message, you will know that there is an issue with your server mail settings. If there is no error, but emails are still not being delivered (check junk/spam folders) you may want to install a plugin like Easy WP SMTP to allow WordPress to send mail via SMTP instead of the PHP mail function.
  • If there are no positions or members in the directory, output a message on the directory page instead of the table headers with an empty table
  • Other minor code improvements

Version 1.1

  • New option to force table borders (plus a little padding) in the directory for themes that don't show borders by default (and for users who don't want to edit the theme CSS styles themselves). Border color and size, plus cell padding, can also be set.
  • Changed contact form CSS class from "contact-form" to "pta-contact-form" to avoid any conflicts with other contact forms
  • Minor error checking fix on contact form
  • Strip any slashes from sanitized form fields before sending emails
  • Added filter and action hooks for extensibility

Version 1.0.2

  • Fixed wrong include path for help tabs

Version 1.0.1

  • Help tabs file didn't get uploaded with 1.0.

Version 1.0

  • Added Locations to allow showing directories or contact form for a specific location, office, branch, etc.
  • Locations can be set with arguments in the shortcodes to set up fixed directory/contact pages for each location, or locations can be passed in as an argument in a link.
  • Added an option to enable/disable showing of Vacant positions
  • Added detailed help tabs to admin side pages

Version 0.7

  • Fixed syntax on load_plugin_textdomain for proper translation setup

Version 0.6

  • Added option to show full name or only first names after positions on contact form
  • Some extra escaping on form POST data

Version 0.5 * Minor housekeeping and readme.txt cleanup - no functional changes

Version 0.4

  • Added integration with Contact Form DB plugin
  • Updated the option for specifying the contact page to be a simple drop down selector of existing pages
  • Added a bit of CSS to fix directory table layout on some themes
  • Modified default options checking on activation to account for new options added in upgrades
  • Added code to make sure themes allow thumbnails and featured images for the member custom post type

Version 0.3

First public release

Requires: 3.3 or higher
Compatible up to: 4.2.2
Last Updated: 2015-4-28
Active Installs: 1,000+

Ratings

4.9 out of 5 stars

Support

3 of 3 support threads in the last two months have been resolved.

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1 100,1,1
100,1,1
100,1,1
100,1,1 100,1,1 100,1,1
100,1,1
100,1,1 100,1,1
100,1,1 100,1,1
100,1,1 100,1,1 100,1,1
100,1,1 0,1,0
100,1,1
100,1,1