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.

Hai trovato questa risposta utile?

 Stampa Articolo

Leggi anche

Temporary Domains

Symbolic links (temporary domains) can affect the paths the calendar uses. If you're using...

Why do the pop-ups not work?

For the pop-ups to work, they must be enabled on the Pop-ups page of the Setup Manager. Pick...

Visitors can't see events

If visitors can not see events, in the calendar settings:1) On the Users screen, make sure the...

Why do background colors not show (white boxes)?

This generally happens when the categories haven't been properly saved. To fix this, log in to...

Server Path Issues

Server path issues usually occur when the calendar is moved from one server or directory to...