solved imported events showing oldest first (how to reverse this order?)

Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Hello again, all,

I have 5 years of imported events showing off my profile page, which is wonderful (wonderful that they imported!). . . but I would like to reverse the order to display newest classes first.

Help?
As always, thank you.
updated by @holly-dilatush: 02/03/17 03:17:30AM
alt=
LesRinchen
@lesrinchen
8 years ago
109 posts
I don't know about switching the order, Holly (and not sure you'd really want to do that because then the next upcoming event wouldn't be on top). But you can hide the past events in the Event Calendar module's Global Config. Just uncheck the box "Show Past Events." See screenshot.
joanna
@joanna
8 years ago
88 posts
In Events templates I found this code:
{if jrProfile_is_profile_owner($_profile_id)}
        {jrCore_list module="jrEvent" profile_id=$_profile_id search="event_date > 0" order_by="event_date asc" pagebreak=6 page=$_post.p pager=true}
    {else}
        {jrCore_list module="jrEvent" profile_id=$_profile_id order_by="event_date asc" pagebreak=6 page=$_post.p pager=true}
    {/if}
and I changed the order from ascending to descending.
It reversed the order.

We have unchecked "show past events" but from the Master Admin side, all events are visible.
Now we need more upcoming events to play with the order.

Thanks :)
Holly Dilatush
Holly Dilatush
@holly-dilatush
8 years ago
212 posts
Yes, @lesrinchen. Joanna had already figured out to hide past events so that current/upcoming show on our home page and calendar.

And Hurray! Joanna figured out and did change the order on profile page views now, too! [I don't know how she did it, she'll have to tell you.]

Here's my thinking, and a new question.

I had 319 imported pages of events. If I were a new member coming to my profile page and clicking on my events, they'd see 2012 listings. My first reaction would be to LEAVE that profile page, thinking it'd been 4+ years since this person had listed an event.

NOT what I or other members want.

Now we see the most current (Thank you, Joanna, for fixing that).

But... I will be listing many recurring events... so once we go live and I start listing events again, and enter recurring Weekly Wed. events, for example, through Feb. 2017, then Feb. 2017 classes are what is going to show at the top of my profile page list.

hmmmm.... now folks will still have to scroll through an unknown number of pages to view my classes from my profile page. If they click 'Calendar' off our menu bar, then they'll see nicer listings. And from the home page they'll see upcoming listings. All good. (Again, Thank you to @Joanna).

So my new question is... is there any way to have UPCOMING classes listed first when I click "my/your events" off of profile pages?

~ Holly
brian
@brian
8 years ago
10,148 posts
Yes - you just need to leave it how it was :) Just make sure that you are NOT showing past events, and then events will be listed in UPCOMING order, which is what you want.

Note that since you are an ADMIN you will always see ALL the events, so you need to look at the page as a regular user.

There was no need to make any changes here - what you wanted to do is already supported and the default way it works.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags