cbrendlinger
Forum Replies Created
-
Forum: Plugins
In reply to: [Participants Database] database groupJohann,
ok… What I did for the pdb-single was to define two arrays… one for each of my groups (I only use two). The first array contains a list of fields that I exclude from group 1 and the second array contains a list of fields that I exclude from group 2 because otherwise all fields would print from both groups.
&exclude_group1=array('field1', 'field2');
&exclude_group2=array('field3', 'field4');
Then I determine which group I am working with so that I can display the correct fields:
<?php if ($this->record->main->fields->type->value != 'group1') $myarray = $exclude_group2; else $myarray = $exclude_group1; ?>
And then this piece of code further down will check the fields properly (should already be in the template):
‘if (in_array($this->field->name, $myarray)) continue;’
I do something similar for the pdb-record. I hope this helps and is the solution you are seeking if the shortcode above doesn’t work for you. Let me know.
Christi
Forum: Plugins
In reply to: [Participants Database] database groupThat’s fantastic! Hope a good weekend for you too!
Forum: Plugins
In reply to: [Participants Database] database groupYou would need a separate template for each of the sign up forms that you want to display.
There is code already in place on the templates that will allow you to exclude fields. So, Instead of excluding fields, just exclude certain groups. Define an array that excludes the group name(s) that you don’t want to print:
$exclude_title = array('nameofyourgroup');
Then, you can check for the group name in your array and just exit the group while loop and move to the next one if they match by adding this if statement:
<?php if (in_array($this->group->name, $exclude_title) ) continue; ?> <?php while ( $this->have_groups() ) : $this->the_group(); ?> <?php if ( $this->group->printing_title() ) : // are we printing group titles and descriptions? ?> <tr class="signup-group"> <td colspan="2"> <?php if (in_array($this->group->name, $exclude_title) ) continue; ?> <?php $this->group->print_title() ?> <?php $this->group->print_description() ?> </td> </tr> <?php endif; // end group title/description row ?>
[Please post code & markup between backticks or use the code button. Your posted code may now have been permanently damaged by the forum’s parser.]
Forum: Plugins
In reply to: [Participants Database] Coding Like Variables in Separate Fieldsxnau,
I cannot thank you enough. The solution worked perfectly and I was even able to modify the help text. Could not have done it without you… brilliant work around.Forum: Plugins
In reply to: [Participants Database] Coding Like Variables in Separate FieldsThe form element for expertise in the basic form is dropdown/other and in the premium form it is multiselect/other. I already have the custom template in place. The fields are identical regarding the options that are displayed… I just want the basic form to allow for only one selection while the premium form allows for multiple… don’t really care how many. Thank you Roland.
Forum: Plugins
In reply to: [Participants Database] Coding Like Variables in Separate FieldsOK… Either way I still could use a little help with the code. Let’s assume that I go with the CSS solution of modifying my custom template to display expertise depending on the current form. If I am going to seek a solution in this way, I need to know how to change the expertise form element type depending on the field group, right? Insight?
Forum: Plugins
In reply to: [Participants Database] Coding Like Variables in Separate Fieldsxnau,
I have already created custom templates… One for basic which excludes the premium expertise field and one for premium that excludes the basic expertise field. Works beautifully with the exception of the full list of participants. I only want one column for expertise so I think I can just set the premium variable equal to the basic variable displaying then only the premium variable in the list, no?
Forum: Plugins
In reply to: [Hupso Social Media Share Buttons] Great Plugin!! Please add Pinterest :)I agree, this is an excellent plugin. One of the best. However, I agree that a Pintrest button would be great but just have to add that email and print support would be even greater. Hope you will consider adding buttons for these as well. Thank you for this great plugin!
You were absolutely right… I did have the plugin set to display excerpts. I don’t even know why I had that box checked as I am only using the plugin to block entire pages. I updated the settings and modified the functions.php file with your recommended filter and it worked like a charm. Thank you SO much! (Oddly, it wasn’t doing this until I upgraded to WordPress 3.5…)
Just a little more info when the filter is in place and I am not logged on. The entire page displays and then below it is a logout link followed by the wp-members login and registration forms which is the content that I actually want to display.
I am having the exact same problem on a page that I have blocked requiring that users register or login in order to view the page. However, when I include the filter in the functions.php file, the password protected dialog does not show up but neither does the login dialog… The entire page displays without requiring any kind of login at all. Am I missing something? https://www.exitmap.com/planning-tools/buyers-sanity-check/
Forum: Plugins
In reply to: [Participants Database] pdb-single customization helpAnd… for the record… it worked like a charm. Thanks again!
Forum: Plugins
In reply to: [Participants Database] pdb-single customization helpThank you so much for the quick response! I was missing the group reference. I think I can get there from here. By the way… This is the BEST plugin ever and I truly appreciate the amazing support that you provide for it.
Same exact thing happening on https://www.awakeat2oclock.com. I am thankful that you discovered that the issue is with Jetpack and so, like you, I have deactivated it. However, this solution is not feasible for the long term as there are many Jetpack features that I use. Have you been able to get any further information? I upgraded to WordPress 3.5 this morning. It’s always something.
I am seeing some similar question on LinkedIn itself… Some of the responses indicate that there might be a temporary hiccup or glitch. I guess we wait a couple of days and see if there is a change unless there is someone out there with a better explanation.