id == 'toplevel_page_cUs_activecampaign_plugin') { wp_enqueue_style('cUs_Styles', plugins_url('style/cUsAC_style.css', __FILE__), false, '1'); wp_register_script( 'cUs_Scripts', plugins_url('scripts/cUsAC_scripts.js?pluginurl=' . dirname(__FILE__), __FILE__), array(), '1.0', true); wp_localize_script( 'cUs_Scripts', 'ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ) ) ); wp_enqueue_script('jquery'); //JQUERY WP CORE wp_enqueue_script('jquery-ui-core'); wp_enqueue_script('jquery-ui-accordion'); wp_enqueue_script('jquery-ui-tabs'); wp_enqueue_script('jquery-ui-button'); wp_enqueue_script('jquery-ui-selectable'); wp_enqueue_script('cUs_Scripts'); } } } add_action('admin_enqueue_scripts', 'cUsAC_admin_header'); // cUsAC_admin_header hook //END CONTACTUS.COM PLUGIN STYLES CSS // Add option page in admin menu if (!function_exists('cUsAC_admin_menu')) { function cUsAC_admin_menu() { add_menu_page('ActiveCampaign Form Plugin by ContactUs.com', 'ActiveCampaign Form', 'edit_themes', 'cUs_activecampaign_plugin', 'cUsAC_menu_render', plugins_url("style/images/Icon-Small_16.png", __FILE__)); } } add_action('admin_menu', 'cUsAC_admin_menu'); // cUsAC_admin_menu hook function cUsAC_plugin_links($links, $file) { if ($file == plugin_basename(__FILE__)) { $links[] = '' . __("Get Support", "cUsAC_plugin") . ''; } return $links; } add_filter('plugin_row_meta', 'cUsAC_plugin_links', 10, 2); /* * Register the settings */ add_action('admin_init', 'contactus_ac_register_settings'); function contactus_ac_register_settings() { return false; } function contactus_ac_settings_validate($args) { //make sure you return the args return $args; } //Display the validation errors and update messages /* * Admin notices */ function contactus_ac_admin_notices() { settings_errors(); } add_action('admin_notices', 'contactus_ac_admin_notices'); function contactUs_AC_JS_into_html() { if (!is_admin()) { $formOptions = get_option('cUsAC_FORM_settings'); //GET THE NEW FORM OPTIONS $getTabPages = get_option('cUsAC_settings_tabpages'); $getInlinePages = get_option('cUsAC_settings_inlinepages'); $form_key = get_option('cUsAC_settings_form_key'); $pageID = get_the_ID(); $boolTab = $formOptions['tab_user']; $cus_version = $formOptions['cus_version']; $userJScode = ''; //the theme must have the wp_footer() function included //include the contactUs.com JS before the tag switch ($cus_version) { case 'tab': if (strlen($form_key) && $boolTab): echo $userJScode; endif; break; case 'selectable': if (strlen($form_key) && is_array($getTabPages) && in_array($pageID, $getTabPages)): echo $userJScode; elseif (is_home()): if (in_array('home', $getTabPages)) { echo $userJScode; } elseif (in_array('home', $getInlinePages)) { ?> '; else: $inlineJS_output = ''; endif; echo $inlineJS_output; } function cus_ac_shortcode_cleaner() { $aryPages = get_pages(); foreach ($aryPages as $oPage) { $pageContent = $oPage->post_content; $pageContent = str_replace('[show-activecampaign-inline-form]', '', $pageContent); $aryPage = array(); $aryPage['ID'] = $oPage->ID; $aryPage['post_content'] = $pageContent; wp_update_post($aryPage); } } add_shortcode("show-activecampaign-inline-form", "cus_ac_shortcode_handler"); //[show-contactus.com-form] function cus_ac_shortcode_handler() { $formOptions = get_option('cUsAC_FORM_settings'); //GET THE NEW FORM OPTIONS $form_key = get_option('cUsAC_settings_form_key'); $cus_version = $formOptions['cus_version']; if ($cus_version == 'inline' || $cus_version == 'selectable') : $inlineJS_output = '
'; else: $inlineJS_output = ''; endif; return $inlineJS_output; } add_shortcode("show-activecampaign-tab-button-form", "cus_ac_shortcode_Tab_hook"); //[show-contactus.com-form] function cus_ac_shortcode_Tab_handler() { $formOptions = get_option('cUsAC_FORM_settings'); //GET THE NEW FORM OPTIONS $form_key = get_option('cUsAC_settings_form_key'); $cus_version = $formOptions['cus_version']; if ($cus_version == 'tab' || $cus_version == 'selectable') : $inlineJS_output = ''; else: $inlineJS_output = ''; endif; return $inlineJS_output; } function cus_ac_shortcode_Tab_hook() { add_action('wp_footer', 'cus_ac_shortcode_Tab_handler'); } function cus_ac_shortcode_add($inline_req_page_id) { if ($inline_req_page_id != 'home'): $oPage = get_page($inline_req_page_id); $pageContent = $oPage->post_content; $pageContent = $pageContent . "\n[show-activecampaign-inline-form]"; $aryPage = array(); $aryPage['ID'] = $inline_req_page_id; $aryPage['post_content'] = $pageContent; return wp_update_post($aryPage); endif; } $cus_dirbase = trailingslashit(basename(dirname(__FILE__))); $cus_dir = trailingslashit(WP_PLUGIN_DIR) . $cus_dirbase; $cus_url = trailingslashit(WP_PLUGIN_URL) . $cus_dirbase; define('CUSAC_DIR', $cus_dir); define('CUSAC_URL', $cus_url); // WIDGET CALL include_once('contactus_activecampaign_widget.php'); function contactus_ac_register_widgets() { register_widget('contactus_activecampaign_Widget'); } add_action('widgets_init', 'contactus_ac_register_widgets'); //CONTACTUS.COM ADD FORM TO PLUGIN PAGE if (!function_exists('cUsAC_menu_render')) { function cUsAC_menu_render() { $options = get_option('cUsAC_settings'); //get the values, wont work the first time $formOptions = get_option('cUsAC_FORM_settings'); //GET THE NEW FORM OPTIONS $cus_version = $formOptions['cus_version']; global $current_user; get_currentuserinfo(); $plugins_url = plugins_url(); if (!is_array($options)) { settings_fields('cUsAC_settings'); do_settings_sections(__FILE__); } if (isset($_REQUEST['option'])): switch ($_REQUEST['option']): case 'settings': //SAVING FORM SETTINGS TAB - INLINE - SELECTION ?>

Done! Your configuration has been saved correctly.

'; $boolTab = $_REQUEST['tab_user']; $aryFormOptions = array( 'tab_user' => $boolTab, 'cus_version' => $_REQUEST['cus_version'] ); delete_option('cUsAC_FORM_settings'); delete_option('cUsAC_settings_inlinepages'); delete_option('cUsAC_settings_tabpages'); update_option('cUsAC_FORM_settings', $aryFormOptions); //UPDATE FORM SETTINGS cus_ac_shortcode_cleaner(); $formOptions = get_option('cUsAC_FORM_settings'); //GET THE NEW FORM OPTIONS $cus_version = $formOptions['cus_version']; switch ($_REQUEST['cus_version']): case 'selectable': if (isset($_REQUEST['pages'])): $aryPages = $_REQUEST['pages']; $aryInlinePages = array(); $aryTabPages = array(); foreach ($aryPages as $pageID => $version) { if ($version == 'inline') { $aryInlinePages[] = $pageID; cus_ac_shortcode_add($pageID); } elseif ($version == 'tab') { $aryTabPages[] = $pageID; } } update_option('cUsAC_settings_inlinepages', $aryInlinePages); //UPDATE OPTIONS update_option('cUsAC_settings_tabpages', $aryTabPages); //UPDATE OPTIONS endif; break; endswitch; endif; break; endswitch; endif; ?>

ActiveCampaign Form by ContactUs.com

Are You Already a ActiveCampaign User?

No, Signup for ActiveCampaign

Note:

The ContactUs.com ActiveCampaign Form Plugin is designed for existing ActiveCampaign users. If you are not yet a ActiveCampaign user, click on the "No, Signup for ActiveCampaign" button above.

Your ContactUs.com Account





  [ ]

Form Settings

Choose Your Implementation


Notice:

Your default theme must have the "wp_footer()" function added.

Page Selection

0, 'sort_column' => 'post_date', 'sort_order' => 'desc')); if (is_array($mypages)) : $getTabPages = get_option('cUsAC_settings_tabpages'); $getInlinePages = get_option('cUsAC_settings_inlinepages'); ?>
  • Wordpress pages
  • /> />
      Home Page
  • ID, $getTabPages)) ? 'checked' : '' ?> /> ID, $getInlinePages)) ? 'checked' : '' ?> />
      post_title; ?>

