Jump to content

Extension talk:MsCalendar

About this board

Syntax Error on MsCalendar.sql for Sqlite installations.

1
Agentdoge (talkcontribs)

For anyone who encountered an issue where the extension would fail to load because of a DbQueryError on a Sqlite installation. I managed to track down the issue in the MsCalendar.sql syntax. Here is a Sqlite compatible version.


CREATE TABLE IF NOT EXISTS mscal_names(

       ID INTEGER PRIMARY KEY,
       Cal_Name varchar(255) NOT NULL

);

CREATE TABLE IF NOT EXISTS mscal_list (

       ID INTEGER PRIMARY KEY,
       `Date` DATE NOT NULL,
       Text_ID INTEGER NOT NULL,
       Day_of_Set INTEGER NOT NULL DEFAULT 1,
       Cal_ID INTEGER NOT NULL

);

CREATE TABLE IF NOT EXISTS mscal_content (

       ID INTEGER PRIMARY KEY,
       Text varchar(255) NOT NULL,
       Start_Date DATE NOT NULL,
       Duration INTEGER NOT NULL,
       Yearly INTEGER NOT NULL

);

Reply to "Syntax Error on MsCalendar.sql for Sqlite installations."

Adding a link to event

1
77.79.239.101 (talkcontribs)

Hello is there an option to add external link to event added to this calendar?

Reply to "Adding a link to event"

How to troubleshoot this extension?

5
Kanto501 (talkcontribs)

I had to do some work on mediawiki and now all the mscalendar entries are gone and I can't manually add anything. How do I troubleshoot this issue? thank you.

Kanto501 (talkcontribs)

I'm using mediawiki 1.39.1, php 8.0, mySQL 5.7 I had an issue with the wiki that made me have to run the update.php. When I did that my problem was fixed but now the entries in mscalendar are not displaying even i can see them in the mySQL database. I have no idea how to fix this. the ms calendar extension version I'm using is 2.4 (3b3352c). Any help would be appreciated.

Kanto501 (talkcontribs)

ok, I finally figured out what to do. I had to ignore what mediawiki release I have installed and download version 3 of the mscalendar extension. Then everything worked as expected.

Kanto501 (talkcontribs)

ohoh! I made a couple small changes to a js file and the entire extension stopped working!! I don't understand why as I have done this many times and a page refresh fixed it. NOT this time! so what do I need to do to fix this?

Kanto501 (talkcontribs)

The only way I could fix this was to reinstall the version 3 master release again. Not sure why but if you edit the jquery.carendario.js file and save your change the extension breaks.

Reply to "How to troubleshoot this extension?"

my older events are not showing after updating to Mediawiki 1.39.3

1
Summary by Sophivorus

Fixed in version 3.0

Bzoltick (talkcontribs)

I installed the current release of MsCalendar. The calendar works but my old calendar entries are gone. Can we recover them?

Brad

unable to communicate with the database with MsCalendar

2
Summary by Sophivorus

Fixed in version 3.0

Bzoltick (talkcontribs)

0.245.185.37 - - [22/Apr/2023:18:53:50 -0400] "GET /index.php?action=ajax&rs=MsCalendar%3A%3AsaveNew&rsargs%5B%5D=1&rsargs%5B%5D=22.04.2023&rsargs%5B%5D=test%20123&rsargs%5B%5D=&rsargs%5B%5D=1&rsar

gs%5B%5D=1 HTTP/1.1" 404 16253

10.245.185.37 - - [22/Apr/2023:19:16:16 -0400] "GET /index.php?action=ajax&rs=MsCalendar%3A%3AsaveNew&rsargs%5B%5D=1&rsargs%5B%5D=22.04.2023&rsargs%5B%5D=test&rsargs%5B%5D=&rsargs%5B%5D=1&rsargs%5B%

5D=1 HTTP/1.1" 404 16247

Bzoltick (talkcontribs)

Now works with Mediawiki 1.39.1

1
Summary by Sophivorus

Fixed in version 3.0

Kanto501 (talkcontribs)

NOTICE: Might not work with Mediawiki 1.39+

2
Summary by Sophivorus

Fixed in version 3.0

Kanto501 (talkcontribs)

Please be aware that this extension no longer works with the current version of Mediawiki! It looks like the current owner has no plan to update it to work with mediawiki 1.38+

Kanto501 (talkcontribs)

Well I see updates where made but not sure if it was to fix for 1.38. I'm using 1.39.1 and this extension is not working with php 8.0.28, MySQL 5.7.38 on Centos

Extension Broken with 1.38

3
Summary by Sophivorus

Fixed in version 3.0

194.2.202.86 (talkcontribs)

Extension is using ajax api which was removed in mediawiki 1.38

no events are displayed nor is it possible to create new ones.

Sophivorus (talkcontribs)

Fixing this requires substantial rewriting which I'm not about to make, so I'm marking this extension as incompatible with MediaWiki 1.38+

Bzoltick (talkcontribs)

This is such a useful extension. It appears that the

  • Ajax action that was deprecated in 1.27 now has been removed.

Can't you replace your calls with something using jQuery?

Your calendar is just great and it would be a loss to the community if it is no longer supported.

How can I reduce the width of the header?

1
2A02:8070:782:3C00:C4E4:352E:9307:6EE1 (talkcontribs)

Hello,

I was playing around with the size of the MsCalendar. I was able to change the days in width, but the Header with the "Today" and Month and Year input always stayed at a 100% of the page.

How can I change that? I would also reduce the size of the input field for the year.


Has someone experience or knows the code? Thanks!

Reply to "How can I reduce the width of the header?"

how can I use only weekday?

1
123.141.115.65 (talkcontribs)

plz tell me T^T

Reply to "how can I use only weekday?"