Changeset 624821
- Timestamp:
- 11/13/2012 08:21:01 PM (13 years ago)
- Location:
- navayan-subscribe/trunk
- Files:
-
- 5 added
- 4 deleted
- 6 edited
-
constants.php (added)
-
default.css (added)
-
default.js (modified) (3 diffs)
-
fields.php (added)
-
functions.php (added)
-
index.php (added)
-
ny-admin-ui.css (deleted)
-
ny-subscribe-define.php (deleted)
-
ny-subscribe-functions.php (deleted)
-
ny-subscribe.php (deleted)
-
readme.txt (modified) (7 diffs)
-
screenshot-5.jpg (modified) (previous)
-
screenshot-6.jpg (modified) (previous)
-
screenshot-7.jpg (modified) (previous)
-
screenshot-8.jpg (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
-
navayan-subscribe/trunk/default.js
r588678 r624821 1 //var jQuery = jQuery.noConflict(); 2 if ( jQuery ){ 1 if ( typeof jQuery != 'undefined'){ 3 2 jQuery(function($){ 4 3 5 4 $('#nySubscribeTabs a').each(function(){ 6 var a = $(this); 7 var aHash = ''; 5 var a = $(this), 6 aHash = '', 7 blocks = 'nySubscribeBlocks'; 8 8 if ( a.hasClass('on') ){ 9 9 aHash = a.attr('href').split('#'); 10 $('# nySubscribeBlocks> div').hide();11 $('# nySubscribeBlocksdiv#' + aHash[1] ).show();10 $('#' + blocks + ' > div').hide(); 11 $('#' + blocks + ' div#' + aHash[1] ).show(); 12 12 } 13 13 … … 15 15 e.preventDefault(); 16 16 aHash = a.attr('href').split('#'); 17 $('# nySubscribeBlocks> div').hide();17 $('#' + blocks + ' > div').hide(); 18 18 $('#nySubscribeTabs a').removeClass('on'); 19 $('# nySubscribeBlocksdiv#' + aHash[1] ).show();19 $('#' + blocks + ' div#' + aHash[1] ).show(); 20 20 a.addClass('on'); 21 21 }); … … 38 38 39 39 $('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>'); 46 45 47 46 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; 52 48 }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; 57 50 }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; 62 52 }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; 67 54 }else{ 68 ifMsgExist.remove();55 $('#ny_subscribe_wrapper p#nySubscribeMsg').remove(); 69 56 appendMsg.insertBefore( myForm ).addClass( 'nys-error' ).text( 'processing...' ); 70 57 return true; 71 } 58 } 72 59 }); 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 } 73 66 74 67 }); -
navayan-subscribe/trunk/readme.txt
r614208 r624821 1 1 === Navayan Subscribe === 2 2 Contributors: 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.26 Stable tag: 1.1 .93 Tags: navayan, subscribe, subscribers, register, registration, mailing, email, email template, wp subscribe, subscribe plugin, mailing list, subscribe email, notify, notification, widget, unsubscribe, double optin 4 Requires at least: 3.3+ 5 Tested up to: 3.5-beta-1 6 Stable tag: 1.10 7 7 Donate Link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=amolnw2778@gmail.com&item_name=NavayanSubscribe 8 8 9 Allows visitors to easily and quickly subscribe to your website /blog with subscribe form, custom email template, notifications.9 Allows visitors to easily and quickly subscribe to your website with double optin, email templates, notifications. 10 10 11 11 == 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. 16 13 17 14 **FEATURES** 18 15 19 * Visitors can subscribe 20 * Admin can also add subscribers 16 * Double opt-in Subscribe and Un-Subscribe 21 17 * Default form field - Email 22 18 * Extended form fields - Name and Custom field 23 * Custom form heading 24 * Custom form field labels25 * Custom Error/Success messages19 * Custom form heading, field labels 20 * Custom Email Templates 21 * Custom Error/Success/Information messages 26 22 * Option to hide form after success 27 23 * Send new subscriber notification to admin 28 24 * Send new post notification to subscribers 29 25 * Sidebar Widget 30 * Option to use default form style31 * Custom Notification Email Template32 26 * Option to send post content in email 33 27 * Translate text support 34 * Subscriber gets Un-Subscribe link35 * User can Un-Subscribe36 28 * User gets removed if Un-Subscribed 37 29 * Checks whether user logged in or not 38 * Custom message if user is logged in39 * Custom Un-Subscribe Message40 30 * jQuery form validation 41 31 * HTML5 Placeholder 32 * HTML5 Validation with jQuery fallback 33 * Displays various users count 42 34 43 35 **Links** 36 44 37 * [Plugin's Homepage](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/) 45 38 * [FAQs & Discussion](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/#comments) … … 49 42 50 43 == Installation == 44 **REQUIRED** 45 WordPress v3.3 or newest 46 51 47 1. Download 'Navayan Subscribe' wordpress plugin 52 48 2. Upload and Extract in `wp-content/plugins/` directory. Make sure 'wp-content' has write permission … … 56 52 57 53 **Links** 54 58 55 * [Plugin's Homepage](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/) 59 56 * [FAQs & Discussion](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/#comments) … … 65 62 1. Activate the plugin 66 63 2. Go to Dashboard -> Tools -> Navayan Subscribe 67 3. Customize the form settings you want64 3. Customize the form settings and email templates as you want 68 65 4. Add this code: 69 66 … … 82 79 If you want to display Navayan Subscribe form in sidebar then go to 'Appearance -> Widgets', drag and drop 'Navayan Subscribe' widget in your sidebar. 83 80 84 If you feel this plugin saved your efforts, I would appreciateif you Rate it!81 If you feel this plugin saved your efforts, it would be great if you Rate it! 85 82 86 83 **Links** 84 87 85 * [Plugin's Homepage](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/) 88 86 * [FAQs & Discussion](http://blog.navayan.com/navayan-subscribe-easy-way-to-subscribe-wordpress-website-or-blog/#comments) … … 96 94 3. Subscribe form in sidebar widget 97 95 4. UnSubscribe form 98 5. Subscribe and UnSubscribe form settings99 6. Custom Email Template 100 7. Admin can add subscribers101 8. Test Email received bysubscribers96 5. Subscribe and UnSubscribe form and messages settings 97 6. Custom Email Templates 98 7. Subscribe confirmation email 99 8. Post/page notification email to subscribers 102 100 103 101 104 102 == 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 105 112 106 113 = 1.1.9 (20121019) = … … 133 140 = 1.1.7.2 (20120709) = 134 141 * NEW: Version check as subscribe form class 135 136 = 1.1.7.1 (20120707) =137 * FIX: PHP warning138 142 139 143 = 1.1.7 (20120706) =
Note: See TracChangeset
for help on using the changeset viewer.