Support

Home Forums Events Calendar Add-on Showing attendee number in calendars‘ tooltip

Showing attendee number in calendars‘ tooltip

Posted: September 3, 2012 at 12:41 am


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

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 https://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

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,

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