Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-sales domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the better-click-to-tweet domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-amazon domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the pue-stats domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114

Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the wordpress-seo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home/staging-poc/public_html/wp-includes/functions.php on line 6114
Showing attendee number in calendars‘ tooltip | Event Espresso - Staging Server

Support

Home Forums Calendar Showing attendee number in calendars‘ tooltip

Showing attendee number in calendars‘ tooltip

Posted: September 3, 2012 at 12:41 am

Viewing 4 reply threads


Sergiu Chiriac

September 3, 2012 at 12:41 am

Hi,

In my project I use the Attendee limit. I want to show the remaining attendee number in the tooltip. How can I do that?

Thank you
Sergiu


Dean

  • Support Staff

September 3, 2012 at 3:38 am

Hey Sergiu,

To get this to work would require changing the way the core files work. I couldn’t get it to function. If you want one of the developers to assist on this you can obtain it via http://staging.eventespresso.com/product/priority-support-tokens/


Sergiu Chiriac

September 3, 2012 at 12:08 pm

It’s on right. I have done it myself. I just used your function get_number_of_attendees_reg_limit() like this:

$available_spaces = get_number_of_attendees_reg_limit($event->id, 'available_spaces');
$eventArray['available_spaces'] = $available_spaces;

and then in the JS code:

text: '' + event.available_spaces,

I published the code just in case anyone else may want to achieve the same thing to.

Thank you
Sergiu


Dean

  • Support Staff

September 3, 2012 at 12:23 pm

Glad to see you got it resolved, I have learnt something there, JS was never my strong point.


Sergiu Chiriac

September 3, 2012 at 12:55 pm

The js code is incomplete there, what I wanted to wrote is:
text: '<?php _e('Available Spaces:', 'event_espresso'); ?>' + event.available_spaces,

Viewing 4 reply threads

The support post ‘Showing attendee number in calendars‘ tooltip’ 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 - Staging Server