Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#541 2010-05-20 18:21:51

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: smd_calendar: complete schedule / event / calendar / diary

Oh, Gocom, thanks for spotting my error. You are right. Thankfully, even if I’ve wrongly commented out that line, it seems there wasn’t too much collateral damage on having the restore_error_handler() inside the one-liner if block, at least, on a website I’ve deployed with that wrongly commented line.

I also should have stated that modifying core isn’t recommended.

But that debugging notice is really annoying, imho.
Particularly if you are using something like cnk_versioning, which needs the website to be in “Testing” mode to fetch the modified forms/pages from filesystem.
Of course, in that situation, you could set website to “Live” and modify cnk_versioning to do its work when website is in “Live” mode.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#542 2010-05-20 18:34:12

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: smd_calendar: complete schedule / event / calendar / diary

maniqui wrote:

Oh, Gocom, thanks for spotting my error. You are right. Thankfully, even if I’ve wrongly commented out that line, it seems there wasn’t too much collateral damage on having the restore_error_handler() inside the one-liner if block, at least, on a website I’ve deployed with that wrongly commented line.

Is that sarcastic? :D It makes the error_handler function stuck to same instead reverting to previous one. It doesn’t destroy anything.

Offline

#543 2010-05-20 18:38:06

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: smd_calendar: complete schedule / event / calendar / diary

No, no sarcasm at all!
Although I don’t understand the technical implications/propagations of my error, at least, things (well, just a website) didn’t blow up to the sky.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#544 2010-05-20 18:44:33

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: smd_calendar: complete schedule / event / calendar / diary

maniqui wrote:

Although I don’t understand the technical implications/propagations of my error, at least, things (well, just a website) didn’t blow up to the sky.

Actually it shouldn’t do much ;-)

Offline

#545 2010-05-20 19:06:17

pafruu
Member
From: New Brunswick, Canada
Registered: 2010-01-14
Posts: 65

Re: smd_calendar: complete schedule / event / calendar / diary

hmmm ok I’ve put the site live, and somehow, when clicking on the event, I get an article but the css is not picked up rendering an unstyled page.

I dont understand since the calendar and the article are using the same template.


I try, and I try, and I try…. and sometimes I achieve

Offline

#546 2010-05-20 19:17:54

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: smd_calendar: complete schedule / event / calendar / diary

May you have a relative reference to your CSS file? Something like <link href="css/bla.css" /> instead of <link href="/css/bla.css" />
Check the source of the rendered page, or install Firebug extension for Firefox and look at the “Net” tab to have more insights about files not being downloaded.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#547 2010-05-20 19:26:20

pafruu
Member
From: New Brunswick, Canada
Registered: 2010-01-14
Posts: 65

Re: smd_calendar: complete schedule / event / calendar / diary

Great I got it working now thanks!

One question remains, how do I make these events come up in a lightbox? Is there a plugin for that or is it just plain coding?


I try, and I try, and I try…. and sometimes I achieve

Offline

#548 2010-05-29 06:24:08

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: smd_calendar: complete schedule / event / calendar / diary

Hi Bloke,

could it be that txp:if_first_article and txp:if_last_article doesn’t work inside smd_article_event? I’m getting no output when using them.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#549 2010-05-29 08:41:53

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,430
Website GitHub

Re: smd_calendar: complete schedule / event / calendar / diary

maniqui wrote:

could it be that txp:if_first_article and txp:if_last_article doesn’t work inside smd_article_event?

Entirely possible. I was talking with mrdale about this last night and I don’t think I set those variables up yet. Shame on me.


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

#550 2010-07-06 16:11:22

renobird
Member
From: Gainesville, Florida
Registered: 2005-03-02
Posts: 786
Website

Re: smd_calendar: complete schedule / event / calendar / diary

Hi Stef,

I’m a little thick today – How do I “turn off” the right arrow for multi-day events?
I can’t seem to make sense of it.


Tom

Offline

#551 2010-07-07 10:18:04

wornout
Member
From: Italy
Registered: 2009-01-20
Posts: 256
Website

Re: smd_calendar: complete schedule / event / calendar / diary

What about MLP integration?

Offline

#552 2010-07-07 10:52:48

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 11,430
Website GitHub

Re: smd_calendar: complete schedule / event / calendar / diary

renobird wrote:

How do I “turn off” the right arrow for multi-day events?

Use spanform and write the contents of what you do want to see in the continuation cells in that form.

wornout wrote:

What about MLP integration?

What about it? Which bits of the calendar would you want to interact with MLP? The various names can already be changed (sort of) using monthformat or dayformat so if you’re clever with the MLP tags you can probably detect which one is in use and set the monthformat/dayformat accordingly.

Last edited by Bloke (2010-07-07 10:54:03)


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