Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#21 2008-12-23 14:31:48

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: [request] Bounty: Update MDP Calendar

StefBloke

NP, hehehe. BTW, the link to php.net at the end of the article I quoted is wrong. Should go here (at least for UK clicks.)


Steve

Offline

#22 2008-12-30 14:11:14

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,848
Website

Re: [request] Bounty: Update MDP Calendar

Update on smd_calendar: I’ve not got much further with DST, but the timezone thing I think I’ve cracked by simply not using safe_strftime(). I’m using PHP’s native strftime() instead which seems to stop TXP calculating the timezone offset twice and getting in a pickle. It’s holding up ok with all timezone tests I’ve run so far, and mrdale has concurred it’s working across the pond in GMT-8 land. Fingers crossed…

The plugin is up to v0.3 as of this morning but it’s not published because I’ve not finished the latest round of “can it just do…” from mrdale, which I’m trying to roll into 0.3 as well. Anyone who has an older copy and wants to try it out, get in touch because some of the v0.2x releases were brain damaged in the date department and may cause head scratching.

I’ve managed to squeeze in a cellform attribute, among other stuff, so you have the option to pretty much design your own cells on the calendar from scratch; thus if you don’t like the way the date number is displayed, you can do it yo’self.

If I can crack mrdale’s latest request it’ll be even more useful, but it’s pretty involved and is too early to say whether it’ll work the way I want it to. I was hoping to get it ready before New Year but it’s touch and go right now. Perhaps with an Easterly wind and a sprinkling of fairy dust. Sorry to keep promising it’ll be released and then not releasing it, but kind benefactors get first stab at this one.

Even if I do say so myself, this plugin is a major step forward for event management that would not be possible were it not for the brilliant stuff behind the scenes in the 4.0.7+ codebase. All hail TXP, for it is mighty.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#23 2008-12-30 16:17:37

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,212
Website

Re: [request] Bounty: Update MDP Calendar

BTW: I should say that Stef’s Calendar wildly exceeds my expectations. It’s awesome. Stef always delivers far more elegance, function and flexibility that one initially asks for.

The “can it just do” that Stef mentions turns this plugin into a full-fledged events package. It’s outside the original scope (and I’ll end up sponsoring this further to the tune of a beloved ancestral cabbage)…

so I would encourage anyone who can swing it to donate something and sponsor this really useful piece of work.

Last edited by mrdale (2008-12-30 16:18:34)

Offline

#24 2008-12-30 16:51:18

joebaich
Member
From: DC Metro Area and elsewhere
Registered: 2006-09-24
Posts: 507
Website

Re: [request] Bounty: Update MDP Calendar

Bloke wrote:

EDIT: USD?! Might as well offer magic beans ;-)

Stef go for the USDs spurning any offers of beans. Though the USD is ailing, the GBP (Gordy Broon’s Pund) is ailing even more. Several months ago you would have received around 50 pence for each dollar, today you will receive around 68 pence.

I’ll add some GBP in due course.

Last edited by joebaich (2008-12-30 16:53:08)

Offline

#25 2008-12-30 17:12:09

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,848
Website

Re: [request] Bounty: Update MDP Calendar

joebaich wrote:

Though the USD is ailing, the GBP (Gordy Broon’s Pund) is ailing even more.

Hehe, and don’t we know it…! Many thanks for the offer of some cash for this. Something from the wishlist is equally cool if you’d prefer.

OT, I have a suspicion the central bankers are *cough* ‘helping’ this economic downfall with massive fiat currency injections, stock market manipulation and media rumour-mongering like they did in the 1900s. When GBP falls to 1:1 (or below, which is, ummm, about now) against the Euro the top brass will say “tut tut tut, well the pound’s worthless now. No point having a referendum that we know will result in rejection… might as well take the Euro, eh?”

From there, it’s not a huge step to: “oh look, all world currencies have collapsed. Best swap them all out for the Universal MegaDollar, which we’ll print and back with more fresh air. By the way, a loaf of bread is now 10 MegaDollars because we’ve carved all the food land up to grow biofuel for our huge government SUVs. Sorry an’ all that.”

/end party political broadcast by the So Long And Thanks For Nothing Party :-)

P.S. I hope I’m wrong.

Last edited by Bloke (2008-12-30 20:11:07)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#26 2008-12-30 17:53:42

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,212
Website

Re: [request] Bounty: Update MDP Calendar

word.

Offline

#27 2009-01-01 21:00:18

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,848
Website

Re: [request] Bounty: Update MDP Calendar

mwuahahahahaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa

I think mrdale’s “can it just do this…” is ready to rock n roll along with countless other new features. Across the six tags that make up this plugin there are no fewer than… deep breath… 86 90 attributes so you can tweak the plugin to the nth degree. But it’ll all hang together with virtually no attributes if you prefer, and deliver what I hope is complete calendar and event management under one roof. No hacks, no extensions, just plain TXP + one plugin.

The code is on its way to my willing volunteers/kind benefactors for their perusal. Based on their feedback and testing I’ll know if it does what I claim. Sit tight.

Last edited by Bloke (2009-01-04 21:54:04)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#28 2009-01-02 18:55:47

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,848
Website

Re: [request] Bounty: Update MDP Calendar

I’ve just had an email from woof regarding this plugin and iCal which brings about an interesting use of the plugin. This is going in as Example 5 in the documentation but I thought I’d share it here as a great example of how one of the tags in the plugin can be used.

If you want to output your events in iCal format so other people can sync their calendars to yours, put something like this in a new Page template in its own Section:

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Gigs Calendar
PRODID:-//Apple Computer, Inc//iCal 1.5//EN
X-WR-TIMEZONE:Europe/London
<txp:smd_article_event form="icsitem" time="any"
section="gigs" limit="1000">
 BEGIN:VEVENT
 DTSTART:<txp:posted format="%Y%m%dT%H%i%s" />
 DTEND:<txp:expires format="%Y%m%dT%H%i%s" />
 SUMMARY:<txp:title />
 END:VEVENT
</txp:smd_article_event>
END:VCALENDAR

That will output an iCal-formatted gig list (repeated or otherwise). Thus, standard events show up and any recurring events (up to 10 per event using the defaults + attributes above) will be displayed as well. If you had a monthly gig at the Hound & Hare pub, your mates need never miss your eclectic mix of Rock and Bhangra again!

If you got freaky with it and added some conditional logic inside the template you could even read in URL variables and plug them in. Thus you could link to that section directly off the calendar itself, pass in the current section, category or event info that the visitor was browsing and have a customised iCal stream pumped out of Textpattern allowing your visitors to stay abreast of events that interest them when they take their laptop offline.

It’s calendarific.

Many thanks to woof for bringing the original David Emery article to my attention. Rock on.

Last edited by Bloke (2009-01-02 18:58:31)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#29 2009-01-04 04:33:53

mrdale
Member
From: Walla Walla
Registered: 2004-11-19
Posts: 2,212
Website

Re: [request] Bounty: Update MDP Calendar

Brilliant, gentlemen! Orders of magnitude more utility without asking. If you use this plugin think about contributing.

Offline

#30 2009-01-06 14:44:59

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 9,848
Website

Re: [request] Bounty: Update MDP Calendar


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB