Extension talk:MsCalendar

About this board

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?"

First day of the week

5
Summary by Sophivorus

To set Sunday as the first day of the week, change line 47 of the file jquery.calendario.js in the js directory. Instead of:

startIn : 1

Write:

startIn: 0

Then remember to refresh the calendar page to reload the JavaScript.

Setting this from LocalSettings.php is currently not possible.

This feature request is tracked at phab:T241729, please comment there.

109.226.22.11 (talkcontribs)

Is there an option to change the first day of the week e.g. monday to sunday? and is there other attributes to use with this calendar?

SmartK (talkcontribs)

This would be cool, but there is no option yet. Maybe you can code that?

Roips (talkcontribs)

Yes, just change the file jquery.calendario.js inside the js folder.

At line 47:

Instead of

startIn : 1

Write

startIn: 0

P.S.: Click Ctrl+F5 in the browser in order to reload the updated JavaScript

Kanto501 (talkcontribs)

The change of line 47 from startln: 1 to startln: 0 works but... the shading does not move for the days of the week now instead of saturday and sunday shaded it has friday and saturday shaded. How to change the shading to be saturday and sunday once changing the start of the week to sunday?

Kanto501 (talkcontribs)

ok, figured it out:

in the jquery.calendario.js file:


line 47 change startIn: 1, to startIn: 0, //this changes the start day to Sunday

line 263 change if( j <= 6 && j >= 5) //weekend to if( j == 0 || j == 6) //weekend //this will move the shading for the weekend days to be Sunday and Saturday. If you don't make this change the shading for weekend will be Friday and Saturday.

Reply to "First day of the week"