Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#556 2010-07-08 19:32:34

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,433
Website GitHub

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

Els wrote:

I don’t think it’s your configuration, I had the same problem when I tested it about a year ago…

Yes, you’re right. I think it’s more likely to be smd_calendar that needs patching than MLP. I remember now you’ve jogged my memory (thanks!) that the problem is that I currently make the next/prev links manually in the code. MLP won’t get a look-in because smd_calendar handles generation of the links internally so the URL is probably not getting rewritten to site.com/nl/some_section/article?m=2010-08.

When I stop messing around with the core and get back to my (very kindly donated by mrdale) testing environment I can continue work on the plugin. I’ll keep this in mind as I ferret away at making the plugin do what it’s supposed to do out of the tin.

Last edited by Bloke (2010-07-08 19:33:10)


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

Online

#557 2010-07-08 19:42:49

els
Moderator
From: The Netherlands
Registered: 2004-06-06
Posts: 7,458

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

Great! Let me know when you stop messing around with the core ;) There’s no hurry as far as I’m concerned, but I think I can invest ‘something’ because I’m quite sure some clients will like the availability calendar I was working on :)

Offline

#558 2010-08-26 15:21:55

Clayton
Member
Registered: 2009-06-12
Posts: 14

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

Doing my head in! All I want is a small calendar on most pages to show links to future articles. At first I wanted it to show future article links from 2 sections and, when clicked, show them in the appropriate section, but I gave up on that and made a dedicated ‘events’ section, and have put all future articles in events section.

When I click the link I prefer if it goes straight to the article, but I couldn’t get it to do this so I gave up and put up with it going to list of articles in ‘events’ section.

OK, I can live with that but, all my experimentation was in same month and now I find when I click calendar nav to next/prev month, it wants to use front page. I tried maintain=“section” but this shows s= in url but still wants to use front page. I have

<txp:smd_calendar time="future" size="small" id="small-calendar" showall="1" section="events" maintain="section" /> 

but it refuses to use the dedicated ‘events’ section. Is there a way I can get it not to use front page, or perhaps make it output clean urls instead of messy ones?

Offline

#559 2010-09-01 13:44:09

ripka
New Member
Registered: 2010-09-01
Posts: 1

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

Clayton, the easiest workaround is using the html base tag to set the base href to your events section.

Offline

#560 2010-09-01 19:07:00

Clayton
Member
Registered: 2009-06-12
Posts: 14

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

ripka, thank you! That’s done the trick. Finally found a used for the base href tag! Never needed it before. Cheers.

Offline

#561 2010-09-03 20:16:15

progre55
Member
Registered: 2006-05-02
Posts: 668

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

TXPers:

This one is probably and easy one —- right now my calendar only shows up thru December 2010 — how can I get it to display next year also …

progre55

Offline

#562 2010-09-04 07:24:06

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,433
Website GitHub

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

progre55 wrote:

how can I get it to display next year also …

Take a look at the yearwidth attribute.


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

Online

#563 2010-09-07 13:46:22

progre55
Member
Registered: 2006-05-02
Posts: 668

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

Bloke:

Will do & thanks — as usual —-

progre55

Offline

#564 2010-10-11 17:31:43

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

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

Hi Steph,

A huge Plug’in, where I lost myself.
I want to display a small calendar in a “events” section.
And when we click on a date, we display the current events on this day.

exemple :
“event 1” start “01” expire “06”
“event 2” start “03” expire “07”
“event 3” start “05” expire “09”

           01  02  03  04  05  06  07  08  09  10
event 1     x   x   x   x   x   x
event 2             x   x   x   x   x 
event 3                     x   x   x   x   x

When we click on 05, I want a list with:

  • event 1
  • event 2
  • event 3

and when we click on 07, I want a list with :

  • event 2
  • event 3

First probleme
When I click on a date, I leave the “event” section to go the site root
<txp:site_url/>?date=2010-10-11 and not <txp:site_url/>event/?date=2010-10-11
and I’m playing with the attribute “maintain”, but nothing

Second probleme
I can’t retrieve the clicked date value (?date=2010-10-11) with <txp:smd_cal_now />. To view the results of the clicked date.

third problem
When I asked to list the events of 07:

<txp:smd_article_event from='2010-10-07' to='2010-10-07' allspanned="1" wraptag="ul">
	<li><txp:permlink><b><txp:title/></b></txp:permlink></li>
</txp:smd_article_event>

“Event 1” is included in the list, with “event 2 and 3”.

When I asked to list the events of 08:
“Event 2” is included in the list, with “event 3” (not event 1).

When I asked to list the events of 09:
Only “event 3”

