Product Support

Custom Template Folder

Provides an update-safe location for all your Participants Database custom templates. Version 2 adds Multisite support.

Product Setup

This plugin creates a location for your Participants Database custom templates in the content directory of your WordPress site. Typically, the location will be:

wp-content/participants-database-templates/

In some cases, the content directory looks different than that, this add-on will place the participants-database-templates folder in whatever the designated content directory is for your WordPress install. Ask your developer or hosting tech support if you don’t know where that is.

For multisite installs, each blog will have it’s own folder within that folder for custom templates.
This plugin is not compatible with the original Custom Templates Folder plugin. See below for instructions if you were using the version 0.3 plugin.

Multisite Support

When using this plugin with multisite, each site will have it’s own directory for templates. Each multisite directory is named using the ID of the blog…for instance:

wp-content/participants-database-templates/blog-1/
wp-content/participants-database-templates/blog-2/

and so forth…

Use with Other Participants Database Add-Ons

Some add-ons offered here use their own templates, for example Field Group Tabs or Member Payments. The Custom Templates Folder add-on works with all these add-ons as well. The main difference is where you get the default template to start with when creating your own custom templates: each add-on that uses special templates will have it’s default templates in a folder named “templates” in the plugin folder. See the add-on’s instructions for the details.

Migrating from version 0.3 to version 2

If you were using the original (version 0.3) of the Custom Template Folder add-on for Participants Database, you must make some changes before using this one. Nothing bad will happen if you don’t, it just won’t work as expected.

  1. This will temporarily interrupt proper display of your Participants Database custom templates.
  2. Install (do not activate) the new Custom Template Folder 2 plugin
  3. Deactivate (but do not delete) the original Custom Template Folder (version 0.3) plugin
  4. Now activate the new Custom Template Folder 2 plugin
  5. Using FTP (or your hosting files manager), locate the template directory in the original Custom Template Folder plugin. The path will in most cases be:
    wp-content/plugins/pdb-custom-templates/templates/
  6. That path is where all your custom templates will be
  7. The 2.0 plugin creates a new directory in the content directory of your site. Typically the path will be:
    wp-content/participants-database-templates/
  8. Move your templates from the old plugin templates directory into the new location
  9. Check your displays, your custom templates should be active again
  10. Once you know the custom templates are working, you can remove or delete the original plugin.

Support Discussions for Custom Template Folder 2.0

  • Hi Roland,
    I’m back for this year’s Earth Day Challenge. But this year, I found a plugin called Calculated Fields Form that allows me to add up points for teams, and other lists that I had to do manually last year. But it has limitations like I can’t login to the database without logging in to WP. I’m pretty sure I can log into just the Participant Database. Right?
    Thanks, Ivy

    • Hi Ivy,

      While it is possible to set up Participants Database so some things can be done without logging in, logging in to WP is really the only way to keep the database interactions secure.

      • I think I didn’t make myself clear. I have to log into WP to set up the site and do backend things. But I want all the participants to only log into the database portion to sign up and update their entries. They don’t need to access the backend so they don’t really need a WP account. Other than calculations, the way Participant Database worked last year was prefect, so I just want to recreate that.
        Thanks, Ivy

        • Ok, well this is set up in the plugin by default so that when someone submits a signup form, they get an email with a private link that will allow them to update their own record.

      • Hi Roland,
        Now it’s coming back to me. I think I got the Participant Login form add-on to make it familiar to the participants.

        I would still like to add points based on a participant’s entries in his record. Is it possible to do that in the “Points” field attribute, where I can add multiply fields dynamically? e.g. turn_off_lights + Unplug_small_appliances + no_idling.

        • You can use the Participant Login form, but you will need to provide you users with some kind of credentials to use in the form.

          At the moment, the only way to do your totals in a field is to use custom code. I have a major plugin update in the works that adds a field that has the ability to calculate totals from the record, it will be a week or more before it comes out, just doing the final testing on it now.

      • Wow! That’s exciting. I can test that feature for you. I hope it can total any fields with a numeric value, such as a checkbox with a ‘1’ when it is checked., and that it has no limits to the number of fields to be added. I have 43 action fields that need to be summed, then multiplied by 10 to convert to points.

        Will the new plugin update include the ability to total across records in a list? I need to create a list of teams, with the number of members and team points, sorted by team points to determine the winner. If so, that would be amazing!!!

        • The Numeric Calculation field can only total values in the record. It can, of course, be expanded with custom code to use values from any source.

          What you’re asking about, a list of teams with members and points sorted by points, is something that will require custom code. Your requirements are just too specific to what you need to be something that would be included in the plugin code.

      • Hi Roland,
        I decided to use another plugin called Calculated Forms Field to generate my team list, but they say I need to tell them the pdb table structure so they can generate the form from the pdb database. I showed them my fields, but they say that’s not it. What are they looking for? The field groups? Something else? Please help.
        Thanks, Ivy

        • They’re looking for the structure of the database table. You’ll need to get into your hosting control panel, look for phpMyAdmin, the table is named wp_participants_database

  • I’m using the Custom Template Folder-PlugIn to build various FrontEnd-Outputs on different pages with different fields to display. One Template should display online the “photo/logo”-field.
    The output (the img-TAG) is wrapped in a SPAN-TAG. So i tried the second parameter ($html = false) of the function … but nothing changes in the output.

    First question: What am i doing wrong.?

    Second question: Is it possible to get only the RAW-URL-String for the image-file (without IMG-Tag-Syntax)?

    Thanks in advance
    Ben

    • Hi Ben,

      Can you be clear about what it is you want? Is the span tag a problem? If so, that will be most easily addressed with some CSS, rather than attempt to change the HTML produced by the field.

      Also, tell me which shortcode you are using where you see the problem, and also the function your are referring too.

      An easy way to get the full URL to an image is to use the “Link Image to Fullsize” preference (plugin settings under the General tab) and then you can get that value with $this->field->link (as long as you do this in the correct place in the template.)

  • Under the Multisearch Field tab, several of the fields are not available (or missing) from the drop-down selection to Add Field to a combo search. Oddly the field group tab shows 9 total fields, but only one is appearing in the drop-down. We did delete the email field. Would that be a critical ID field, even though we do not need it for our database?

    • First, make sure none of those fields are configured to show in the Combo search. A field can’t be in both.

      Deleting the email field can have some detrimental effects, depending on what you’re trying to do, but the plugin does not use the email field to index or identify records, so there’s nothing wrong with deleting it.

Got a Support Question?

You have to agree to the comment policy.

Would you like to be notified of followup comments via e-mail? You can also subscribe without commenting.