mcoops
Forum Replies Created
-
Forum: Plugins
In reply to: [Download Monitor] DM Page AddonI need to override this code in the core plugin page <dlm-page-addon.php> but want to override it in my child theme.
// Categories
$include = array_filter( array_map( ‘absint’, explode( ‘,’, $include_categories ) ) );
$exclude = array_filter( array_map( ‘absint’, explode( ‘,’, $exclude_categories ) ) );
$category_args = apply_filters( ‘dlm_page_addon_get_category_args’, array(
‘orderby’ => ‘name’,
‘order’ => ‘ASC’,
‘hide_empty’ => ! empty( $include ) ? false : true,
‘pad_counts’ => true,
‘child_of’ => 0,
‘exclude’ => $exclude,
‘include’ => $include
) );Forum: Plugins
In reply to: [Theme My Login] [Plugin: Theme My Login] Custom Form templateSorry. Checked (I said it backwards above) and it is in wp-content/plugins and register-form.php is in the child theme directory.
Forum: Plugins
In reply to: [Theme My Login] [Plugin: Theme My Login] Custom Form templateI’m not using the User Moderation module. Any other ideas?
Forum: Plugins
In reply to: [Theme My Login] [Plugin: Theme My Login] Custom Form templateI added these fields to register-form.php and put that into my plugins directory. I also created theme-my-login-custom.php to my theme directory with the code below. Not working. Fields show up on register page but hangs when submit. Theme My Login pop up note seemed to infer that a Custom Form option was now part of the plugin settings…
—
<?phpfunction tml_registration_errors( $errors, $user_login ) {
// Require “my-field”
if ( empty( $_POST[‘first_name’] ) )
$errors->add( ’empty_first_name’, __( ‘”First Name” is a required field!’ ) );if ( empty( $_POST[‘last_name’] ) )
$errors->add( ’empty_last_name’, __( ‘”Last Name” is a required field!’ ) );if ( empty( $_POST[‘organization’] ) )
$errors->add( ’empty_organization’, __( ‘”Company | Organization” is a required field!’ ) );
}
add_action( ‘registration_errors’, ‘tml_registration_errors’, 10, 2 );// Finally, this function will save the posted field to the user meta table
function tml_new_user_registered( $user_id ) {
if ( isset( $_POST[‘first_name’] ) )
update_user_meta( $user_id, ‘first_name’, $_POST[‘first_name’] );if ( isset( $_POST[‘last_name’] ) )
update_user_meta( $user_id, ‘last_name’, $_POST[‘last_name’] );if ( isset( $_POST[‘organization’] ) )
update_user_meta( $user_id, ‘organization’, $_POST[‘organization’] );
}
add_action( ‘tml_new_user_registered’, ‘tml_new_user_registered’ );
?>I would like to create a similar navigation bar underneath my slider, similar to what bigtalkdesigns site had (news, recent work) and this site: https://healogix.com/ (when, what, where, who). Any help?
At this point I’m still working on my site on localhost. Thanks!