Billmel
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Front end numeric searching?P.S. I do not have Strict User Searching turned on, since I do not want this for any other searches.
Forum: Plugins
In reply to: [Participants Database] "Last edited by" capabilityThat’s really helpful, at least for me.
FYI: I think you meant to write “if (isset($post[‘first_name’])) {”
Forum: Plugins
In reply to: [Participants Database] "Last edited by" capabilityCan I suggest that you provide the basics for what what sort of call back function needs to be provided to the add_filter(), and what parameters will be passed to it at callback? I suspect a very simple example could be easily constructed with this, and if that example showed the appropriate return(), it might make this interface more obvious to someone who isn’t a WordPress hacker.
Forum: Plugins
In reply to: [Participants Database] Need to add multiple group names in custom templatesAn approach based on the field excluding code in in the sample record template might work for you:
// define an array of groups to exclude
$exclude_group = array(‘group1′,’group2′,’group3’);<other template code not modified here>
<?php
while ( $this->have_groups() ) : $this->the_group();
// skip any group found in the exclude_group array
if ( in_array( $this->group->name, $exclude_group ) ) continue;
?>It would be great to be able to feed the “filter” on the admin page with as complex a statement as can be used in the shortcodes; i.e. “value<10&other_value!something” Then that particular filter results would be exportable and you’d have what you want.
Forum: Plugins
In reply to: [Participants Database] Duplicate Record Check FieldThat’s the problem; I needed to set it to return an error. Doh!
Forum: Plugins
In reply to: [Participants Database] "Last edited by" capabilityFirst of all, I only need to do this in the front end, so hopefully that makes it easier.
If I insert the code to update the ‘edited_by’ field as you suggest in the while $this->have_fields() loop, it will update the field anytime someone displays the pdb_record form; what I would like to do is do the update only when a change is made to the form.
Thanks!
Forum: Plugins
In reply to: [Participants Database] Duplicate Record Check FieldI have a record with my email in the database. I have set the Duplicate Record Check field to “email”. I then go to a pdb_signup page, and enter a bogus first and last name, and the same email I already have in the database. Upon doing this, the existing record in the database goes away, and the new record replaces it.
Let me know if you need to take a look at my database.
Bill
Forum: Plugins
In reply to: [Participants Database] "Last edited by" capabilityThat should be enough of a hint to get started; Thanks!
Forum: Plugins
In reply to: [Participants Database] Limit on private link request emails?I just finished reading the code, and it looks like you get a total of 3 retrieval requests per IP address per 24 hours unless you are an admin. This seems reasonable, although I think it might be useful to give some visible indication that the limit has been reached, as opposed to silently failing, particularly since this limit isn’t defined in the documentation anywhere that I could find.
Bill
Forum: Plugins
In reply to: [Participants Database] Override Read Only fields?Solved my own problem. You can override a Read Only field by conditionally adding a “$this->field->readonly = 0;” to the field display loop in a custom template. Works as expected!
Bill