If you want to see your advocate program generate results, you have to build and nurture your personal relationships with your advocates. However, this can be really hard to do as you get more advocates. In this episode of the Advocate Marketing Council, we talk about ways to keep those relationships meaningful and genuine, even as your program grows to hundreds and thousands of members.
Join The Conversation!
');
} else { // double opt-in
$ymce('#yks-status-0-9be1e787e1').html('
');
}
/** Header Call Out Submission **/
if ( $ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').hasClass( 'header-callout-form' ) ) {
var container_height = $ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( '#wrapper' ).css( 'height' );
var container_width = $ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( '#wrapper' ).css( 'width' );
var top_margin_confirmation = ( container_height.replace( 'px' , '' , container_height ) - 25 ) / 2;
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( '#wrapper' ).css( 'height' , container_height ).css( 'width' , container_width );
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( '#wrapper' ).children().each(function() {
$ymce(this).fadeOut('fast');
}).promise().done( function() {
var confirmation_message = $ymce('#yks-status-0-9be1e787e1');
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( '#wrapper' ).html( confirmation_message );
$ymce( confirmation_message ).removeClass('yks-status').fadeIn('fast').attr( 'style' , 'text-align:center;vertical-align:middle;margin-top:19%;');
});
} else {
// remove the preloader
jQuery( '.yks-mc-submit-preloader' ).remove();
// re-enable all input fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find('input').each(function() {
$ymce(this).not('#wrapper').removeAttr( 'disabled' ).css( 'opacity' , '1' );
});
// re-enable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
/* reset the form, append the confirmation before the form */
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( 'input[type="text"]', 'textarea' ).val( '' );
$ymce('#yks-status-0-9be1e787e1').fadeIn('fast');
}
} else {
// bundle the MailChimp returned error
// with our yks mc error messages
$ymce('#yks_form_error_message').fadeOut('fast', function() {
jQuery(this).remove();
});
$ymce('#ykfmc-submit_0-9be1e787e1').removeAttr('disabled');
if( MAILCHIMP.errorResponse.toLowerCase().indexOf( "is already subscribed to the list." ) >= 0 ) {
$ymce('#yks-mailchimp-form_0-9be1e787e1').prepend('
'+MAILCHIMP.errorResponse+' Click Here to send an email to update your profile.').delay(1000).queue(function(next){
// remove the preloader
jQuery( '.yks-mc-submit-preloader' ).remove();
// remove disable from all input fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( 'input' ).each(function() {
$ymce(this).removeAttr( 'disabled' ).css('opacity','1');
});
// re-enable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
jQuery('#yks_form_error_message').fadeIn();
var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-9be1e787e1').offset().top;
jQuery("html, body").animate({ scrollTop: offset_top - 50 }, 500 );
next();
});
} else {
$ymce('#yks-mailchimp-form_0-9be1e787e1').prepend('
'+MAILCHIMP.errorResponse+'').delay(1000).queue(function(next){
// remove the preloader
jQuery( '.yks-mc-submit-preloader' ).remove();
// remove disable from all input fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( 'input' ).each(function() {
$ymce(this).removeAttr( 'disabled' ).css('opacity','1');
});
// re-enable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
jQuery('#yks_form_error_message').fadeIn();
var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-9be1e787e1').offset().top;
jQuery("html, body").animate({ scrollTop: offset_top - 50 }, 500 );
next();
});
}
}
},
// append our error up above, much like the others!
error: function(error) {
jQuery( '#yks_form_error_message' ).remove();
jQuery( '.yks-mc-submit-preloader' ).remove();
jQuery( '.ykfmc-submit' ).removeAttr( 'disabled' );
jQuery('#yks_form_error_message').fadeIn();
jQuery('#yks-mailchimp-form_0-9be1e787e1').prepend('
'+error.responseText+'').delay(1000).queue(function(next){
// remove the preloader
jQuery( '.yks-mc-submit-preloader' ).remove();
// remove disable from all input fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( 'input' ).each(function() {
$ymce(this).removeAttr( 'disabled' ).css('opacity','1');
});
// re-enable all select fields while the data send...
$ymce('#yks-mailchimpFormContainerInner_0-9be1e787e1').find( 'select' ).each(function() {
$ymce(this).removeAttr('disabled').css('opacity','1');
});
jQuery('#yks_form_error_message').fadeIn();
var offset_top = jQuery('#yks-mailchimpFormContainerInner_0-9be1e787e1').offset().top;
jQuery("html, body").animate({ scrollTop: offset_top - 50 }, 500 );
next();
});
console.log( error );
}
});
}
return false;
});
jQuery( 'body' ).on( 'click' , '.update-email-profile-link' , function() {
jQuery( '.preloader-confirmation-box' ).remove();
var user_email = jQuery(this).attr('alt');
var list_id = jQuery(this).parents('form').attr('rel');
var list_id_split = list_id.split( '-' );
var list_id_final = list_id_split[1];
jQuery( '#yks_form_error_message' ).after( '
' );
$ymce.ajax({
type: 'POST',
url: 'http://www.explorics.com/wp-admin/admin-ajax.php',
data: {
action: 'yks_mailchimp_form_submit',
form_action: 'send_update_email',
user_email: user_email,
list_id : list_id_final
},
dataType: 'html',
success: function(response) {
jQuery( '.preloader-confirmation-box' ).html( response );
console.log('success' + response);
},
error: function(errorResponse) {
jQuery( '.preloader-confirmation-box' ).html( errorResponse );
console.log(errorResponse);
}
});
return false;
});
});
function extractEmails(text) {
return text.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9._-]+)/gi);
}
Council Members In This Episode
Evan Jacobs
Customer Alignment & Experience Program Manager
Rapid7
Naysa Mishler
Manager, Advocate Marketing
LinkedIn
Liz Richardson
Social Media & Customer Advocacy
Bomgar
Brian Gladstein
CEO
Explorics