HOSTBABY HELP CENTER

Calendar - Show Past Dates

Show Past Dates - Variations

 

If you enable the "Show Old Events" option on your /hostbaby -> options/preferences page, you'll notice right away that it shows all your past dates *above* your upcoming dates, which may not be what you want.


There is a fairly easy way to show show your "past" dates either below your upcoming ones, or on their own separate page.. and it's called the show_calendar_past_dates() function (somewhat documented in the [Function definitions] thread in our forums).


The quick way to 'fix' this for people is first *turn off* the 'Show old events' option on their /hostbaby, then make a copy of their current calendar page, name it something like calendar-past.html (or whatever) and change basically one line:

<? show_calendar($my_artist_code) ?>

to:

<? show_calendar_past_dates($my_artist_code) ?>


That's pretty much all you need. Of course you may also want to change the title/header of the page to indicate these are past dates, and maybe also add a link back to your main calendar page. You'll also of course want to add a link somewhere else on your site (most probably the main calendar page) to this new "past dates" page, so people can actually find it.


You can also easily add your past dates at the bottom of your current calendar page.. just put in a few lines after the show_calendar() line:

<h2>Past Shows</h2> 
<? show_calendar_past_dates("artistcode") ?>

Obviously your mileage will vary, depending on how much customization you've already done on your calendar, and/or how familiar you are with PHP. If you're having any trouble getting this going on your site, you can always feel free to shoot us an email and we'll help you get it working (try and be as specific as possible with what you want to do).

 

Have more questions? Submit a request