$user_email, 'name' => __('Your name', 'zcmail'), 'mail' => __('Your email', 'zcmail'), 'subject' => __('Subject', 'zcmail'), 'message' => __('Your message', 'zcmail'), 'submit' => __('Send message', 'zcmail'), 'js' => __('Enable', 'zcmail'), ); update_option('zcmail', $default ); } } /* * Clean up when deactivated. TODO: Probably breaks on automatic upgrades... */ register_uninstall_hook(__FILE__, 'zcmail_deactivate'); function zcmail_deactivate() { delete_option('zcmail'); } /* * The admin menu. */ add_action('admin_menu', 'zcmail_add_pages'); function zcmail_add_pages() { add_options_page(__('Zero Conf Mail', 'zcmail'), __('Zero Conf Mail', 'zcmail'), 10, 'zcmail', 'zcmail_options_page'); function zcmail_options_page() { ?>
Form submitted.
'; if ($_POST['zcmail']) { $opts['name'] = stripslashes($_POST['zcmail']['name'] ); $opts['mail'] = stripslashes($_POST['zcmail']['mail'] ); $opts['subject'] = stripslashes($_POST['zcmail']['subject'] ); $opts['message'] = stripslashes($_POST['zcmail']['message'] ); $opts['js'] = stripslashes($_POST['zcmail']['js'] ); #echo '
';var_dump($opts); echo '
'; echo 'Settings saved!'; update_option('zcmail', $_POST['zcmail']); } echo '
'; echo '
'; } ?>

[zcmail] into the page content.')?>

this and this.') ?>

! You are not supposed to put your own name etc. in here. These fields are used as labels for your mailform. However, feel free to customize the settings.

';var_dump($opts); echo ''; ?>


My other plugins

Better tag cloud: I was pretty unhappy with the default WordPress tag cloud widget. This one is more powerful and offers a list HTML markup that is consistent with most other widgets.
Move WordPress comments: This plugin adds a small form to every comment on your blog. The form is only added for admins and allows you to move comments to a different post/page and to fix comment threading.
Snow and more: This one lets you see snowflakes (or other, custom images) fall down your blog.
Fireworks: The name says it all, see snowflakes on your blog!
Rhyming widget: I wrote a little online rhyming dictionary. This is a widget to search it directly from one of your sidebars.



\n"; } /* * Print the javascript for input fields for the mail form for visitors */ function zcmail_jsnippet($param = '???') { echo " onfocus=\"if(this.value=='$param'){this.value=''};\" "; echo " onblur=\"if(this.value==''){this.value='$param'}\" "; }