Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • These caption and description settings only seem to affect the thumbnail grid hover states rather than what is displayed in the colorbox or swipebox overlay. Is there a way to choose what is displayed in the slideshows, such as the caption as the title and then the description for the photo?

    In my case I only want to show either the captions or descriptions when hovering over the thumbnails, but then the both the caption/title and the description above or below the image in the colorbox.

    Thread Starter Nathaniel T

    (@nathaniel-t)

    Thank you for your response Josh! Looks like I was in fact closer than I thought. Unfortunately the new email tag still doesn’t display the user’s names. Instead that area of the email is blank, such that the attributes are not being called or there is no data for them. The user’s first and last name are saving properly from the registration form as I can see from their profile in wp-admin. Just thinking out loud… Perhaps this message is sending before the data is saved, though that doesn’t make much sense. Or perhaps those attributes are not available to be called.

    — Username: jdaniels — (jdaniels@example.com) has requested a username at My Website Name

    Thread Starter Nathaniel T

    (@nathaniel-t)

    A follow up question, does your Options add-on allow for including the user’s other profile meta fields in the approval notification email? Fields such as First Name and Last Name etc. I am adding those fields to the registration form.

    Thread Starter Nathaniel T

    (@nathaniel-t)

    Thank you for your reply Josh. I am sorry it has taken such a while for me to respond.

    I have tried to implement adding a new email tag to include the user’s first and last name in the approval email to the admin, but it still doesn’t seem to be working for me.

    This is my latest code. I am getting an error at the moment in regard to adding the new email tag. It seems that perhaps the class is no initialized or for some reason the pre-existing tags are not being gathered.

    Warning: array_key_exists() expects parameter 2 to be array, null given in [mysite]\wp-content\plugins\new-user-approve\includes\email-tags.php on line 73
    
    Warning: Invalid argument supplied for foreach() in [mysite]\wp-content\plugins\new-user-approve\includes\email-tags.php on line 281
    add_action( 'nua_email_tags', 'mytheme_extras_nua_add_email_tags');
    function mytheme_extras_nua_add_email_tags () {
    	if (! nua_email_tag_exists( 'first_last_name' )) {
    		nua_add_email_tag( 'first_last_name', __( 'The users first and last name.', 'mytheme' ), 'mytheme_extras_nua_email_tag_user_first_last_name', array( 'email' ) );
    	}
    }
    function mytheme_extras_nua_email_tag_user_first_last_name( $attributes ) {
    	return '' . $attributes['first_name'] . ' ' . $attributes['last_name'];
    }
    add_filter( 'new_user_approve_notification_message_default', 'mytheme_extras_nua_approval_notification_message', 10, 2 );
    function mytheme_extras_nua_approval_notification_message($message) {
    	$message = __( '{first_last_name} — {username} — ({user_email}) has requested a username at {sitename}', 'new-user-approve' ) . "\n\n";
    	$message .= "{site_url}\n\n";
    	$message .= __( 'To approve or deny this user access to {sitename} go to', 'new-user-approve' ) . "\n\n";
    	$message .= "{admin_approve_url}\n\n";
    
    	return $message;
    }
    Thread Starter Nathaniel T

    (@nathaniel-t)

    I realize that is likely considered a repeat question to what has been asked by other users before. However I have looked through the other questions in this support forum and followed the instructions and code snippets provided on the plugin site. If someone would kindly lead me in the right direction to include the new user’s first and last name in the email notification sent to the administrator it would be greatly appreciated!

    Right now the email that is received when a new user registers looks something like this given the code I presented in my initial post.

    {first_last_name} — {username} — ({user_email}) has requested a username at {sitename}
    
    {site_url}
    
    To approve or deny this user access to {sitename} go to
    
    {admin_approve_url}
Viewing 5 replies - 1 through 5 (of 5 total)