Tuesday 15 July 2014

php - Want to order eventbrite events list so upcoming events show up first -


How can I modify the following calls so that incoming events appear first. Currently this order is very random; I need to show the most recent events at the top and no previous event should be displayed ...

  & lt; Div class = "events-links" & gt; By & lt;? Include "eventbrit / eventbrit.fp"; $ Authentication_tokens = array ('app_key' = & gt; 'APP_KEY', 'user_key' = & gt; 'USER_KEY'); $ Eb_client = New EventBack ($ authentication_token); $ Event = $ eb_client- & gt; User_list_avents (); ? & Gt; & Lt; Span class = "motivational" & gt; Upcoming events & lt; / Span & gt; & Lt ;? = Eventbrite :: eventList ($ event, 'eventListRow'); ? & Gt; & Lt; / Div & gt;   
  • These are not my tokens; I have changed them just before posting random characters :)

    If you use The user_list_events method, you can filter your code by adjusting the event_statuses field. Valid options include: live, start, or end up to display only upcoming events, for example: event_statuses = live .

    Result will soon be displayed in upcoming events from the upcoming event.

No comments:

Post a Comment