Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#121 2006-09-03 02:25:46

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: [plugin] [ORPHAN] mdp_calendar

OK, this plug-in is starting to piss me off. I have tried both lines of replacement code to fix the weird day+1 thing, and calendar is still being offset one day. ANY clues? You can see it in beta.

As you can see, the actual placement of days is correct, but the top header with the days starts at Saturday, not Sunday, throwing everything off.


Kevin
(graphicpush)

Offline

#122 2006-09-03 08:53:38

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 82
Website

Re: [plugin] [ORPHAN] mdp_calendar

kevinpotts wrote:

As you can see, the actual placement of days is correct, but the top header with the days starts at Saturday, not Sunday, throwing everything off.

On my screen Sunday is the first day, and the offset is still there. Or did you turn things back?

Offline

#123 2006-09-04 16:11:59

kevinpotts
Member
From: Ghost Coast
Registered: 2004-12-07
Posts: 370

Re: [plugin] [ORPHAN] mdp_calendar

>> Or did you turn things back?

Things turned back. Maybe it’s only shifting the days on the weekends?

I don’t want anyone to take this the wrong way, but I’m wondering why the original developer is not addressing these issues directly. It’s a kick-ass plugin and extremely useful, but it’s a shame it was introduced so early and with seemingly no intention to finish.

Last edited by kevinpotts (2006-09-04 16:19:28)


Kevin
(graphicpush)

Offline

#124 2006-09-04 16:21:07

ragger
Member
From: Netherlands
Registered: 2005-04-10
Posts: 82
Website

Re: [plugin] [ORPHAN] mdp_calendar

Well, Jagorny’s suggestion in #118 worked for me. Strange it does not for you.

Offline

#125 2006-09-06 02:07:18

ferenczi
Member
Registered: 2005-01-31
Posts: 67

Re: [plugin] [ORPHAN] mdp_calendar

I’ve just discovered this plugin and have found it to be almost perfect for my needs. Actually I suspect that it’s utterly perfect and that the little “problem” I’m having with it is a function of my inability to understand how the various parts of TxP (I’m using 4.0.3) all fit together.

On the index page of a little community site I’m building I’ve put a small calendar (it appears on the right side of the page; the main part of the page is focused on news and announcements). The calendar is set to display only articles from a section called “events.” When users click on a date that has an event associated with it (made obvious through the calendar’s CSS), I want that article to appear directly below the calendar in its own styled div.

The way it is now, the most recent event appears first, right where I want it (below the calendar), when the page is loaded. But a click on an active date seems to cause a new page to load, e.g.

http://mysite.com/?date=2006-09-09&s=events

and the main content on the left no longer appears. I don’t really want a page reload, and I absolutely don’t want a different page to load. I just want the correct event to be pulled into the div right below the calendar.

Here’s how I’ve attempted to set the scenario up on my default page:

<code><div id=“calendar”>
<txp:mdp_calendar_small />
<div id=“event”>
<txp:article form=“simple” listform=“simple” limit=“1” sortby=“Posted” section=“events” sortdir=“desc” time=“any” />
</div></div></code>

What am I doing wrong? I’m sure there’s a very simple answer. Thanks in advance for any help you can give.

Last edited by ferenczi (2006-09-06 02:09:48)

Offline

#126 2006-09-06 02:11:24

Finner
Member
Registered: 2005-05-04
Posts: 33

Re: [plugin] [ORPHAN] mdp_calendar

Loving this plugin, but I seem to be having problems with the date… is about 12 hours behind – I assume it’s on the wrong time zone, despite my time zone being set correctly (GMT +10). Not sure how I can fix this..

Offline

#127 2006-10-11 15:48:52

kristina82
New Member
Registered: 2006-10-11
Posts: 2

Re: [plugin] [ORPHAN] mdp_calendar

The download link doesn’t work! Help! It seems like a great plugin!

Offline

#128 2006-10-11 16:05:52

playpiggy
Member
From: Changchun, China
Registered: 2004-11-23
Posts: 55

Re: [plugin] [ORPHAN] mdp_calendar

@kristina82
As I know, you can find it on TextBook.


