Difference between revisions of "Talk:Calendar"

From FollowTheScore
Jump to: navigation, search
(Template:Create_Event)
(Template:Create_Event)
Line 76: Line 76:
  
 
Actually when I saw it on your page it showed me the input box.
 
Actually when I saw it on your page it showed me the input box.
 +
 +
When I checked the source of the page it showed me:
 +
<pre>
 +
<table border="0" width="100%" cellspacing="0" cellpadding="0">
 +
<tr>
 +
<td bgcolor="">&lt;form name="createbox" action="/TaxCon/12/index.php" method="get" class="createbox"
 +
<p> onsubmit="document.createbox.title.value = document.createbox.titleprefix.value + document.createbox.title.value;"&gt;
 +
&lt;input type='hidden' name="action" value="edit" /&gt;
 +
&lt;input type="hidden" name="preload" value="Template:Event template" /&gt;
 +
&lt;input type="hidden" name="editintro" value="Event intro" /&gt;
 +
&lt;input type='hidden' name="titleprefix" value="{{{prefix}}}_" /&gt;
 +
</p><p> &lt;input class="createboxInput" name="title" type="text"
 +
value="" size="25" /&gt;
 +
&lt;input type='submit' name="create" class="createboxButton"
 +
value="create" /&gt;
 +
&lt;/form&gt;
 +
</p>
 +
</td>
 +
</tr>
 +
</table>
 +
</pre>
  
 
How do I rectify this?
 
How do I rectify this?
 
[[User:NilamDoc|NilamDoc]] 22:20, 14 March 2008 (CET)
 
[[User:NilamDoc|NilamDoc]] 22:20, 14 March 2008 (CET)

Revision as of 22:25, 14 March 2008

Template talk:CalendarSingle

hey

I've made a preload version of the calendar which directs to Template:Monthly_calendar [1], and if the month calendar doesnt exist yet, creates it. Now to find a few to pass the month-number... Maybe is possible by extracting it from the {{PAGENAME}}.

