How to use $thisFile

In some instances, PHP will not be able to provide the calender with the correct file name of the page the calendar is integrated into. When this happens, the navigation arrows (or form fields when using the TOC Mode Calendar) may redirect you to a different page than the one that displays the calendar.

Fortunately, this is fairly easy to fix. All you need is the actual file name of the page (such as index.php or events.php, etc.) and to add one line of code to your page.

To fix this, add the following line of code to your page where the calendar has been integrated. Place this code just before the calendar "require" line of PHP code. Replace "FILENAME.php" with the actual name of the file where the calendar is integrated.

$thisFile="FILENAME.php";

Upload the changed file to your server and, as long as the file name is correct, everything should work as expected.

Was this answer helpful?

 Print this Article

Also Read

How to use the unset command

If you are displaying multiple copies of the calendar on the same page, you may need to clear...

Why is the time an hour off?

Does your calendar mark the next day an hour late or an hour early? This probably is because of...

Can not log in to the fourms or the support ticket system

*NOTE: The support ticket system was changed in the first part of 2012. All previous support...

Calendar stopped working

So, the calendar was working wonderfully, but suddenly it has stopped. This guide will help to...

Forgotten Password

To reset a forgotten master password:1) Download the calendar files from your Client Area that...