Talk:Test calendar

From FollowTheScore
Jump to: navigation, search

Customization questions

Some questions (--Eiland 15:44, 13 April 2007 (CEST)):

  1. I want the date syntax to be 2007-04-05 whatever event, so dashes instead of slashes; where do I modify this template?
  2. Is it possible to make a template for upcoming events? So for example the 10 next upcoming events? Or the ten next days?
    • Next ten days should be easy, as dpl can take several arguments for "titlematch". Create a template with the following code, and insert it in a page (you may change the "order" method at the last line, depending on how you want to see things):
{{#dpl:category=Events
  |titlematch={{#time:Y/m/d | +1 days}}%¦{{#time:Y/m/d | +2 days}}%
  |include=#Summary,#Participants
  |mode=userformat
  |resultsheader=There are %PAGES% events planned in the next 2 days.
  |noresultsheader=No events planned so far for the next 2 days.
  |listseparators=¶{¦ class="wikitable" ¶!Date / Event name ¶!Categories ¶!Event summary ¶!Participants,¶¦-¶¦<h5>[[%PAGE%]]</h5>¶¦ %CATLIST%,,¶¦}
  |secseparators=¶¦
  |ordermethod=title
  |addcategories=true
  |order=descending
}}
--Ycombarnous 19:38, 16 April 2007 (CEST)
  • Yep, thats it. Had some difficulty, before I remembered to replace the Y/m/d by Y-m-d's --Eiland 12:33, 17 April 2007 (CEST)
  • hm, can the output-number ber restricted? say I want to see max. 10 events? --212.204.157.222 23:29, 13 August 2007 (CEST)
use count=10. Gero 17:40, 26 August 2007 (CEST)
  1. Can these events be imported/RSSFeed' anywhere (maybe this is a DPL function?)
  2. On the monthly calendar layout, the date of the month could have __<<__ april __>>__-links for moving to the previous/next month.
  • Not sure what you mean here, there is already a a link on both sides of the month name to go to the previous/next one? --Ycombarnous 19:38, 16 April 2007 (CEST)
  • Ah, interesting, you're right. I don't have that. Is it another template? or is it the #ifexist phrase in Template:CalendarSingle? --12:33, 17 April 2007 (CEST)
  • When you call the "CalendarSingle" template, you have to specify the "basepage" name. Below is the code it will use to find if there is a previous month page existing (basically, if current calendar month is May, it will look for "Basepage April 2007" article, and add a "previous" link if it exists):
{{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|<<]]|}} 
--Ycombarnous 12:43, 17 April 2007 (CEST)
  • Is it possible that, when it not exist, it creates a new age, just like the new-event-form, according to a Template:Month? That would save me from copying-in all the months myself --Eiland 18:57, 17 April 2007 (CEST)
See Template_talk:CalendarSingle, which is getting there.

backlink

Maybe the individual event pages should contain a back-link to the calendar page? --Gero 07:01, 16 April 2007 (CEST)

Or a little calendar on each page? Tobias Conradi 19:04, 10 August 2007 (CEST)

publishing the calendar templates

  • Did you ever think of publishing these templates under wiki extensions "calendar" ?

--Gero 17:37, 16 April 2007 (CEST)

  • Yes, I thought of that place. Your calender solution competes very well with the other extensions around, I think. -- 84.58.213.243 20:50, 16 April 2007 (CEST)


The User:Hex2bit/Calendar may be a good choose

I would like to use User:Hex2bit/Calendar because it can creates calendar for each member using the wiki, but it cann't create a page with a title using the format like "03-01-2007". So anyone have ideas to solve the problem.

ISO 8601 conformance

Can the examples be changed to be ISO 8601 comform? [1] If it is ok, I would do the work. Tobias Conradi 18:58, 10 August 2007 (CEST)

I was not able to create support of old and new format Tobias Conradi 02:57, 11 August 2007 (CEST)

ParserFunctions/Expr.php errors

  • MediaWiki: 1.9.1
  • PHP: 5.1.2-Debian-0.1~sarge1 (apache2handler)
  • MySQL: 5.0.20-Debian_1-log

ctype_alpha

function ctype_alpha not available, had to add the following to Expr.php

