Michael Simpson
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form DB] Recommendation: one form name vs multiple formsIs there a way to combine the info from both tables into one line?
You would have to code a transform to merge the data into one row.
I think you have this same question on a different thread where I responded.
Forum: Plugins
In reply to: [Contact Form DB] Filter is not workI would avoid spaces in the name of your input tags.
If you add to your shortcode
debug=trueIt shows you some information about how it parses the filter.
Forum: Plugins
In reply to: [Contact Form DB] Redirect after form submissionThat is a question for your form plugin, not CFDB.
Forum: Plugins
In reply to: [Contact Form DB] New DatabaseI don’t follow completely, but you can add custom PHP code:
Inbound: form submission:
Changing Form Data Before it is Saved
– you can use this hook to add code you want, including querying the data from other forms. There isn’t a specific API for updating & deleting data.Outbound: displaying information – you can query data from two or more forms at a time like they are one form simply by setting form=”form1,form3″. You can create custom transform function and transform classes to manipulate the data coming out of a shortcode. Or you can create your own shortcode.
Forum: Plugins
In reply to: [Contact Form DB] [cfdb-html] template file not found[cfdb-html form="booking" filter="Submitted Login=$user_login"] {{BEFORE}} <table class="table table-bordered"> <thead> <tr> <th>#</th> <th>first Name</th> <th>Last Name</th> <th>Email</th> <th>Phone</th> <th>Vehicle</th> <th>Trip Type</th> <th>Pickup Location</th> <th>Destination</th> <th>Pickup Date</th> </tr> </thead> <tbody> {{/BEFORE}} <tr> <th scope="row">${id}</th> <td>${first-name}</td> <td>${last-name}</td> <td>${your-email}</td> <td>${phone}</td> <td>${vehicle}</td> <td>${trip-type}</td> <td>${pickup-location}</td> <td>${destination}</td> <td>${pickup-date}</td> </tr> {{AFTER}} </tbody> </table> </body> {{/AFTER}} [/cfdb-html]Forum: Plugins
In reply to: [Contact Form DB] How to add up to [cfbd-count]I first suggest removing
// <![CDATA[
and its closing
// ]]The WP editor seems to be replacing the open and close brackets [] around the shortcode with their HTML character codes. Consequently WP does not see [] and does not recognize this as a shortcode and nothing happens.
You might try deleting the [] character in WP Editor Text mode and typing them in again.
Forum: Plugins
In reply to: [Contact Form DB] Horizontal scroll on shortcodecheck datatables.net site for help.
Forum: Plugins
In reply to: [Contact Form DB] Recommendation: one form name vs multiple forms(B) is your best choice, but you might get along OK with (A).
In (A), if you want to use a shortcode to query all the forms for a name, then all all form names like:
[cfdb-table form=”form1,form2,form3,form4″]
That makes all those forms looks like one form.
It helps if all forms have the same field for the name so you can set a filter on the shortcode like:
[cfdb-table form=”form1,form2,form3,form4″ filter=”name=xxxx”]the downside of (A) is that you can’t search for an event in the filter.
So (B) is a better choice because it ensures the same field names and gives you a field to search on for the event itself.
The form HTML and the shortcode example shown on the page that I cited, you paste into a post (use Text mode for the editor, not Visual)
Forum: Plugins
In reply to: [Contact Form DB] Need Syntax for Filtering GET parameter and User IDSo you have:
– Form entries with field affiliate=7
– A user with login id = 7When that user is logged in, he should be able to see those entries using
[cfdb-table form=”MY FORM” filter=”affiliate=$ID”]turn on debug to show what $ID evaluates to:
[cfdb-table form=”MY FORM” filter=”affiliate=$ID” debug=”true”]Forum: Plugins
In reply to: [Contact Form DB] How to add up to [cfbd-count]What exactly does the script tag look like in your post?
What exactly does the script tag look like when you view the page source in the browser after viewing the resulting post?
Forum: Plugins
In reply to: [Contact Form DB] Need Syntax for Filtering GET parameter and User IDAssuming your form data has an “affiliate” field and your URL contains an “affiliate=7” GET parameter:
[cfdb-table form=”MY FORM” filter=”affiliate=$_GET(affiliate)”]
Forum: Plugins
In reply to: [Contact Form DB] New DatabaseThat is a bit complicated. The plugin is just captures data, it does not manage relationships among them.
Start here: http://cfdbplugin.com/?page_id=680