PLEASE DO NOT USE THE SUPPORT FORUM FOR FEATURE REQUESTS!!
You may submit new features here:
https://stephensherrardplugins.com/support/forum/feature-requests/
This plugin lets you create a custom member (or staff) directory, along with an associated contact form, for your organization. Create as many positions and members (staff) as you like. Each person can have multiple positions, and each position can have multiple members (staff).
You can also enable and add locations, allowing you to set up different directory listings and contact forms for multiple locations or offices. Members can belong to more than one location. Locations can be set with either shortcode arguments or URL arguments from links.
The directory list is displayed by position, and positions can be sorted on the admin options page with a simple drag and drop interface.
The contact form can be set up to select an individual, a position, or both. If a position is selected, all members who hold that position (and who have a valid email) will be emailed the message. Vacant positions, and individuals without a valid email, will not be shown on the contact form.
There is built-in integration with the Contact Form DB plugin so any form submissions (that pass validation and spambot check) will be saved to the database via the CFDB plugin.
Detailed Help tabs for all admin screens for the plugin
Version 1.4 adds a new role "PTA Manager" which has all the same capabilities as the Wordpress "Editor" role, but also adds capabilities to manage this and other PTA plugins settings. This allows you to give control of the settings of this plugin to somebody else in your organization without giving them full admin level access.
The directory has a variety of options for customization:
- Choose the heading to display for "Position" in the directory (e.g., you can choose to show "Title" instead of "Position")
- Choose the heading to display for "Location" in the directory and contact form (e.g., "Office", "City", "Branch", etc.)
- Contact form contact select drop down can be configured to display individuals, positions, or both. If you choose "both", there are nice headers to separate positions and individuals.
- You can choose to show full names, only first names, or nothing, after positions on the contact form select box, which will show for each person that holds that position
- You can also choose to show the positions a person holds after their name when showing individuals on the contact form.
- You can also choose to show locations after each person's name on the contact form
- Use the shortcode to put the directory on any page and dynamically generate a contact form. Or, use a separate shortcode for the contact form so it can also be used independently of the directory (the directory will then use that page for the contact form)
- Choose to show or hide phone numbers in the directory
- Choose to show emails in directory OR a link to the contact form (which then passes the position or individual to the contact form, so the recipient selection is already made)
- Choose to hide the directory from the public, so that only logged in users can see it. You can also choose the minimum user level to view the directory (subscriber or contributor)
- Type in your own message to display on screen after the contact form has been submitted (HTML formatting allowed)
- Choose to diplay images in the directory, and pick the size of the images. If you display images, then the images will link to the individual member/post page. Members are a custom post type, and the full editor for them is enabled, so you can create a bio page for each member. The Featured Image is the photo that will be displayed in the directory, when photos are enabled.
- Enable or disable Contact Form DB integration, and choose the form title to post to CFDB.
Extract the zip file and just drop the contents in the wp-content/plugins/ directory of your WordPress installation and then activate the Plugin from Plugins page.
== Frequently Asked Questions ==
Can this plugin do (insert a feature request here)?
Can you add (insert a feature request here)?
PLEASE DO NOT USE THE SUPPORT FORUM FOR FEATURE REQUESTS!!
This plugin has a lot of options and features, but I have been getting overwhelmed with feature requests recently. This plugin already does MUCH more than I originally intended, and more than we needed for our own school PTA web site. I have created some extensions that I thought would be helpful to the largest number of people, which you can find at:
http://stephensherrardplugins.com
PLEASE USE THE FEATURE REQUEST FORUM TO REQUEST NEW FEATURES!!
http://stephensherrardplugins.com/support/forum/feature-requests/
I have a lot of members to display. Can I paginate results or have a search box?
Version 1.6.8 adds support for the Member Directory DataTables extension, which utilized the jQuery DataTables plugin to make your directory table searchable, sortable, paginated, and responsive. You can also select a jQuery UI theme and add custom CSS to further style the appearance of your directory.
Is there any documentation or help on how to use this?
A help tab has been added to the Member Directory admin section. Click on the Help tab in the upper right to show the help tab. There are sections covering each Member Directory admin screen, as well as how to set up shortcodes and custom links for both the directory and the contact form.
I'm getting a Wordpress Mail Error when submitting the contact form, or emails are not getting delivered
This is a server issue and has nothing to do with the contact form or this plugin. Version 1.2 added the Wordpress Mail Error message to let you know that the built-in Wordpress mailer (wp_mail) returned an error. This means that your server is not compatible with the built-in Wordpress mail function. You can use one of the many SMTP mail plugins, that change the Wordpress Mail function to use SMTP for sending emails. Since this plugin uses Wordpress Mail, any of those plugins that modify Wordpress Mail to use SMTP should work with this plugin to fix your mail errors. Note that some of those SMTP plugins will change the reply-to address to equal the from address instead of the address of the person filling out the contact form.
How do I display the directory on a page?
Place the shortcode [pta_member_directory] on the page where you want the directory. You can use shortcode arguments to specify a location or position. You can download a free extension to automatically generate the shortcodes for the directory and contact form, along with properly formatted arguments for location or position, from my plugins site at:
http://stephensherrardplugins.com
How do I use the contact form?
If you want to use the contact form instead of displaying emails in the directory, make sure the "Use Contact Form?" option is checked. This will replace all email addresses in the directory with a "Send A Message" link. Clicking on that link will automatically generate the contact form on the same page, with the recipient already selected.
However, you can also use the shortcode [pta_member_contact] to put the Contact Form on its own separate page. This will allow you to use the contact form independently of the directory. If you then select the page with your contact form on the options page, when you click on "Send A Message" in the directory, the link will take the user to the contact form page with the recipient field already selected.
There is also a new shortcode to create a simple admin contact form without the recipient select box. Just use the shortcode [pta_admin_contact] . All messages sent from that form will go to the site\'s admin email. You can also force a simple admin contact form by passing in -1 as the id in a contact form link, such as:
http://yoursite.com/your_contact_form/?id=-1
Additional shortcode arguments for the contact form have been added in version 1.5 to allow you to specify an ID for a specific member as well as to hide the recipient select box, so that you can hard-code contact forms for specific members. For example, if you enter content (such as bio) for a member and set the directory to link to member posts, you could embed a contact form shortcode for each member on their own post so visitors can contact them directly from the bio pages without having to select a recipient.
Simplify the shortcode generation by downloading the free extension, PTA Shortcodes, from my plugin site at:
http://stephensherrardplugins.com
Can I add more fields to the contact form? Or use a different contact form?
At this time there are no built-in options for adding additional fields to the contact form. However, there is a Gravity Forms extension available which will allow you to create your own contact form with the very powerful Gravity Forms. The extension will prepopulate a recipient select box in your Gravity Forms from existing members and positions, pre-select one of those recipients based on links/arguments passed to it, and will alter the notification email to address to make sure the message gets sent to the correct recipient. The Gravity Forms extension is available at:
https://stephensherrardplugins.com
Is there any spam protection? There is no captcha field?
I'm not a fan of captcha as I often can't even read them myself, and it makes setup a bit more complicated since you need to obtain and enter a key for a captcha service. Instead, I used the honeypot method of spam protection. There is a hidden spambot field that normal visitors won't see, but spambots will fill in. Any form submission that has that spambot field filled in will be rejected.
How can I change the text that appears in the member directory or contact form?
As of version 1.3.6 a filter hook has been added for almost all text that is output to the public side of the member directory and contact form. There is some information in the help tab in the admin section on how to use this, and there are now 2 files in the main directory of this plugin, output-filters.php and output-filters.txt, that provide all the information and sample code needed to modify any of the text strings. If you are not comfortable with PHP or adding code to your theme\'s functions.php file, there is a very simple Customizer add-on extension plug-in available at
https://stephensherrardplugins.com
How do I make a contact link for an individual or group on other pages of my site?
Just create a link to your contact form page (the page with the [pta_member_contact] shortcode), and include an argument for the id of the individual or group you want to be pre-selected on the contact form. For example, to link to an individual number, you set the id equal to the member directory ID of the member, which you can see in your list of all members. If the ID is 101, then your link should look like:
http://yoursite.com/your_contact_form/?id=101
If you want to select a position to contact all members who hold that position, use the slug version of the position. You can see the slug for each position from the list of Positions on the admin side. For example, if you want the contact form to be pre-selected for the position of President (slug would be simply president), your link would look like:
http://yoursite.com/your_contact_form/?id=president
How do I show a directory for a specific location?
If you want a directory for a specific location on its own page, add the location argument to the directory shortcode, and use the slug version of the location you want to show. For example:
[pta_member_directory location="seattle"]
If you want a single directory page that you can use to show all locations, but also can show a specific location, use the regular directory shortcode without the location argument. If someone goes directly to that page, they will see the full directory for all locations. But, if you set up links to that page with location arguments in the URLs, you can show a specific location. You could, for example, set up navigation menu items for each location, all going to the same directory page, but with different location argument. For example, if you want to show a directory for Seattle, the link would be something like:
http://yoursite.com/your_directory_page/?location=seattle
Can I add custom fields to the directory?
Hooks and filters are in place to allow the creation of custom fields. This requires a significant amount of programming and knowledge of how to create inputs and save data from custom meta boxes on the admin post editor page for the custom post type. I have created an add-on Custom Fields plugin extension for this that allows you to create any number of custom fields, with 4 different field types (text, link, file, textarea), and 3 output locations for these fields (after name, after email, and after the last column). You can have more than one custom field in each location as well, so you are only limited by how many fields you want to try to fit into the directory table. This plugin extension is available at my new site:
http://stephensherrardplugins.com
Version 1.5.1 also now supports the Descriptions extension, which will grab any content you put into the description box for each Position, and either display it as a new column in the directory, or put a tooltip icon with pop-up description dialog next to position names that have description content. Our school PTA wanted to list job description and responsibilities for each position to help people decide what to volunteer for in the new school year, so I put created this extension, which can be found at:
http://stephensherrardplugins.com