Extension talk:DschosCalendar

Fyi, I noted the following when trying to use this extension:
 * The DschosCalendar.php file is missing a closing php tag.
 * The calendar_template.html file is not being loaded properly. The following line in DschosCalendar.php is incorrect:  $calendarExtensionPath = ereg_replace("[^/]*$", "", __FILE__);
 * DschosCalendar.php contains a reference to CalendarAdjust.php (this isn't hurting anything but since that file is no longer used, references to it should be removed). —The preceding unsigned comment was added by 216.99.15.253 (talk • contribs) . Please sign your posts!


 * Just a FYI: MediaWiki PHP files nowadays don't have the closing ?> tag, as per 23531. -- Sayuri 22:00, 12 September 2007 (UTC)

I have just installed your DschosCalendar. I think I have followed the install instructions correctly. My Problem Can you please assist me in trying to add an event to your very nice Calendar? --User:zs6ro 09:25, 27 September 2007 (UTC)
 * I am using MediaWiki 1.11.0 on SuSe Linux 10.1 ...
 * I was getting vertical lines running through the Calendar template and also 'boxes' around the 'Add Event' comments.
 * I deleted the reference to CalendarAdjust.php in DschosCalendar.php and these lines disappeared.
 * Everything now looks similar as on the Calendar png sample in your page.
 * I must admit that instead of 'DschosCalendar.php' I have 'calendar.php' ...
 * Both the 'calendar.php' and the 'calendar_template.html' are in the 'extensions/Calendar' directory.
 * I cannot add an event to any date.
 * This was happening before and even after I did the above changes.
 * If I click on 'Add Event' I get to an edit page and i can add text.
 * When i Preview the edit page, i see what I typed.
 * If i save the edit page, it returns to the Page where the text should be visible. Its not
 * Searching for the page, is unsuccessful. It appears as if the Page wasn't saved.
 * The calendar doesn't show this event.
 * I deleted all references to 'Calender-' the calendar.php file.
 * This allowed me to save an edit page with just the date 2007-09-27.
 * But still not visible in the Calendar.

Multiple Calendars
What's the easiest way to have multiple calendars on the same Wiki? Each department is wanting their own, and one department is looking to have multiple of their own.


 * I figured it out. :) [doh!]




 * Interesting. We would like to be able to do that, too.  However, this extension works fine as a special page, but it doesn't seem to permit instantiation within other pages. If I put your markup in one of my pages, I just see the markup, not the calendar.

GiftsForYouBiz

I made it work this way
Replaced

$calendarExtensionPath = ereg_replace("[^/]*$", "", __FILE__);

with

$calendarExtensionPath = dirname(__FILE__) ;

-- Lorenzo Pedrotti