As if the events lasted 1 day longer

It’s hard for me to tame this plug’in

Offline

#565 2010-10-15 00:17:58

dandul
Member
From: Brisbane, Australia
Registered: 2010-01-31
Posts: 33

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

Hiya, my smd_calendar seems to have had a moment of madness. Normally the first day of the calendar appears as Monday. But this morning it was showing Sunday as the first day. Even more odd, all the events had gone FORWARD a day. (The Monday classes were appearing on Tuesdays, the Sunday on Monday etc)

So I fiddled with the firstday="1" setting to change the start day. I could make Monday the start day again by going firstday="0", but the events dates were STILL a day forward.

In preferences I set the site status to 'live' (rather than 'testing') and enabled "Automatically adjust DST setting?" And somewhere along the line it came good and the dates were all correct again!

I tried changing back the settings I had fiddled with to recreate the error but it’s behaving itself again now. Has anyone had a similar experience? Know what it was? Is it a timezone thing? “Just one of those things”? Any help much appreciated.

A link if that’s helpful: http://mkbc.codd.info/calendar/?c=calendar&m=11&y=2010


Stop wishing things were different to the way they are. Accept it, deal with it, move on.

Offline

#566 2010-10-15 09:44:41

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,433
Website GitHub

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

dandul wrote:

Normally the first day of the calendar appears as Monday. But this morning it was showing Sunday as the first day. Even more odd, all the events had gone FORWARD a day.

*sigh* We’re entering that time of year again when things all go sideways: daylight savings changeover. I know it’s no consolation but you’re not alone. mrdale is using a heavily hacked version of smd_calendar in which I thought I’d caught all the timezone / DST issues but he had the same thing a couple of days ago. If I get a chance later today I’ll see if I can spot the problem and issue an interim fix based on the version he has (which has been working pretty well, apart from the ‘shifting days’ thing he noticed on Sunday).


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

Online

#567 2010-10-15 10:10:48

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

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

hum, hum,
ok, I think this is not the time (4 dot 3) or my question is stupid.
Thank you steve for plug’in, it is certainly very well, when we understand.
Another day, perhaps

Offline

#568 2010-10-15 10:32:04

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,433
Website GitHub

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

sacripant wrote:

ok, I think this is not the time (4 dot 3) or my question is stupid.

Sorry, I’m not ignoring your question. It just takes time to figure out your setup and replicate it on my dev account. Then I can have a go at trying to find out what’s going on.

Unfortunately I’m not going to be able to look at this for at least a week — perhaps a little longer. In the meantime someone else might be able to help you with the logic or get you on the road towards a solution. If it turns out to be one of the many date/timezone-related bugs in the plugin then I apologise.

EDIT: if you’re using the mini-calendar then a lot of the features you describe may not be possible because of its limited scope. You may have more luck using a large calendar and simply styling it / configuring it to look like a minical. Also, Example 4 in the plugin help shows a way of setting up the calendar to use dates other than the stored ‘Posted’ date. If you added the actual date as a variable to the end of the clicked URL you could read that in (using adi_gps or smd_if) on your destination page and then display the correct date there.

Last edited by Bloke (2010-10-15 10:38:18)


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

Online

#569 2010-10-18 10:21:31

sacripant
Plugin Author
From: Rhône — France
Registered: 2008-06-01
Posts: 479
Website

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

Bloke wrote:

Sorry, I’m not ignoring your question. It just takes time to figure out your setup and replicate it on my dev account. Then I can have a go at trying to find out what’s going on.

Amoul solo. No prob Steph,

Even if you have not The answer, you give me an answer.
I’ll play with big calendar.

Thanks

Offline

#570 2010-10-24 17:40:50

JanDW
Plugin Author
From: Providence, RI, USA
Registered: 2008-07-18
Posts: 327
Website

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

Hi Stef – I have to join the masses and say this plugin is a succulent sexy beast of textpattern goodness.

I have one small problem. I’d like to add the flags as css classes to each event inside an <txp:smd_article_event> tag to style them differently with css. I read elsewhere in this thread, that <txp:smd_cal_info /> only works reliably within and <txp:smd_calendar> tag, and sure enough, it doesn’t work. Is there any other way I can achieve this?

I guess <txp:smd_if_cal> also only works within <txp:smd_calendar>?

Cheers, Jan

Last edited by JanDW (2010-10-24 17:43:46)


TXPDream – A Textpattern Tag Library for Adobe Dreamweaver. (updated for 4.2.0) | jdw_if_ajax – Only serve certain parts of a page when requested with AJAX

Offline

Board footer

Powered by FluxBB