if ( !function_exists('ctype_alpha') ) {
   function ctype_alpha($string) {
       //if ( !preg_match('|[^\pL]|', $string) )
       /* Warning: preg_match() [function.preg-match]: Compilation failed: PCRE does not support 
       \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in 
       /.../extensions/ParserFunctions/Expr.php on line 6
       */
       /* alternative: */ // 
       if ( !preg_match('|[^A-Za-z]|', $string) )
           return true;
       else
           return false;
   }
}



Tobias Conradi 11:00, 11 August 2007 (CEST)


  • I've installed all the templates as per installation instructions.
  • I installed "Call", "InputBox", "Parserfunctions", "DPL", and the 'kitchen sink' !!
  • I'm using Mediawiki 1.11.0 on SuSe 10.1 Linux, PHP: 5.1.2, MySQL: 5.0.18-Max.
  • When I get to the part where I must add the relevant "calendar month|year=2007|month=09|basepage=Current events September 2007" to the Page "Current events September 2007", and then Preview, I get a blank screen. If I save, I also get a blank screen.
  • I can browse my other WikiPages but cannot get the Calendar or DPL table to show up.
  • Is there an 'easy' way to test DPL to see if its working correctly ?

Any idea where I may have gone wrong ?? --Zs6ro 00:27, 28 September 2007 (CEST)

Template:Calendar/MonthStartError: invalid time

I created the template files, added inputbox, call, etc. to my site, but when I load the Currents Events I get the inputbox with the error: Template:Calendar/MonthStartError: invalid time

Some of the information is also confusing and since this is my first time with Wikis, may just be that I don't understand the instructions.

I used the same call as shown in this site and it isn't working:

