Support » Plugin: Very Simple Event List » Upcomming Events Orderby

  • Resolved ResenNet

    (@resennet)


    Hi,

    I have a little problem with the ordering of the events on my site.

    i have two events, both of them starts in january.
    one of them starts the 27th of january and ends the 29th of january.
    the second one starts the 8th of january and ends the 26 of febuary.

    my problem is that vsel orders it so that the event that starts the 27th is first displayed, even tho the second event clearly starts before the first event…

    here is a screenshot of it: http://imgur.com/a/DkjTr

    i tried looking in the vsel-upcoming.php but couldnt figure out why it ordered it that way, since im not that good with php yet…

    Sebastian
    ResenNet

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Guido

    (@guido07111975)

    Hi Sebastian,

    It uses the end date for the upcoming events listing.
    That’s why the event that ends on the 26th of february is always displayed after the event that ends on the 29th of january. So start date is ignored in this case.

    Guido

    Thread Starter ResenNet

    (@resennet)

    Hi Guido,

    Is it posible to change it to set the orderby to look at start date instead of end date?
    and if so, how ?

    Sebastian ResenNet

    Plugin Author Guido

    (@guido07111975)

    Hi,

    But in that case the listing of the event ends if start date is over… so multi-day events will not be properly listed anymore. That’s why I use the end date.

    Guido

    Thread Starter ResenNet

    (@resennet)

    Hi Guido,

    I talked to my customer, he will not be have more than one event, that starts the same date.
    Would it be possible to change it to look at the start date instead and how ?

    Sebastian
    ResenNet

    Plugin Author Guido

    (@guido07111975)

    Hi Sebastian,

    Try this, open file vsel-upcoming.php and look for:

    
    'key' => 'event-date',
    

    Change that into:

    
    'key' => 'event-start-date',
    

    Note: I haven’t thought about other possible display conflics yet..

    Guido

    Thread Starter ResenNet

    (@resennet)

    Hi Guido,

    Thanks for the quick response.
    ill let you know if it works out fine 🙂

    Plugin Author Guido

    (@guido07111975)

    Hi,

    Closing this topic because of no new replies.

    Guido

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Upcomming Events Orderby’ is closed to new replies.