It’s not possible to set up a second completely different database, but you can have your two types share the database if you set it up properly. This article explains how that can be done.
“Multiple Databases” with Participants Database
Xnau, I read your documentation.
The problem is that I don’t use a shortcode like “[pdb_signup groups=”common,red”]”, but only like “[pdb_signup groups=”red”]”.
Why do you have two square brackets?
I have a page of Red appear an empty string, was blue.
If I create a plugin-addition to yours, which will create in the database wp_participants_database_1? is it difficult or possible it will be normal to implement? I have knowledge of php and sql with wpdb
It is not possible to have more that one database, but it is possible to simulate it of you use field groups, as explained in the article I linked. The example in there is just meant to show you one way to do it. Your setup will be different. There is no reason why you cannot use completely separate groups for each form.
[pdb_signup groups=”red”]
[pdb_signup groups=”blue”]
no problem.
There is a problem. You know, you CREATE empty posts on pages with red ones when you fill out a form with blue ones.
This is explained in the article I linked: you must set up your list shortcode to only show the red or blue records. This is done using a filter in the list shortcode.
Okay, look – it is shortcode of group “add_transport” – add – [pdb_signup = bootstrap groups = “add_transport”], unhide – [pdb_list template=bootstrap groups=”add_transport” search = true]
it is shortcode of group “main” – add – [pdb_signup = bootstrap groups = “main”], unhide – [pdb_list template=bootstrap groups=”main” search = true]
What’s wrong?
For the list display, you need to use a “filter” to filter out the ones you don’t want to show in that list. To do that, you need to look at some value in the submission that tells you which type of record it is…for example, lets say you have a field named “type” that has a value that tells you what type of submission it is. (in the article this is filled in with the name of the page the signup form is on)
Then, for the “add_transport” group, you might use something like this:
[pdb_list filter=”type=transport”]
then your other one could be
[pdb_list filter=”type=main”]
You’ll have to adapt that to your particular situation, but that is the general idea.
Details on how to use list shortcode filters can be found here: List Shortcode Filters
Thank you very much, i understood!
Tell me, if I buy your plug-in addition to the Date, can I configure the user to put the value in the form of y-m-d?