Chris
Forum Replies Created
-
Same problem here. Cannot mark items as shipped even though they are.
Forum: Plugins
In reply to: [Fresh Forms for Gravity] Latest Update – Critical ErrorI also got a critical error that took out our website. Rolling back fixed it. Here is the error:
Fatal error: Uncaught TypeError: str_contains(): Argument #1 ($haystack) must be of type string, array given in wp-includes/shortcodes.php:150 Stack trace: #0 wp-includes/shortcodes.php(150): str_contains() #1 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(424): has_shortcode() #2 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(503): Fresh_Forms_For_Gravity->find_gf_shortcode() #3 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(406): Fresh_Forms_For_Gravity->find_gf_acf_field() #4 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(621): Fresh_Forms_For_Gravity->check_gf() #5 wp-content/plugins/fresh-forms-for-gravity/class-fresh-forms-for-gravity.php(643): Fresh_Forms_For_Gravity->exclude_the_post() #6 wp-includes/class-wp-hook.php(324): Fresh_Forms_For_Gravity->fresh_content() #7 wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #8 wp-includes/plugin.php(517): WP_Hook->do_action() #9 wp-includes/template-loader.php(13): do_action() #10 wp-blog-header.php(19): require_once('/home/649545.cl...') #11 index.php(17): require('/home/649545.cl...') #12 {main} thrown in wp-includes/shortcodes.php on line 150@shanedelierrr I had the same issue and your solution worked for me.
WordPress has a search feature get_search_form that searches the site for content. When I use that search feature it does not include any of the entries in Support Candy in the results. Is there a way to include support candy in those results?
Forum: Plugins
In reply to: [Download Manager] disable pages single packages/filesI was able to completely disable the single posts by using the following in functions.php:
add_action( ‘template_redirect’, ‘mwx_disable_wpdm_single’ );
function mwx_disable_wpdm_single() {
if ( is_singular( ‘wpdmpro’ ) ) :
wp_redirect( home_url(), 301 );
exit;
endif;
}This redirects the user to the homepage if they try and access the single file page. This is for WP Download Manager Pro – not sure what the post type is for the free version.
If you are on Cloudways you need to reset your File and Folder permissions. Then go back and perform the update and it should work. Here is how to do this: https://www.moorewebexposure.com/wordpress-posts/malcare-security-plugin-wont-update-on-cloudways/
If you are on Cloudways you need to reset your File and Folder permissions. Then go back and perform the update and it should work. Here is how to do this: https://www.moorewebexposure.com/wordpress-posts/malcare-security-plugin-wont-update-on-cloudways/
Forum: Plugins
In reply to: [Dynamic Visibility for Elementor] Dynamic visibility breaking website downUpdating to the newest version also crashed my site. I used WP Rollback to install the older version of the plugin and it is working again. Will wait for the developer to fix this.
Forum: Plugins
In reply to: [Anti-Spam by CleanTalk. Spam protection] Blocking Download FilesHi – This is a self made code/button. I have the ability to edit the code if that helps.
ThanksI am using version 2.1.16. Here is a screen shot of how it is returning the values:
https://snipboard.io/VsXRy6.jpgI am not sure what your screenshot is supposed to be it just looks like a screen grab of an email.
I am using this snippet in the theme to get the fields:
user.um_committeesExactly what I needed, thank you for the timely support.
Wow this helped alot, thank you! I actually realized I already had an array doing the same thing in my functions.php file (which for anyone else is where this code goes). Below is what I ended up with in case it helps anyone else:
function my_um_ajax_get_members_data( $data_array, $user_id, $directory_data ) { $arr_fields = array( 'phone_number', 'mobile_number', 'community_address', 'user_email', ); foreach( $arr_fields as $field_key ){ $field_value = um_user( $field_key ); if( $field_value ){ $data_array[ $field_key ] = $field_value; }else{ $data_array[ $field_key ] = ''; } } return $data_array; } add_filter( 'um_ajax_get_members_data', 'my_um_ajax_get_members_data', 10, 3 );I just added ‘user_email’ to the array and then when I input the following on my template file it works:
<code>user.user_email</code>(where it says code it should be three curly brackets but the forum strips it out.)
- This reply was modified 5 years, 3 months ago by Chris. Reason: formatting
I am using this in a custom directory template. Here is an example on pastebin: https://pastebin.com/Ewntvcqa
You can see on line 25 where I am trying to apply the conditional logic to the mobile_number custom field. Thanks
For some reason it is stripping out my code. Here is the code on pastebin: https://pastebin.com/r0mwnRGy
Sorry we had some power outages that took me offline for awhile. I still have not been able to figure this out. Here is the full code of my template that I am using:
<script type=”text/template” id=”tmpl-um-member-list-<?php echo esc_attr( $unique_hash ) ?>”>
<table class=”um-members-list”>
<thead>
<tr>
<th>Name</th>
<th>Home Phone</th>
<th>Mobile Phone</th>
<th>Email</th>
<th>Address</th>
</tr>
</thead>
<tbody>
<# if ( data.length > 0 ) { #>
<# _.each( data, function( user, key, list ) { #><tr>
<td>user.display_name_html</td>
<td>user.phone_number</td>
<td>user.mobile_number</td>
<td>user.user_email</td>
<td>user.community_address</td>
</tr><# }); #>
<# } else { #><div class=”um-members-none”>
<p><?php echo $no_users; ?></p>
</div><# } #>
</tobdy>
</table>
</script>`
`I am trying to get the user email field to show up. This would be pulling from the email address tied to the account. It isn’t working for me. Any idea?