Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#541 2010-05-20 18:21:51
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.
Offline
#542 2010-05-20 18:34:12
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
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.
Offline
#544 2010-05-20 18:44:33
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
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.
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
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.
Offline
#549 2010-05-29 08:41:53
Re: smd_calendar: complete schedule / event / calendar / diary
maniqui wrote:
could it be that
txp:if_first_articleandtxp:if_last_articledoesn’t work insidesmd_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.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#550 2010-07-06 16:11:22
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
Re: smd_calendar: complete schedule / event / calendar / diary
What about MLP integration?
Offline
#552 2010-07-07 10:52:48
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.
Hire Txp Builders – finely-crafted code, design and Txp
Offline
#553 2010-07-07 13:44:27
Re: smd_calendar: complete schedule / event / calendar / diary
Use
spanformand write the contents of what you do want to see in the continuation cells in that form.
Thanks Stef,
I finally digested all the documentation and see now that it was right there in plain sight. – doh!.
:)
Offline
#554 2010-07-08 07:50:09
Re: smd_calendar: complete schedule / event / calendar / diary
Bloke wrote:
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
monthformatordayformatso if you’re clever with the MLP tags you can probably detect which one is in use and set the monthformat/dayformat accordingly.
I did only few test and the only was in month navigation. Using the next/prev arrow produce an error page.
Maybe it’s a problem with my configuration. I’m testing it…
Offline
#555 2010-07-08 19:22:20
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: smd_calendar: complete schedule / event / calendar / diary
wornout wrote:
Using the next/prev arrow produce an error page.
Maybe it’s a problem with my configuration. I’m testing it…
I don’t think it’s your configuration, I had the same problem when I tested it about a year ago…
Stef, because I’m sure there are more MLP users who’d love to use smd_calendar, here’s a question for you: where should we start? Would it be better to adapt MLP to work with smd_calendar, or would the other way round be more logical? I’m asking you because you’re not completely unfamiliar with MLP. If we know which developer(s) we should be nagging, we could try and raise a ransom if that would help.
And once we’ve got an answer to this question, I’ll be more than happy to do some necessary testing to find out where the compatibility problem lies exactly. As long as someone tells me what to test ;)
Offline