• Dear developer can I create 2 tables in the plugin?
    I have 2 pages, 1 stores the table with “red” users, and 2 with “blue”, also for blue and red two different forms of addition which are absolutely different and have no similarity. but when one of the red or blue adds an entry, the page displays an empty line and it does not look nice

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author xnau webdesign

    (@xnau)

    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

    Thread Starter vipplayer

    (@vipplayer)

    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?

    Thread Starter vipplayer

    (@vipplayer)

    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

    Plugin Author xnau webdesign

    (@xnau)

    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.

    Thread Starter vipplayer

    (@vipplayer)

    There is a problem. You know, you CREATE empty posts on pages with red ones when you fill out a form with blue ones.

    Plugin Author xnau webdesign

    (@xnau)

    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.

    Thread Starter vipplayer

    (@vipplayer)

    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?

    Plugin Author xnau webdesign

    (@xnau)

    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

    Thread Starter vipplayer

    (@vipplayer)

    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?

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Second table’ is closed to new replies.