Okay
  Public Ticket #2481123
List of attendees per event (page)
Closed

Comments

  •  3
    Brewstar started the conversation

    Hi,

    A while ago you have given a - very helpfull - code to create a page of all events with all attendees and a total below it.

    See below:

     $events = StachethemesStecEvents::get_events();
        $html_ar = array();
        foreach ($events as $event) {
            $html_ar[] = sprintf('Event title: %s', $event->get_title());
            $attendees = $event->get_parsed_attendees();
            foreach ($attendees as $attendee) {
                $html_ar[] = sprintf('Attendee name: %s', $attendee->name);
            }
            $html_ar[] = sprintf('Total attendees: %d', count($attendees));
            $html_ar[] = '<hr>';
        }
        
        echo implode('<br>', $html_ar);

    Unfortunately - when one of the attendees unlists himself from the event - he is still shown on this page.

    Perhaps the only thing missing in the code is his status? Is there also a way to NOT show him anymore?

    Thank you!

    Regards,

    Jochem

  •  877
    Zhivko replied

    Hi,

    Unlist or Decline? Unlist should remove the attendee completely from the event.

    Is Cache option turned on?

    I've updated the code and it should display the attendee status.

    File attached.


    Stachethemes Developer

  •  3
    Brewstar replied

    Hi,

    I meant Decline, sorry!

    Please see the attachment for my further explenations...

    Thank you!

    PS: cache is off

  •  94
    Valentin replied

    Are your events using the repeater?

    Stachethemes Support
    My Time Zone is GMT+3


    Envato Profile | Facebook | Twitter | Newsletter | Rate & Review

  •  3
    Brewstar replied

    No...

  •  877
    Zhivko replied

    Here's the code.


    Stachethemes Developer

  •  3
    Brewstar replied

    Perfect!

    Can you give the events a date too?


    High regards,

    Jochem

  •  877
    Zhivko replied

    Yes. Here it is.


    Stachethemes Developer

  •  3
    Brewstar replied

    Thank you! You're the best! 

    Final request (this website is for 70+ year old members... sorry for the hassle)

    Is it possible to have a 'print' button next to each event?

    If this is too much work than please forget about it ;-)


    High regards,

    Jochem

  •  877
    Zhivko replied

    This should do it.


    Stachethemes Developer

  •  3
    Brewstar replied

    I can't believe it, fantastic!

    Thanks!

    High regards,

    Jochem

  •  877
    Zhivko replied

    Small update. The button "print" will not appear in print mode.


    Stachethemes Developer

  •  3
    Brewstar replied

    A 100% score, thx!!

  •  3
    Brewstar replied

    Hi,


    When an attendee brings extra guests to an event it doesn't show up on this page. It only shows the members that are attending - without the guests.

    Is it possible to add the guests per event on this page?


    High regards,

    Jochem

  •  877
    Zhivko replied

    Good point. It should now count total number of people coming with the attendee.



    Stachethemes Developer

  •  3
    Brewstar replied

    Perfect, thx!

    Can it also - like on the frontend - show who is bringing the guest(s)?

    High regards,

    Jochem

  •  877
    Zhivko replied

    Isn't Attendee name: field doing this?


    Stachethemes Developer

  •  3
    Brewstar replied

    Unfortunately not... see attachments.

  •  877
    Zhivko replied

    Try out this one.



    Stachethemes Developer

  •  3
    Brewstar replied

    Yes, you did it, thx!

  • Daniel replied

    Apologies for barging in like this, but would it be possible to include additional meta-data, e.g. emails (!!) or my custom RSVP field "company" per attendee row? :)

  •  877
    Zhivko replied

    Sorry I don't think this is doable at the moment.


    Stachethemes Developer