ADVANCED ONLY!

Copy this code into your template to place the form wherever you want it. If you use this advanced method, do not select any pages from the section on the left or you may end up with the form displayed on your page twice.

  • Inline
    <?php echo do_shortcode("[show-activecampaign-inline-form]"); ?>
  • Widget Tool

    Go to Widgets here and drag the ContactUs.com ActiveCampaign Newsletter widget into one of your widget areas

Terminology

  • Tab - Uses tab callouts with “Contact Us” messaging on the page margins across your website. When pressed, contact form appears as a lightbox above the underlying page.
  • Custom - You can also choose a “Custom” implementation in order to a) use a combination of Tab and Inline, and b) choose specific pages on your site to place Tab or Inline forms.

Helpful Hints

  • Take a moment to log into ContactUs.com (with the user name/password you registered with) to see the full set of solutions offered.
  • You can choose different form design templates from the ContactUs.com library by logging into your account at www.ContactUs.com
  • You can also generate leads and newsletter signups from your Facebook page by enabling the ContactUs.com Facebook App. It only takes two clicks!

Change Design Instructions

We have sent you an email with a temporary password so you can log into www.contactus.com and fully configure your form.

Once you log in you will be able to change your form template, tab template, and much more.

Form Examples

  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template
  • ContactUs.com Newsletter Form Template

Change Design Instructions

We have sent you an email with a temporary password so you can log into www.contactus.com and fully configure your form.

Once you log in you will be able to change your form template, tab template, and much more.

Button Tab Examples

  • ContactUs.com Newsletter Button Tab
  • ContactUs.com Newsletter Button Tab
  • ContactUs.com Newsletter Button Tab
  • ContactUs.com Newsletter Button Tab
  • ContactUs.com Newsletter Button Tab
  • ContactUs.com Newsletter Button Tab
  • ContactUs.com Newsletter Button Tab
  • ContactUs.com Newsletter Button Tab
Powered By ContactUs.com