Ah!
The installation of cal.php (the small calendar hack) included the "include 'global.php';" statement at the beginning. During installation, I was getting errors, until I commented this line out.
Not sure if that has anything to do with the issue I was having, but this sure does:
The code in cal.php uses the same variable names as vBulletin itself does to represent Day, Month and Year. Because of this, the variables were getting rewritten during the include of cal.php, which reset the values to November 31, 2002 (not even a real date, but oh well).
In cal.php, I changed every occurrance of $year, $month and $day to $smcalyear, $smcalmonth and $smcalday.
It now appears to work fine and the small calendar also appears fine. :banana:
Thanks for your help, Xenon.
|