Welcome to the REAL World…

Offline

#129 2006-11-06 01:39:30

Cookie
New Member
From: Germany
Registered: 2006-11-06
Posts: 3

Re: [plugin] [ORPHAN] mdp_calendar

Hello, everybody knows how to make the calendar staying in a choosen month?
The normal behaviour of the calendar is, if you choose a month other than the actual month and then klicking any article in that choosen month the calendar goes back to the actual month with the reload of the page.
The idea is to use the calendar as a navigation for my archived articles, so i need that the calendar stays in a choosen month while klicking through articles!

Offline

#130 2007-07-15 12:59:03

LeonNet
Plugin Author
From: Deutschland
Registered: 2007-07-12
Posts: 17
Website

Re: [plugin] [ORPHAN] mdp_calendar

Hello Forum,

i have a little change to make the mdp_calendar more valid to WAI.
The table has no “summary” attribute. To change this, changing two functions called display.

First declare the *“summary” element at line 30, insert

'summary' => '',

then change the first function display at line 154 from

	function display($static=false, $future=false) {
		$id = ($this->tableID) ? ' id="'.$this->tableID.'"' : '';
		$c[] = $this->dspHeader($static, $future);
		$c[] = $this->dspDayNames();
		$c[] = $this->dspDayCells();
                 return doTag(join('',$c),'table',$this->tableClass,$id);
	}

to

	function display($static=false, $future=false) {
		$id = ($this->tableID) ? ' id="'.$this->tableID.'"' : '';
		$summary = ($this->tableSummary) ? ' summary="'.$this->tableSummary.'"' : '';
		$c[] = $this->dspHeader($static, $future);
		$c[] = $this->dspDayNames();
		$c[] = $this->dspDayCells();
                return doTag(join('',$c),'table',$this->tableClass,$summary,$id);
	}

then insert after line 309 “function setTableClass($class) { $this->tableClass = $class; }”

function setTableSummary($summary) { $this->tableSummary = $summary; }

after this go at line 340 to the second function display and change from

function display ( )
{
	$id = ($this->tableID) ? ' id="'.$this->tableID.'"' : '';
	$c[] = '<table'.$id.'>';
	$c[] = $this->dspDayNames();
	$c[] = $this->dspDayCells();
	$c[] = '</table>';
 	return join('',$c);
}

to

function display ( )
{
	$id = ($this->tableID) ? ' id="'.$this->tableID.'"' : '';
	$summary = ($this->tableSummary) ? ' summary="'.$this->tableSummary.'"' : '';
	$c[] = '<table'.$id.$summary.'>';
	$c[] = $this->dspDayNames();
	$c[] = $this->dspDayCells();
	$c[] = '</table>';
 	return join('',$c);
}

thats it, you can use it by

<txp:mdp_calendar summary="Describe your table here" />

Thanks Marshall for help.

Michael

Offline

#131 2007-07-16 02:12:19

tinyfly
Member
From: Dallas, Texas
Registered: 2004-05-10
Posts: 462
Website

Re: [plugin] [ORPHAN] mdp_calendar

If you all haven’t tried zem_event yet for the event calendar functionality you really should. I use it now for all my calendar needs.

Offline

#132 2007-12-17 02:29:52

greenrift
Archived Plugin Author
Registered: 2004-03-08
Posts: 186
Website

Re: [plugin] [ORPHAN] mdp_calendar

Thanks to Jon Hicks I’ve updated the plugin to work with the builds of TXP that handle expired articles. There are also some various bug fixes and other things rolled into this update. If you’re having a specific problem, the best way to contact me is through my website (it can take me a while to respond, but I will).

I would say that if your using the plugin problem free, then there is no reason to update (well, unless you are really concerned with that today issue).

mdp_calendar — http://www.outoverthevoid.com/project/calendar

v1.1 2007-12-16
  • Bug Fix: The today class will only be applied to the current year.
  • Update: spandays option, for those of you using versions of Textpattern that can handle expiration dates on articles. This option will put a link to the article on everyday that it is active.
  • Bug Fix: Locale support should be better, and probably a few other things have been changed.

Offline

Board footer

Powered by FluxBB