Développeur WordPress
WordPress mu et BuddyPress

Flux RSS de Fairweb

fw-simple-newsletter-subs.

What it does :

I needed a simple form with email field to send by email to the WordPress blog’s admin subscriptions to their newsletter. It does nothing more as I needed nothing more. I’m happy to offer it to WordPress users but I’m sorry I do not have time for support.

Download :

  • fw-simple-newsletter-subscribe V1.0 22/02/2007
    Corrections : 22/02/2007 – I had noticed an error in my original script which caused a “header already sent” error in the admin panel.
  • fw-simple-newsletter-subscribe V1.0 – 21/02/2007

Install :

  • Put the fw-simple-newsletter-subscribe folder in your wp-content/plugins/ directory
  • Activate the plugin

How to use :

  • Insert the code : < ?php $my_sns = new fw_sns(); $my_sns->fw_sns_displayform(); ?> where you want the form to appear (for example in sidebar.php)

Customize some options :

As I’m French and quite selfish, most default values are in French. However you may customize a few options by adding these lignes before calling $my_sns->fw_sns_displayform();

  • $my_sns->option['submit_style'] = ‘image’; // default is text so if you want an image for submitting the form instead of standard submit button, do this
  • $my_sns->option['submit_image'] = get_bloginfo(‘template_directory’).’/images/nl_button.jpg’; // if you set the previous option to ‘image’, then you need to indicate your image’s path. This is just an example.
  • $my_sns->option['send_text_button'] = ‘Send’; // default : Inscrivez-vous. This is the text for the submit button. If button is an image, this will be its alt property.
  • $my_sns->option['email_field_default'] = ‘your email’; // default : adresse e-mail. This will be the default value for the email field.
  • $my_sns->option['success_alert']=’Subscription was successful ‘; // default : Inscription réussie
  • $my_sns->option['badmail_alert']=’Invalid e-mail address’; // default : Adresse e-mail invalide
  • $my_sns->option['sendmail_failed_alert']=’Error while sending subscription. Please try again’; // default : Une erreur est survenue lors de l’inscription. Essayez à nouveau.
  • $my_sns->option['admin_email']=’mymail@mymail.com’; // default : the main admin email address as returned by get_option(‘admin_email’)
  • $my_sns->option['message_admin']=’New subscriber : ‘; // default :’Inscription de : ‘

CSS

You may want to customize css styles in fw-simple-newsletter-subscribe/fw-sns.css

    • Share/Bookmark
wordpressthemesmarket wordpressthemeshop Blogohblog.com - Premium WordPress Themes Premium Wordpress Themes WordPress Arcade Themes