Support

Home Forums Event Espresso Premium [ESPRESSO_MY_EVENTS] breaking out of other shortcodes

[ESPRESSO_MY_EVENTS] breaking out of other shortcodes

Posted: December 23, 2013 at 9:01 am


Maltesen

December 23, 2013 at 9:01 am

Hi,
How do I prevent this shortcode of breaking out of another shortcode (tabs).?
I can contain the [ESPRESSO_EDIT_PROFILE] within the shortcode tabs. But when i enter [ESPRESSO_MY_EVENTS] it breaks out and always appear in the top of the chosen frontend page.


Tony

  • Support Staff

December 23, 2013 at 9:45 am

Hi there,

Can you provide a link or screenshot of an example please?


Maltesen

December 23, 2013 at 10:12 am

Yes here it is:


Maltesen

December 23, 2013 at 10:13 am

Or here Maybe?


Josh

  • Support Staff

December 23, 2013 at 2:02 pm

It may help to do open up the Members add-on’s my_events_page.php and change the event_espresso_my_events_fview function to read as:

function event_espresso_my_events_fview(){
	global $this_is_a_reg_page;
	$this_is_a_reg_page = TRUE;
	
	ob_start();
	event_espresso_my_events();
	$buffer = ob_get_contents();
	ob_end_clean();
	
	wp_enqueue_style('my_events_table', EVNT_MBR_PLUGINFULLURL . 'styles/my_events_table.css'); //My events table css
	wp_enqueue_script('dataTables', EVENT_ESPRESSO_PLUGINFULLURL . 'scripts/jquery.dataTables.min.js', array('jquery')); //Events core table script
	wp_enqueue_script('dataTablesColVis', EVENT_ESPRESSO_PLUGINFULLURL . 'scripts/jquery.ColVis.min.js', array('jquery')); //Events core table column hide/show script
	wp_register_script('event_espresso_js', (EVENT_ESPRESSO_PLUGINFULLURL . "scripts/event_espresso.js"), array('jquery'), EVENT_ESPRESSO_VERSION, TRUE);
	wp_enqueue_script('event_espresso_js');
	return $buffer;
}
add_shortcode('ESPRESSO_MY_EVENTS', 'event_espresso_my_events_fview');


Maltesen

December 23, 2013 at 11:53 pm

This absolutely fixed it. Thank you very much!
And Merry Christmas 🙂

The support post ‘[ESPRESSO_MY_EVENTS] breaking out of other shortcodes’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso