Title: mxmai's Replies | WordPress.org

---

# mxmai

  [  ](https://wordpress.org/support/users/mxmai/)

 *   [Profile](https://wordpress.org/support/users/mxmai/)
 *   [Topics Started](https://wordpress.org/support/users/mxmai/topics/)
 *   [Replies Created](https://wordpress.org/support/users/mxmai/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/mxmai/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/mxmai/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/mxmai/engagements/)
 *   [Favorites](https://wordpress.org/support/users/mxmai/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Eventbrite for The Events Calendar] [Plugin: Eventbrite for The Events Calendar] Out of memory at line: 38](https://wordpress.org/support/topic/plugin-eventbrite-for-the-events-calendar-out-of-memory-at-line-38/)
 *  [mxmai](https://wordpress.org/support/users/mxmai/)
 * (@mxmai)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-eventbrite-for-the-events-calendar-out-of-memory-at-line-38/#post-1571985)
 * And this seems to fix it:
 * new code:
 *     ```
       // hide/show additional payment option fields
       	var ebTecAcceptPaymentInputs = jQuery('#eb-tec-payment-options-checkboxes input');
   
       	// initially show payment option fields that aren't blank.
       	function ebTecShowHideAdditionalPaymentOptions() {
       		jQuery('#eb-tec-payment-options-checkboxes ~ #eb-tec-payment-options div').each(function() {
       			var thisInput = jQuery(this).find('input');
       			if(thisInput.val() != null) thisInput.closest('div').slideDown(200);
       		});
       	}
       	ebTecShowHideAdditionalPaymentOptions();
   
       	// bind our show/hide function.
       	ebTecAcceptPaymentInputs.change(function() {
       		var divIndex = ebTecAcceptPaymentInputs.index(this) + 1;
       		if(this.checked){
       			jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideDown(200);
       		}
       		else{
       			jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideUp(200);
       		}
       	});
       ```
   
 * Also fixes the problem of the payment options not dropping down the first time
   you click a checkbox (in the original code the show/hide function is only bound
   to the change event _after_ the first click).
 * I think the _jQuery.each_ call is the problem, if you replace it with jQuery(
   selector).each (which is a different function) it appears to work fine.
 * Interested to see if this fixes it for everybody else.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Eventbrite for The Events Calendar] [Plugin: Eventbrite for The Events Calendar] Out of memory at line: 38](https://wordpress.org/support/topic/plugin-eventbrite-for-the-events-calendar-out-of-memory-at-line-38/)
 *  [mxmai](https://wordpress.org/support/users/mxmai/)
 * (@mxmai)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-eventbrite-for-the-events-calendar-out-of-memory-at-line-38/#post-1571984)
 * The problematic code seems to be:
 * in **views/eventbrite-meta-box-extension.php**:
 * original code:
 *     ```
       // hide/show additional payment option fields
   
       	var ebTecAcceptPaymentInputs = jQuery('#eb-tec-payment-options-checkboxes input');
       	function ebTecShowHideAdditionalPaymentOptions(event) {
       		if(event) {
       			ebTecAcceptPaymentInputs.change(function() {
       				var divIndex = ebTecAcceptPaymentInputs.index(this) + 1;
       				if(this.checked) jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideDown(200);
       				else jQuery('#eb-tec-payment-options div:eq('+divIndex+')').slideUp(200);
       			});
       		} else {
       			jQuery.each('#eb-tec-payment-options-checkboxes ~ #eb-tec-payment-options div', function() {
       				var thisInput = jQuery(this).find('input');
       				if(thisInput.val() != null) thisInput.closest('div').slideDown(200);
       			});
       		}
       	}
       	ebTecShowHideAdditionalPaymentOptions();
       	ebTecAcceptPaymentInputs.bind('click', ebTecShowHideAdditionalPaymentOptions);
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Eventbrite for The Events Calendar] [Plugin: Eventbrite for The Events Calendar] Out of memory at line: 38](https://wordpress.org/support/topic/plugin-eventbrite-for-the-events-calendar-out-of-memory-at-line-38/)
 *  [mxmai](https://wordpress.org/support/users/mxmai/)
 * (@mxmai)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-eventbrite-for-the-events-calendar-out-of-memory-at-line-38/#post-1571983)
 * Bump. Also getting this problem in IE8 after adding EventBrite to the Events 
   Calendar. Seems to prevent users from editing event properties too (presumably
   the script terminates at that point.)
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Permalinks 404 with custom post type.](https://wordpress.org/support/topic/permalinks-404-with-custom-post-type/)
 *  [mxmai](https://wordpress.org/support/users/mxmai/)
 * (@mxmai)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/permalinks-404-with-custom-post-type/page/2/#post-1508521)
 * I’ve found you only need to call **flush_rewire_rules** once after you’ve set
   up your custom post type, not every time you load the page.
 * still a bit mysterious how it’s all working though.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Can’t Create Line Breaks ARGH!!](https://wordpress.org/support/topic/cant-create-line-breaks-argh/)
 *  [mxmai](https://wordpress.org/support/users/mxmai/)
 * (@mxmai)
 * [17 years, 6 months ago](https://wordpress.org/support/topic/cant-create-line-breaks-argh/#post-831065)
 * if you use the TinyMCE Advanced plugin, there’s an option to disable wordpress
   removing your extra line breaks. been fiddling around with this for a couple 
   of hours now and that seems to be the simplest workaround.

Viewing 5 replies - 1 through 5 (of 5 total)