myreliefregistry
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] Allow Only One Searchable Field?I would like hide the dropdown, but still let there be two search options. Is that possible? Users will know what the options are already.
Also, in just the option for only letting some fields be available in the dropdown, how should the array be formatted in the argument. I tried a simple ’email, phone’ but that didn’t seen to do the trick.
Forum: Plugins
In reply to: [Participants Database] Display "Help Text" on [pdb_single] pageOk. I created the the custom template, and verified that it was working with the template name in the short code. But when I add that line, it just ends up showing nothing at all on that page. I have it entered like this:
<?php while ( $this->have_fields() ) : $this->the_field(); <?php echo $this->field->help_text ?>Is this correct? And were you saying that this would at least get the text to show up, and it would need to be formatted with HTML and CSS to match the style?
Forum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersThanks for your help! I just had to find a different PHP plugin. The few I had weren’t doing the trick. It ended up working just like it should.
Forum: Plugins
In reply to: [Participants Database] Allow Only One Searchable Field?Could this also be used to allow only a certain number out of the total. For example, if I want to display a phone number, email address, first name, and last name, but I only want people to be able to search by the phone number OR email address, but not the first or last name, would this implementation work?
Forum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersSo taking the first example, which was pulled straight from http://xnau.com/using-participants-database-with-wordpress-users/#respond:
‘user_login’ references the field that was created by putting a hidden field called User Login (user_login) on the signup page with the default value of current_user->user_login. This pulls what the WordPress Users section calls the ‘Username’ and stores in the the Participants database plugin in a field called ‘user_login’. This is then used to reference that Participant and get their ID, using Participants_Db::get_record_id_by_term
I simply copied and pasted from the referenced page. In both cases I pasted above, it is using the WordPress User username a.k.a. user_login, to find the Participants Database User ID a.k.a. record_id.
I only added the second example because I saw you mention it in reply to another user in this thread https://wordpress.org/support/topic/using-participants-database-with-wordpress-users-1?replies=12#post-7311578
I am using current_user->user_login to collect the info in the signup form, and it uses the same reference in the php snippet.
But assuming I am just using the first one, copied and pasted directly from your site, what might be going wrong?
Thank you so much for your help on this.
Forum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersI should also mention that I have the signup form set to save the current user’s ID with a hidden field as referenced in the same page: http://xnau.com/using-participants-database-with-wordpress-users/#respond
If I use the [pdb_record record_id”2″] for example, it shows the editable user information as I’d expect.
Forum: Plugins
In reply to: [Participants Database] Using Participants Database with WordPress UsersI have tried both of the following:
[insert_php] $current_user = wp_get_current_user(); echo do_shortcode('[pdb_record record_id="' . Participants_Db::get_record_id_by_term('user_login', $current_user->user_login, true) . '"]'); [/insert_php][insert_php] echo do_shortcode('[pdb_record record_id="' . Participants_Db::get_record_id_by_term('user_login', $current_user->user_login, true) . '"]'); [/insert_php]with no luck. It just shows the a blank page, with a strange yellow rectangle.
Any idea why this might be happening?