__NOTOC__
{{:Test calendar {{#time: F Y}}}}

I am really interested in implementing something like Wikipedia is using, which looks like this, but has links for each day so that people can simply add something to any day they choose.

Also, I entered an event and when I enter the same date, the event comes up in edit mode, but it does not show up when I click the Current Events link.

I am confused....anyone have some ideas?

Thank you


What happens if you write {{#time: F Y}} in an empty article? You should see something like "May 2024". I get the impression that your "ParserFunctions" extension returns "Error: invalid time" instead of something useful. And then that error message is concatenated with the path to an article ...

This must lead to an error. If you get over this, make sure that you have an article which has exactly the right name (in our case "Test calendar September 2007") and calls template 'calendar month' with the correct parameters. Next you can try to add "debug=5" (or "debug=3") to the "Template:Calendar month" and see what happens.

Gero 22:01, 29 September 2007 (CEST)


Gero, I saw your reply to the other guy so I tried the {{#time: F Y}} in an empty page and it came back with "September 2007" which i think is correct ..

I tested DPL and Call and they appear to be working fine, but the Calendar isn't working.

I can't get the actual calendar's to come up or the DPL tables. And any events I write don't show either ???

Any ideas ???

-- Zs6ro 23:51, 29 September 2007 (CEST)

Is the DPL being called? You could remove ONE *{* before the DPL statement and then you will see the DPL statement in the output (because it is no longer recognized as a parser function call). You could then copy that DPL statement to an empty article and execute it directly. You can strip down conditions until you get some output. Is that clear to you?

Gero 23:58, 29 September 2007 (CEST)

I think I know what you mean ... I removed one '{' from the Month template but nothing shows differently. I don't get any error messages.

If i click on the Mon to Fri templates i can see the calendar pictures .. Anything else and nothing shows up on the templates other than the Categories at the bottom of the pages.

Is there some way i can progressively work through this problem ??

I'm not sure if I am reading the Calendar install instructions correctly .. I think I'm doing the right thing but there seems to be some confusion now and again ...

--Zs6ro 00:11, 30 September 2007 (CEST)

I think this is only a minor problem. Leave us a link to youur wiki and we'll have a look at it. Gero 13:00, 30 September 2007 (CEST)


Gero, I would love you to look at the Wiki, but its not on-line .. I have two servers running here and http port=80 forwarding is to the 'other' server (the one that doesn't have the Wiki on it) ..

The idea is to get the Wiki shipshape and then place it on-line and take the other http (port-80) server off-line .. Do you mind if you 'hold my hand' and guide me through the processes and I can try and supply you with the information so you can make an educated decision ??

--Zs6ro 13:11, 30 September 2007 (CEST)

That´s o.k.

  • write an article which contains as its only line
{{calendar month|year=2007|month=09|basepage=Calendar Test}}

Note that in your case "Calendar Test" might have to be replaced by whatever name you have chosen for the basepage. What happens?

I did the same and put that statement onto your homepage in this wiki, see User:Zs6ro. So you can easily compare the version here and your own code.

Gero 16:10, 30 September 2007 (CEST)

Gero, I placed the line

{{calendar month|year=2007|month=09|basepage=Calendar Test}}

into a Current events Page and got the same results as when I had

__NOTOC__
{{:Current events {{#time: F Y}}}}

And that is, a blank screen ...

--Zs6ro 16:20, 30 September 2007 (CEST)

Gero, If I download your Calendar files as is, what is the basepage set to in these files - Events- ??

--Zs6ro 16:27, 30 September 2007 (CEST)

As the manual explains, the 'base page' is a prefix for the calendar page of each month. This means that you must manually create a page like Test calendar September 2007 in your wiki. This page will only contain one line of code. See the example here on this website.

Gero 16:36, 30 September 2007 (CEST)

I think I understand your problem and I changed the description of Test Calendar. The description supposes that you in your wiki use something like "Current events" as basepage whereas in this wiki itself "Test calendar" is used. This may have caused the confusion.

Gero 16:52, 30 September 2007 (CEST)

Gero, I downloaded (by exporting/importing) the Calendar Templates from this site .. I didn't edit the Templates !! ... I created a basepage "September 2007", placed

{{calendar month|year=2007|month=09|basepage=Current events}}

into it ..

It keeps coming up as a blank page !!!

Are you saying that I must edit the templates from "Test calendar" to "Current events" ?? .. If so, i have done that before but always get the same results !!

--Zs6ro 16:55, 30 September 2007 (CEST)


Gero, I followed your edited instructions again and still get the same results - a blank screen ...

And my 'Call' gives me "Template:Sun" all the time instead of the Call Help screen !!

Do you have Skype so we could 'talk' this out Gero ?? .. This is getting to me now Grrrr!!!!  :)

--Zs6ro 17:23, 30 September 2007 (CEST)

I do not use skype. But I still think that your problem is only the naming of the monthly pages. They must be named "Test calendar September 2007" or similarly, not just "September 2007". And the basepage argument of that page must exactly correspond to the basepage.

Regarding the "Call" extension: If you use firefox or Opera you should add a final "/" after the Call to see the Text of the Special page. Or, even better, you download DPL 1.4.5.
I will try to add another piece of information to the documentation. Keep calm ;-)
Gero 19:03, 30 September 2007 (CEST)

Gero,

OK, downloaded DPL 1.4.5 and installed .. made no difference ... I have Call 1.4.5 also installed - no difference ...

Went through all the Calendar Templates .. They 'appear' OK ... They have 'Category:Events' as they came off of your site .. As I said earlier, the Mon to Fri templates show the calendar pictures - and thats the only time I see anything remotely looking like a calendar ... Even DPL tables don't show up !!!

All my monthly (3 of them Aug, Sep & Oct) are in the format you suggest 'Current events September 2007' ... They have "{{calendar month|year=2007|month=09|basepage=Current events})" in each of them (with their respective dates) ..

If I place 'Current events {{#time: F Y' in a new Page I get a blank Page ...

Call continues to give me just "Template:Sun" in all three browsers (IE7, Opera-9, Firefox) even if i place a "/" after Call ...

I am taking it easy - just getting frustrated !!! :)

--Zs6ro 19:45, 30 September 2007 (CEST)


Gero, should the Events Template have the 'Test calendat#Demo" changed to (in my case) "Current events" ?

[[Category:Events]]
<p align=right><small>to '''[[Test calendar#Demo|calendar]]''' ..</small></p>
<noinclude>[[Category:Calendar Templates]]</noinclude>

or should it be left as ??

--Zs6ro 20:01, 30 September 2007 (CEST)


Yes, you should change that. I think it is best if we use the same names here in dpldemo wiki. Then you can compare directly. I will make the modifications. Have a lokk again tomorrow.

Gero 21:15, 30 September 2007 (CEST)

I had already changed the "Test calendar#Demo|calendar" line to "Current events|calendar" and it didn't help ..

As far as I can make out, I have checked and double-checked everything here but I am aware that i can easily slip up and miss something .. Instead of me moving forwards i seem to be going backwards and nothing is working ...

--Zs6ro 21:21, 30 September 2007 (CEST)


My suggestion: You make your wiki available under a public address (you needn´t tell anyone .., send me a mail with the address) and then I have a look. The whole thing becomes kind of a personal challenge for me ;-).
I am disappointed that our software causes you so much trouble, but on the other hand going through trouble is the best way to learn. IT people are paid well because they have made many mistakes in the past and learnt from them ... Good night!

Gero 23:07, 30 September 2007 (CEST)

Gero, (Good Morning) Yes, thats what I was telling myself - that by having these problems I am learning a great deal in a very short time-span .. I already have a good idea on the structure of the program (thanks to your flowchart) and i am learning wiki code too (I've only been playing with Wiki for about a week - (guess I'm a newbie in this regard) ... I am running phpBB for a number of years and also by tweaking it, learned a great deal ...

I also understand the 'challenge' this problem has given you - I feel the same way (Grrr!!) and won't let go until its solved !! Are you available all day or do you work, college whatever ??

I'll try and see if I can make this wiki public, even for a short while, and let you know ..

--Zs6ro 07:48, 1 October 2007 (CEST)


Gero, I have set the port forward to the other server .. I can't test from the public side, so don't know if its working ... Try www.zs6ro.co.za/wiki ... Hopefully it'll work ... I think if you just type www.zs6ro.co.za it will bring up the phpBB page ...

Anyway, try it and let me know please .. I'm here for the whole morning until 10:00 UTC and then the afternoon is broken up with a few errands I have to do ..

--Zs6ro 08:04, 1 October 2007 (CEST)


Gero, I tested it by phoning someone and asked them to try it .. Its available on www.zs6ro.co.za/wiki ...

I see that Call is working !!! .. i get the Help screen now .. Did you do something ???

Calendar isn't working though ...

--Zs6ro 09:18, 1 October 2007 (CEST)


I see that only Firefox is displaying the Call Help screen now !! ..

IE7 displays "Template:Null" and Opera 9 is displaying "Template:1" ...

--Zs6ro 11:43, 1 October 2007 (CEST)


Gero, I see you have made progress - thanks ..

My calendar seems to have a problem with the '28' for any month selected ???

I also see that my calendar for October starts on SUNDAY !!

I also see that your Demo Calendar for October starts on TUESDAY instead of Monday ??

--Zs6ro 15:30, 1 October 2007 (CEST)


Read your discussion page! It is not a DPL problem. You must upgrade other extensions.

Sorry for the start day confusion. I'll check that.
Gero 18:04, 1 October 2007 (CEST)

What extensions need upgrading ??? .. I read the Discussions earlier and saw you had put a Strings extension up - i have installed that already ...

--Zs6ro 19:03, 1 October 2007 (CEST)


Gero, I see you have corrected your calendar start days etc on your Page ... What do i need to do to get mine right ??? And how do i sort out the '28' problem ??

Also, the DPL tables on my Calendar don't seem to have the colours around them to make the text stand out nicely like yours does ???

--Zs6ro 10:01, 2 October 2007 (CEST)


I left you a note on your discussion page in your wiki http://www.zs6ro.co.za/wiki/index.php/User_talk:Zs1ro You must get a newer version of the ParserFunctions. Once you are around that you can uncomment the lines in template CalendarSingleton which I had to comment out (to avoid running into the crash of ParserFunctions). Your wiki should now start with the correct day of month. The mssing colors have to do with the stylesheet (see MediaWiki:Common.css) Gero 16:33, 2 October 2007 (CEST)


Gero, I'm not thinking properly <Grrr!!> ... I read your earlier post and had a look at 'my talk' but didn't find anything so thought that maybe you meant something else ... now that you place a url I see it was to 'zs6ro' .. I usually log onto my wiki as Admin !!! .. I had a quick look and saw your post .. Sorry for creating unnecessary confusion ...

I will read it and follow your suggestions and come back to you .. Thanks for the help so far ..

--Zs6ro 17:13, 2 October 2007 (CEST)


Gero, I went to the url provided from your Calendar Page (ParserFunctions) downloaded the three files and installed them ..

Took the remarks off of CalendarSingleton as suggested and still same problem (white screen) and the calendar images are the same ..

What now ??

--Zs6ro 18:13, 2 October 2007 (CEST)


You are very quiet Gero ???

I've tried various things here and read a lot from ParserFunctions Page but I cannot get the ifexpr to work ...

I don't know where else to look ... Have you some idea of what i could do to maybe do a workaround on this problem ???

--Zs6ro 11:36, 3 October 2007 (CEST)


I did a test with MW 1.11 and the latest version of ParserFunctions. But everything works fine here. Let me think a moment ... Look:

{{#ifexpr:a >= 28|yes|no}}
produces a reasonable error message here: Expression error: Unrecognized word "a"..

Now go to [2] and insert an opening curly brace atthe beginning of the line. If you try to save you will get the blank page...

Gero 12:34, 3 October 2007 (CEST)


Yes, I get a blank screen ...............

My system comprises of :

  • I'm using Mediawiki 1.11.0 on SuSe 10.1 Linux, PHP: 5.1.2 (apache2handler), MySQL: 5.0.18-Max.

????

--Zs6ro 12:51, 3 October 2007 (CEST)


The whole thing has definitely nothing to with DPL, but I tried to help because I felt you needed help and you worked hard .. And because more than 30 years ago I was quite interested in Amateur radio ;-)

If I were you I would make a fresh installation of MW 1.11 from bottom up. Start with a clean new database and then install ParserFunctions as the first and only extension. Type in the one-liner example. It MUST run correctly if you do it that way I would say. Then add DPL and other extensions. Believe me the "back to square 0" approach will save you time and pain in the long run ...

Gero 12:59, 3 October 2007 (CEST)


OK Gero "sigh" ...... "Grin" ...

Done this "back to zero" many times before with other 'problems', so will bite the bullet and try it ... Admittedly I have a bit more savvy under my belt than a few days ago when I first started with the Wiki ..

I agree that it doesn't appear to be DPL ... My limited knowledge in that respect tells me that its a ParserFunction issue .. Reading their Pages it appeared as if this 'expr' issue had been resolved .. Which then suggests, like you say, that maybe something else on my side may be the culprit ..

You say "more than 30 years ago, you were interested in Amateur radio" .. Does that mean you didn't pursue it ?? .. (Where are you from by the way ?? - Me, I'm in Johannesburg, South Africa) ... I've been a Ham since the mid 60's ... Run packet and pactor radio bulletin board on radio (hf vhf uhf) and also on the Internet ..

I'll keep you informed ... And again, many thanks for all the assistance - I did learn some stuff from you :-) ...

--Zs6ro 13:17, 3 October 2007 (CEST)


Gero,

I installed a fresh Wiki 1.11.0 and then installed just PasreFunction extension ...

Then I opened a Page and entered
{{#ifexpr:a >= 28|yes|no}}
and saved ... GOT A BLANK SCREEN ????????????

I've stopped with the fresh install ................

What do you suggest ???

--Zs6ro 14:26, 3 October 2007 (CEST)


I did this test
{{ #if: 1=1 | Yes | No }}
and it worked 100% on both of my Wiki installs - Gave me 'Yes' ...

Definitely an 'expr' problem .... How to cure it now ???

--Zs6ro 14:32, 3 October 2007 (CEST)

On your personal discussion page in this wiki you will find the sources of ParserFunctions.php and Expr.php. Try with that version. Gero 18:07, 3 October 2007 (CEST)


Gero,

I still get a blank screen .......................

--Zs6ro 23:10, 3 October 2007 (CEST)


Gero, I tried dropping down a sub-version on PHP5 just in case that may have been the problem but still a blank screen ..

Clutching at straws (and also because I wanted to try this), I installed MediaWiki 1.12 and have been using svn Update to update the builds (I wasn't aware how many time the 1.12 version is updated in a day !!) .. (The wiki works but still have the same problem with the blank screen on 1.12 ..

The above experiments suggest that the Wiki is not the culprit but something on my server ... The only two other things is PHP and Apache ??? What is your opinion ???

Is there any way you could write the calendar section to not use #ifexpr ???

--Zs6ro 18:11, 4 October 2007 (CEST)


Gero, I had a mains power failure for two hours this evening (02:00 - 04:00 UTC) and when things settled down here I checked the function
{{#ifexpr:a >= 28|yes|no}}
and it gave me the CORRECT reply
Expression error: Unrecognised word "a"

So, I guess if I had rebooted the server back then it would have saved me a lot of time and hassles ... My apologies for using up this space for what appears to have been a lot of Red-Herrings ...

I now have the Calendar images looking correct .. But, the starting dates are not right ... October 2007 is showing a starting day of Sunday instead of Monday and it has only 30 days instead of 31 days .. September 2007 has 31 days instead of 30 days !!

Also the days that have events are not bold ...

How do I correct this Gero ???

--Zs6ro 19:25, 9 October 2007 (CEST)


Good to hear that you are through that mess. For some strange reason the time function seems to behave differently on some machines. You have to change 5 lines in CalendarSingle (replacing 01 by 02). See here. To be honest I do not know why this is necessary. Please try it. If you are not succesful you should tell me where I can find your installation and I will look after it.

Gero 21:24, 9 October 2007 (CEST)

Gero,

OK, that was an easy change - it works (at last) - I wonder if the change from '01' to '02' isn't something to do with some machines running their times on UTC (like mine) while others are on local time ??? ... Maybe you could make a note of this in the install instruction, though on the other hand, it may cause more confusion ...

Oh, by the way, I got the bold days to show up when an event was set for that day, by un-remming the one file where I think you must of edited it to stop the dreaded blank screen ..

So, bottom line - the calendar works now and looks 100% ... Many many thanks for all your assistance ... Now I can continue ...............

--Zs6ro 21:44, 9 October 2007 (CEST)


I believe it is mutually rewarding to help each other (some "HAM spirit" also in the internet ...). I wish you success with your wiki. Drop us a note when your wiki is up and running! Gero 21:56, 9 October 2007 (CEST)


Yes Gero, I have been rewarded .. I help a lot of Hams with packet radio and other digital modes, and here you have helped me (payback time) and I appreciate it ... And as we discussed in earlier posts, battling like this makes one more aware of the program and what it can and cannot do, or at least, a better understanding ...

Once my wiki is "up and running' I will definitely drop you a note ...

--Zs6ro 22:05, 9 October 2007 (CEST)


Gero,

Another question !!!

How can one set up a recurring event .. Example - Christmas day, or a birthday, year after year, automatically showing up each year ???

--Zs6ro 23:23, 9 October 2007 (CEST)


Gero, I'm back (again) !!

You haven't answered the question above regarding the possibility of 'recurring events' on the calendar ???

More serious is the problem I'm having on and off with the 'Call' extension ..

If I try the "Special:Call/:Sandbox,Hello world!| good morning!" line, on Firefox I get 'Template:6623270f47de4649818426c950d3b945' which can vary, on IE7 I get 'Template:Null' and on Opera 9 I get 'Template:1' ...

I get this whenever 'Call' is called .. In other words I cannot go to a 'next' or 'previous' month on the Calendar !!

Sometimes though it does work ....

--Zs6ro 13:29, 11 October 2007 (CEST)

Recurring Events

The latest version here in this wiki understands yearly events. See the documentation.

Gero 09:30, 12 October 2007 (CEST)

Problems with Call extension

I found the reason for those problems. They come from the browser. The browser adds virtual call parameters to the http request which contain cookie information for active sessions. The sequence where these parameters are inserted and how they are named differs between the browsers. So if you reset your browser cache (clearing session cookies!) the Call extension will probably run at the beginning. But sometime afterwards (maybe you logged into another web page meanwhile) the Call extension will get additional parameters which it does not know. And it takes one of those parameters as the name of the target template. And because it is not a valid template name aou will see a red link. The name of the link will probably be the key of some active browser session... (see your example)

I will soon upload a Call version which at least can show the offending parameters. Then you can add a line to the source of the Call_body.php which ignores those parameters. Maybe there is a more generic way to solve this but at the moment I don´t know. Currently browser parameters are ignored if their names contain the string:

  • UserName
  • UserID
  • _session

but obviously this does not catch all cases.

Gero 09:30, 12 October 2007 (CEST)

Gero, thanks for the explanation on the browser problem ...

I tried the recurring dates as explained in the documentation (YYYY-12-25 Xmas Day) and 'naturally' it doesn't work here !!!

Did you change one of the files and if so, which one(s), so I can download the relevant file(s) ???

--Zs6ro 11:32, 12 October 2007 (CEST)


Yes, I changed one or two files. You can write a DPL query to find all articles with "alend" in their name and show the date of recent change:

<dpl>
  titlematch = %alend%
  addeditdate = true
  ordermethod = lastedit
  order=descending
  count=10
</dpl>

Thanks Gero, I get the recurring dates now after downloading the two latest files .. Nifty idea using DPL ..

BUT, I can put a 'normal' event on the Calendar and the day will highlight but any recurring event will now show up (highlight) on the calendat image .. DPL shows the event in a table .. (I even rebooted the server !!!) ...

?? --Zs6ro 14:25, 12 October 2007 (CEST)


Thanks for reporting the error, you also have to change the Template:Calendar link. I did that here in the master version. Download the latest version of that template and it should work. And please use the latest Call extension! Gero 15:46, 12 October 2007 (CEST)


NOW things are looking good Gero :-))

I had already updated "Call" and so far its behaving itself - not showing odd Templates !!

The latest "Template:Calendar link" is on my Wiki now and the recurring events are working great ..

Thanks very much for the prompt response Gero ...

--Zs6ro 17:08, 12 October 2007 (CEST)


Fine, so you now can concentrate on other extensions and contents, I guess ..
Please put your wiki on the list of wikis using DPL when it goes live. Gero 18:58, 12 October 2007 (CEST)


Yes Gero, now I can work on other stuff :-))

I showed your Calendar to a friend of mine and he asked if recurring dates cam also be in months ?? .. In other words, on the 25th of every month there will be a meeting ?? .. Can you extend the option so as to work with "YYYY-MM-25" for example ??

Would be nice, but I think difficult, to have it work with 'day', like every 'Mon' or every 'Fri' as well ??

--Zs6ro 20:35, 12 October 2007 (CEST)

Some hints and tips

After some days of trial and error it finally works (great). I had to install the extension:Variables which is not mentioned anywhere. I'm not 100% sure yet but I think that you need just one page, for example "Current events" to get it working (and all the templates and extensions off course). It's definite not necessary to create a page for every month manually!
In the export page there were a few files, templates !) and (! and page Current events, that missed so I added them.
If you don't have an English wiki you might have to change the names of the StartMonth templates. In my case I had to rename Calendar/StartMonthSun to Calendar/StartMonthzon. Hopefully this will save you some trouble, --Mark P. 22:57, 11 November 2007 (CET)


Thank you for these hints! Would it make sense to make an XML export from your wiki for all pages which are required? Could you do this and upload it as a ZIP file? --Gero 17:37, 13 November 2007 (CET)

Just uploaded Calendar_templates-20071124.xml. --Mark P. 22:26, 24 November 2007 (CET)

Last Problem with {{#inputbox: vs. <inputbox>

This is code from Template:Create_Event

Creating a new event for {{{prefix}}}

Enter a '''name''' instead of ...  
{{#inputbox:
  |type=create
  |buttonlabel=create
  |width=25
  |default={{{prefix}}} ...
  |preload=Event template
  |{{#if:{{#var:namespace}}|titleprefix={{#var:namespace}}:}}
  |editintro=Event intro
  |break=no
}}
{{#if:{{#var:purpose}}|Do not forget to assign your event description to category ''{{#var:purpose}}''}}

That doesn't work for me.

This is the example code from extension:textbox which works for me

<inputbox>
type=search
width=42
buttonlabel=Go
searchbuttonlabel=Search
break=no
</inputbox>

Where is the bridge? Where can I find this {{#inputbox: ...?

Everything else ist just fine and promising.


The download of DPL contains a slightly modified version og "inputbox.php". It´s the one you are looking for. You also need the "Call" extension and "Variables.php". Gero 07:35, 6 December 2007 (CET)