News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Showing upcoming calendar events on header?

Started by Ionwind, September 27, 2016, 09:02:08 AM

Previous topic - Next topic

Ionwind

I would like to show upcoming calendar events on the header beneath the "Hello User" section on every page.

What I tried to do:

I got a code snippet from BoardIndex.template.php that shows the upcoming calendar events on the Info Center block and I tried copying it to index.template.php. This works fine on the home page, but doesn't seem to work on other pages.

It seems that $context['show_calendar'] returns 0 on other pages than home page.

What should I do?


Ionwind


Advertisement: