Forum Replies Created

Viewing 5 replies - 76 through 80 (of 80 total)
  • ba95472

    (@ba95472)

    Thanks for the reply Brook. Unfortunately, I still respectfully disagree to the sort order logic for the past events list page you provide. Once again, as you click on the previous event link you go back to the previous event, right? This is how it should be and that pattern is logical. This is the pattern we’re after maintaining when you go to the past events page.

    By jumping to the past events in chronological order, the pattern of newest to oldest is broken. Since it’s a MySQL database sort order call, this really should not be a big deal from a programming point of view.

    For example, I’ve been using a similar reverse chronological sort order for nearly 15 years on a classified ads site I run. Most recent dates are first going back in time to the oldest. With nearly 12,000 records and spanning 1,000+ pages, the idea of having the oldest date first would be unworkable. In short, a chronological sort order would mean forcing a user to tab through to page 1,000 to see the latest ads. This would be upside down and a big waste of time. People want to see the most recent events on top, not the oldest.

    Thanks again.

    I might also add that when you click the previous event link on a page, it goes to the event that just passed, as expected. Why then should it jump to all the past events in chronological order when you go to the Previous Events list page? That’s inconsistent logic and poor usability design.

    I agree with Jonibean. Reverse order display should be a calendar settings option, not a hack. If you think about it, it’s not logical to have past events go all the way back to 1969 and then have to page through to what just happened most recently, right?

    As for getting a customization, what file would that be to change the database sort order call from ASC to DESC?

    Thanks.

    Thread Starter ba95472

    (@ba95472)

    Got it! Was very easy to do, once I figured out the where and the what of it (like most things in life). Unfortunately, finding the information from Tribe on just how to do something as simple as adding the City and State to the calendar widget I found to be anything but. So with that in mind, here goes:

    1. Make a new folder in your WordPress theme called tribe-events
    2. Make a sub folder within that called widgets
    3. Make a file called list-widget.php
    4. Copy & paste the list-widget.php data from the plugin file of the same name.
    5. Add the following code over the existing duration div

    <div class="duration">
    <?php echo tribe_get_city(); ?>, <?php echo tribe_get_state(); ?>
    <br>
    <?php echo tribe_events_event_schedule_details(); ?>
    </div>

    For more info (and because there’s no forum search here…), I’ve posted this and some other plugin hacks to my blog as well
    https://fluteplayer.net/the-events-calendar-plugin-adding-city-state-to-the-widget/

    Thread Starter ba95472

    (@ba95472)

    Thanks Leah. I have checked out the links you’ve provided. Perhaps some other PHP whiz has already figured out how to hack the widget to show more fields than just the Title and Duration? If so, I’m sure many of us would appreciate knowing the how to.

    Thanks again.

Viewing 5 replies - 76 through 80 (of 80 total)