Plugin Directory

Changeset 624821


Ignore:
Timestamp:
11/13/2012 08:21:01 PM (13 years ago)
Author:
amolnw2778
Message:

1.10 (20121114)

  • NEW: Double opt-in
  • NEW: HTML5 Validation with jQuery fallback
  • NEW: Displays various users count
  • NEW: More Email Templates
  • NEW: Enhanced post/page notifications
  • NEW: Fallback for post publish/update actions
  • FIX: Multiple notifications
Location:
navayan-subscribe/trunk
Files:
5 added
4 deleted
6 edited

Legend:

Unmodified
Added
Removed
  • navayan-subscribe/trunk/default.js

    r588678 r624821  
    1 //var jQuery = jQuery.noConflict();
    2 if ( jQuery ){
     1if ( typeof jQuery != 'undefined'){
    32    jQuery(function($){
    43       
    54        $('#nySubscribeTabs a').each(function(){
    6             var a = $(this);
    7             var aHash = '';
     5            var a = $(this),
     6                aHash = '',
     7                blocks = 'nySubscribeBlocks';
    88            if ( a.hasClass('on') ){
    99                aHash = a.attr('href').split('#');
    10                 $('#nySubscribeBlocks > div').hide();
    11                 $('#nySubscribeBlocks div#' + aHash[1] ).show();
     10                $('#' + blocks + ' > div').hide();
     11                $('#' + blocks + ' div#' + aHash[1] ).show();
    1212            }
    1313           
     
    1515                e.preventDefault();
    1616                aHash = a.attr('href').split('#');
    17                 $('#nySubscribeBlocks > div').hide();
     17                $('#' + blocks + ' > div').hide();
    1818                $('#nySubscribeTabs a').removeClass('on');
    19                 $('#nySubscribeBlocks div#' + aHash[1] ).show();
     19                $('#' + blocks + ' div#' + aHash[1] ).show();
    2020                a.addClass('on');
    2121            });
     
    3838       
    3939        $('form#ny_subscribe_form input#ny_subscribe_submit').click(function(){
    40             var myForm = $('form#ny_subscribe_form');
    41             var myName = $('input#ny_name', myForm);
    42             var myEmail = $('input#ny_email', myForm);
    43             var myCustom = $('input#ny_custom', myForm);
    44             var appendMsg = $('<p id="nySubscribeMsg"></p>');
    45             var ifMsgExist = $('#ny_subscribe_wrapper p#nySubscribeMsg');
     40            var myForm = $('form#ny_subscribe_form'),
     41                    myName = $('input#ny_name', myForm),
     42                    myEmail = $('input#ny_email', myForm),
     43                    myCustom = $('input#ny_custom', myForm),
     44                    appendMsg = $('<p id="nySubscribeMsg"></p>');
    4645           
    4746            if ( myName && myName.val() == '' ){
    48                 ifMsgExist.remove();
    49                 appendMsg.insertBefore( myForm ).addClass( 'nys-error' ).text( myName.attr('rel') );
    50                 myName.focus();
    51                 return false;
     47                formError( appendMsg, myName ); return false;
    5248            }else if ( myEmail && myEmail.val() == '' ){
    53                 ifMsgExist.remove();
    54                 appendMsg.insertBefore( myForm ).addClass( 'nys-error' ).text( myEmail.attr('rel') );
    55                 myEmail.focus();
    56                 return false;
     49                formError( appendMsg, myEmail ); return false;
    5750            }else if ( myEmail.val() != '' && !valEmail ( myEmail ) ){
    58                 ifMsgExist.remove();
    59                 appendMsg.insertBefore( myForm ).addClass( 'nys-error' ).text( myEmail.attr('rel') );
    60                 myEmail.focus();
    61                 return false;
     51                formError( appendMsg, myEmail ); return false;
    6252            }else if ( myCustom && myCustom.val() == '' ){
    63                 ifMsgExist.remove();
    64                 appendMsg.insertBefore( myForm ).addClass( 'nys-error' ).text( myCustom.attr('rel') );
    65                 myCustom.focus();
    66                 return false;
     53                formError( appendMsg, myCustom ); return false;
    6754            }else{
    68                 ifMsgExist.remove();
     55                $('#ny_subscribe_wrapper p#nySubscribeMsg').remove();
    6956                appendMsg.insertBefore( myForm ).addClass( 'nys-error' ).text( 'processing...' );
    7057                return true;
    71             }           
     58            }
    7259        });
     60       
     61        function formError( ErrorE, toFocus ){
     62            $('#ny_subscribe_wrapper p#nySubscribeMsg').remove();
     63            ErrorE.insertBefore( $('form#ny_subscribe_form') ).addClass( 'nys-error' ).text( toFocus.attr('rel') );
     64            toFocus.focus();
     65        }
    7366       
    7467    });
  • navayan-subscribe/trunk/readme.txt

    r614208 r624821  
    11=== Navayan Subscribe ===
    22Contributors: Amol Nirmala Waman
    3 Tags: navayan, subscribe, subscribers, register, registration, mailing, email, email template, wp subscribe, subscribe plugin, mailing list, subscribe email, notify, notification, widget, unsubscribe
    4 Requires at least: 3+
    5 Tested up to: 3.4.2
    6 Stable tag: 1.1.9
     3Tags: navayan, subscribe, subscribers, register, registration, mailing, email, email template, wp subscribe, subscribe plugin, mailing list, subscribe email, notify, notification, widget, unsubscribe, double optin
     4Requires at least: 3.3+
     5Tested up to: 3.5-beta-1
     6Stable tag: 1.10
    77Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=amolnw2778@gmail.com&item_name=NavayanSubscribe
    88
    9 Allows visitors to easily and quickly subscribe to your website/blog with subscribe form, custom email template, notifications.
     9Allows visitors to easily and quickly subscribe to your website with double optin, email templates, notifications.
    1010
    1111== Description ==
    12 [Navayan Subscribe](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/) allows your website/blog visitors to easily and quickly subscribe to your website/blog using email, name and additional field.
    13 Customize the subscribe form at Dashboard -> Tools -> Navayan Subscribe.
    14 Customize the post/page notification email template as you want!
    15 Or simply go to 'Appearance -> Widgets', drag and drop 'Navayan Subscribe' widget in your sidebar and see it in action.
     12[Navayan Subscribe](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/) allows your visitors to easily and quickly subscribe to your website with double optin process, custom email templates, post/page notifications. Can be used as sidebar widget.
    1613
    1714**FEATURES**
    1815
    19 * Visitors can subscribe
    20 * Admin can also add subscribers
     16* Double opt-in Subscribe and Un-Subscribe
    2117* Default form field - Email
    2218* Extended form fields - Name and Custom field
    23 * Custom form heading
    24 * Custom form field labels
    25 * Custom Error/Success messages
     19* Custom form heading, field labels
     20* Custom Email Templates
     21* Custom Error/Success/Information messages
    2622* Option to hide form after success
    2723* Send new subscriber notification to admin
    2824* Send new post notification to subscribers
    2925* Sidebar Widget
    30 * Option to use default form style
    31 * Custom Notification Email Template
    3226* Option to send post content in email
    3327* Translate text support
    34 * Subscriber gets Un-Subscribe link
    35 * User can Un-Subscribe
    3628* User gets removed if Un-Subscribed
    3729* Checks whether user logged in or not
    38 * Custom message if user is logged in
    39 * Custom Un-Subscribe Message
    4030* jQuery form validation
    4131* HTML5 Placeholder
     32* HTML5 Validation with jQuery fallback
     33* Displays various users count
    4234
    4335**Links**
     36
    4437* [Plugin's Homepage](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/)
    4538* [FAQs & Discussion](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/#comments)
     
    4942
    5043== Installation ==
     44**REQUIRED**
     45WordPress v3.3 or newest
     46
    51471. Download 'Navayan Subscribe' wordpress plugin
    52482. Upload and Extract in `wp-content/plugins/` directory. Make sure 'wp-content' has write permission
     
    5652
    5753**Links**
     54
    5855* [Plugin's Homepage](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/)
    5956* [FAQs & Discussion](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/#comments)
     
    65621. Activate the plugin
    66632. Go to Dashboard -> Tools -> Navayan Subscribe
    67 3. Customize the form settings you want
     643. Customize the form settings and email templates as you want
    68654. Add this code:
    6966
     
    8279If you want to display Navayan Subscribe form in sidebar then go to 'Appearance -> Widgets', drag and drop 'Navayan Subscribe' widget in your sidebar.
    8380
    84 If you feel this plugin saved your efforts, I would appreciate if you Rate it!
     81If you feel this plugin saved your efforts, it would be great if you Rate it!
    8582
    8683**Links**
     84
    8785* [Plugin's Homepage](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/)
    8886* [FAQs & Discussion](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/#comments)
     
    96943. Subscribe form in sidebar widget
    97954. UnSubscribe form
    98 5. Subscribe and UnSubscribe form settings
    99 6. Custom Email Template
    100 7. Admin can add subscribers
    101 8. Test Email received by subscribers
     965. Subscribe and UnSubscribe form and messages settings
     976. Custom Email Templates
     987. Subscribe confirmation email
     998. Post/page notification email to subscribers
    102100
    103101
    104102== Changelog ==
     103
     104= 1.10 (20121114) =
     105* NEW: Double opt-in
     106* NEW: HTML5 Validation with jQuery fallback
     107* NEW: Displays various users count
     108* NEW: More Email Templates
     109* NEW: Enhanced post/page notifications
     110* NEW: Fallback for post publish/update actions
     111* FIX: Multiple notifications
    105112
    106113= 1.1.9 (20121019) =
     
    133140= 1.1.7.2 (20120709) =
    134141* NEW: Version check as subscribe form class
    135 
    136 = 1.1.7.1 (20120707) =
    137 * FIX: PHP warning
    138142
    139143= 1.1.7 (20120706) =
Note: See TracChangeset for help on using the changeset viewer.