get_current_language(); $is_all_languages = $module->is_all_languages(); if (!$is_all_languages) { $controls->warnings[] = 'You are configuring the language "' . $current_language . '". Switch to "all languages" to see every options.'; } if (!$controls->is_action()) { $controls->data = $module->get_options('profile', $current_language); } else { if ($controls->is_action('save')) { $module->save_options($controls->data, 'profile', null, $current_language); $controls->add_message_saved(); } if ($controls->is_action('reset')) { $controls->data = $module->reset_options('profile'); $controls->add_message_done(); } } $status = array(0 => __('Private', 'newsletter'), 1 => __('Show on profile page', 'newsletter'), 2 => __('Show on subscription form', 'newsletter')); $rules = array(0 => __('Optional', 'newsletter'), 1 => __('Required', 'newsletter')); ?>

This panel contains the configuration of the subscription and profile editing forms which collect the subscriber data you want to have.
And let you to translate every single button and label.
Preferences can be an important setting for your newsletter: here you can read more about them.

init(); ?>

The main subscriber fields. Only the email field is, of course, mandatory.

Email

If you want to collect only a generic "name", use only this field and not the last name field.

Salutation titles are inserted in emails message when the tag {title} is used. For example "Good morning {title} {surname} {name}".

text('subscribe', 40); ?>

You can use an image URL (http://...).

Privacy checkbox/notice

The privacy acceptance checkbox (required in many Europen countries) force the subscriber to check it before proceeding. If an URL is specified the label become a link.

Generic textual profile fields that can be collected during the subscription. Field formats can be one line text or selection list. Fields of type "list" must be configured with a set of options, comma separated like: "first option, second option, third option".

The placeholder works only on HTML 5 compliant browsers.

Error message text('profile_error', 50); ?>
FieldName/LabelPlaceholderWhen/WhereTypeRuleList values comma separated
text('profile_' . $i); ?> text('profile_' . $i . '_placeholder'); ?> select('profile_' . $i . '_status', $status); ?> select('profile_' . $i . '_type', array('text' => 'Text', 'select' => 'List')); ?> select('profile_' . $i . '_rules', $rules); ?> textarea_fixed('profile_' . $i . '_options', '200px', '50px'); ?>

This panel shows the form HTML code generated by Newsletter if you want to copy it as starting point for a custom form.

Standard form code

Widget form code

button_save(); ?> button_reset(); ?>