{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}
|cur_month={{#time:F|{{{year}}}-{{{month}}}-03}}
|prev_month={{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|<<]]|[{{fullurl:{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 -1 month}}|action=edit&preload=Template:Monthly_calendar}} <<]}}
|next_month={{#ifexist: {{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|[[{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|>>]]|
[{{fullurl:{{{basepage}}} {{#time:F Y|{{{year}}}-{{{month}}}-03 +1 month}}|action=edit&preload=Template:Monthly_calendar}} >>]}}

-- Eiland 01:19, 26 August 2007 (CEST)

Date bug

If you look at the calendar, you will see that this month (December 2007) starts on a Friday. This is not correct, it should start on a saturday. You can correct this by changing

{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-01 +1 second}}

to

{{Calendar/MonthStart{{#time:D|{{{year}}}-{{{month}}}-02 +1 second}}

. But I really don't think this is the best way to do it. I have it changed this way on my wiki, but I'd really like to see a proper solution.

--El sjaako 03:25, 18 December 2007 (CET)

Reply

For some strange reason the #time function seems to deliver different values under different versions of MW / PHP. Indeed it may be necessdary to use day 1/8/15/22 here or 2/9/16/23. So if months start at the wrong day just change the number here. Maybe sometime there will be a better solution ... Gero 08:38, 22 December 2007 (CET)

Re reply

Hi Gero. Yes. you are right. The early code had run right results in my wiki until I imported the new code you saved the version. Now I've changed it to early right version for me.

My environment
  • Win XP
  • MediaWiki: 1.11.0
  • The AppServ Open Project - 2.5.7 for Windows
    • PHP: 5.1.6 (apache2handler)
    • MySQL: 5.0.24a-community-nt-log

Template talk:Calendar month

Instead of a link to the header of the page, is it possible that the calendar supplies a link to the actual page whihc is on a specific date, so for example directly to 2007-08-22 The Birthday Party? -- Eiland 21:25, 25 August 2007 (CEST)

You could change the 'Calendar link'. Leave away the # sign before the %PAGE% ... Gero 15:02, 26 August 2007 (CEST)
Ah! that was easy! -- Eiland 15:32, 26 August 2007 (CEST)
On second thought, yes it works, but what will happen when there will be two events for one day? I'll have to think of something clever. Maybe some kind of interim pages which noted that there were two entries with that date, and offers choice. But this seems quite something to implement. Or maybe a date which collects all pages starting with 2007-08-31; that could be a DPL'd page, no? -- 11:49, 31 August 2007 (CEST)


I really like DPL Calendar. It works beautifully with the skin Monobook. However, my wiki's default skin is gumax 3.0 [2]. Sadly, when I try to view my calendar in that skin the page that loads is completely blank. Any ideas as to what might be going on and how I might fix it? Will gladly provide full information regarding setup if that would be useful. --Rowenrye 21:02, 18 January 2008 (CET)

Resolved It turns out that although gumax 3.0 seemed to be working perfectly well, I needed to update to gumax 3.3. DPL calendar now works with that skin as well. The problem was with the skin not with DPL Calendar. Forgot to sign my first time through, so both the problem and the resolution have the same timestamp. --Rowenrye 21:02, 18 January 2008 (CET)

Strange Behavior - date of Jan 1, 2008 incorrect

I have calendar up and running. There is just one very strange problem: Jan 1, 2008 appears as a Wednesday, rather than as a Tuesday when I go to Current Events in my wiki. I don't know how to correct this, or if I might have done something to create the problem in the first place. Please advise.

--Rowenrye 23:10, 24 January 2008 (CET)

The reason for this is still unclear. It varies between installations, maybe depending on the php version used. You must change a value in Template:CalendarSingle from 16 to 15. There is a comment at the point where you have to do this.

Gero 08:48, 25 January 2008 (CET)

Comment located. Change performed. Problem fixed. Thanks for the prompt assistance and thanks for making such a good calendar tool for use with mediawiki.

--Rowenrye 08:59, 25 January 2008 (CET)

How to upgrade from 'old' to 'latest' Calendar version ?

Hallo gero - remember me ?? - Now don't get a heart attack ...

I am still using your 'old' Calendar version ... I see that your latest version has some neat changes ... What is required for me to upgrade to your latest Calender version?

I would rather ask before downloading all the files and then end up with a problem ..

When i upgrade, will I lose all my calendar entries ???

--Zs6ro 23:45, 5 February 2008 (CET)

DPL Error

Hi,

I have just install the template and when call it I am geting the following error

%DPL-1.6.5-ERROR: Wrong 'notnamespace' parameter: 'Template'! Help: notnamespace= empty string (Main) | AWMN-2764 | AWMN-2764_συζήτηση | Calendar | MediaWiki | MediaWiki_talk | Property | Property_talk | Relation | Relation_talk | Type | Type_talk | Βοήθεια | Εικόνα | Κατηγορία | Πρότυπο | Συζήτηση | Συζήτηση_βοήθειας | Συζήτηση_εικόνας | Συζήτηση_κατηγορίας | Συζήτηση_προτύπου | Συζήτηση_χρήστη | Χρήστης.

Can you help me with this ?

Thanks

--Eaggelidis 18:46, 10 February 2008 (CET)

Maybe there is a linefeed too much...

I suggest that you leave the URL to your wiki here then we can have a look.
Gero 22:02, 11 February 2008 (CET)

I have a suggestion...

Go to Template:Calendar month and search for the line that contains notnamespace. Replace Template with the translation of Template in your language. i.e. "notnamespace=Template" in "notnamespace=Here the translation of Template in your language - (greek) i suppose"
Hydro 15:00, 14 March 2008 (CET)

Template:Create_Event

Hi,

When I compile Template:Create_Event in my wiki it gives me the raw html code on the page.

It looks like this

Create an event for {{{prefix}}} 

<form name="createbox" action="/TaxCon/12/index.php" method="get" class="createbox" 
onsubmit="document.createbox.title.value = document.createbox.titleprefix.value + document.createbox.title.value;"> <input type='hidden' name="action" value="edit" /> <input type="hidden" name="preload" value="Template:Event template" /> <input type="hidden" name="editintro" value="Event intro" /> <input type='hidden' name="titleprefix" value="{{{prefix}}}_" /> 
<input class="createboxInput" name="title" type="text" value="" size="25" /> <input type='submit' name="create" class="createboxButton" value="create" /> </form> 

Actually when I saw it on your page it showed me the input box.

When I checked the source of the page it showed me:

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor=""><form name="createbox" action="/TaxCon/12/index.php" method="get" class="createbox"
<p>	onsubmit="document.createbox.title.value = document.createbox.titleprefix.value + document.createbox.title.value;">
	<input type='hidden' name="action" value="edit" />
	<input type="hidden" name="preload" value="Template:Event template" />
	<input type="hidden" name="editintro" value="Event intro" />
	<input type='hidden' name="titleprefix" value="{{{prefix}}}_" />
</p><p>	<input class="createboxInput" name="title" type="text"
	value="" size="25" />
	<input type='submit' name="create" class="createboxButton"
	value="create" />
</form>
</p>
</td>
</tr>
</table>

How do I rectify this? NilamDoc 22:20, 14 March 2008 (CET)