Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#31 2005-05-30 19:51:51

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

Re: [plugin] [ORPHAN] mdp_calendar

> duchamp wrote:
> Bug Fix: Day names are now internationalized. If using a custom date format, convert it to strftime format!
> Well, that’s right but for some reason accents are replaced by a ?.
> EG.: In spanish Miércoles are showed as Mi? and Sábado as S?b

Yah I noticed that to. It’s a problem with the character encoding and such using strftime(). I’ll try to use safe_strftime and upload an update today.

> # Compatibility Fix: ?date=yyyy-mm-dd URL’s now changed into ?month. Allows older links to work

> Im not sure if I’m doing all the right work. Im still having troubles with links and URLs.
> Each linked day has this format:
> SITE URL/?month=2005-05-13&s=Section
> My TXP is configured to show URLs as /section/title … could this work with the calendar or I must to change it to /year/month/day/title?

Unless you use sgb_url_handler, there’s no other way to tell TXP to use articles from a specific date without using the messy URL (or the /year/month/day/title).

> New: links to articles now have title attribute set
> Not on mine! I just have a simple link without the title attribute.
I guess I should have mentioned that the small calendar doesn’t apply to this. I’ll try to add a little “May 14” type deal.

Offline

#32 2005-05-30 20:08:37

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] mdp_calendar

Thanks for your reply and the explanations!

> Unless you use sgb_url_handler, there’s no other way to tell TXP

Oops! Im going to pay a view to that plugin, I didn’t realise about that! (it really solves that problem?)

> I guess I should have mentioned that the small calendar doesn’t apply to this. I’ll try to add a little “May 14” type deal.

Hope to see the title attribute soon! I guess it helps a ton when you use the small calendar as events calendar.

Cheers!

Offline

#33 2005-05-30 23:40:30

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

Re: [plugin] [ORPHAN] mdp_calendar

On the sgb_url_handler, I don’t believe the current version is working properly. Also, the small version of my calendar only outputs the datebased URL’s when you’re using that URL mode. So right now it won’t work, but it may in the future.

Offline

#34 2005-05-31 05:04:00

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

Re: [plugin] [ORPHAN] mdp_calendar

Items on the first day of the week are not displaying for me.

Offline

#35 2005-05-31 16:55:48

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] mdp_calendar

I didn’t try it, but if the large calendar has all the features that I want for the small calendar, is there any way to hack the large one to fit a small area? I’m going to try ….

Offline

#36 2005-06-01 15:08:34

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] mdp_calendar

> greenrift wrote:

> Yah I noticed that to. It’s a problem with the character encoding and such using strftime().
> I’ll try to use safe_strftime and upload an update today.

I’ve done and works ok. Now, miércoles is showed as mié, no more strange characters.

Thx

Last edited by duchamp (2005-06-01 17:21:59)

Offline

#37 2005-06-01 23:21:10

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] mdp_calendar

Well, everything is working ok but got another question that maybe someone solved before:
my large calendar shows past events and upcoming events (displayfuture=“1”) but not today’s events!
… is that a common bug or I need to implement a hack to solve this?

Thx in advance

Offline

#38 2005-06-02 00:06:35

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

Re: [plugin] [ORPHAN] mdp_calendar

Thanks for seeing at duchamp, I’ve updated the plugin along with the character encoding problems and add title’s.

mrdale, update to this latest version and tell me what happens. If they are articles are after the current date, then you’ll need the displayfuture attribute to be set to “1”. If they are in the past, first try changing the firstday ( mdp_calendar_large firstday="1" or similiar) and see if that fixes it. If that doesn’t, send me an email with as much information as you can provide.

Last edited by greenrift (2005-06-02 00:12:18)

Offline

#39 2005-06-02 17:19:08

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] mdp_calendar

updated to v0.4.3 and everything works fine for me. The only thing that’s still giving me troubles is the links into the small calendar, ‘cause I’m using clean URLs in the format of /Section/title and each event link takes me to the /Section/ not to each article as I see in other people calendars with messy URLs.
It could be solved in a near future?
That would be great!

Offline

#40 2005-06-02 17:24:17

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

Re: [plugin] [ORPHAN] mdp_calendar

[marcel] duchamp >

Me too, when I click on any link in the small calendar it takes me to an article list of All the items, even though I would expect it to limit posts to those that match that date. Anyone else?

Offline

#41 2005-06-02 19:16:02

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] mdp_calendar

I think that Marshall could do something with this (You’re the wizard man! not me he he).
the small calendar could work as the large one, but what to do with the links?
if you’re using TXP for a blog is probably that some days you have more than one event or article and the question is … what to show in the small calendar?
Im using the calendar for a Disco-Pub Website, the large calendar is showed in the Events home page and each event link takes you to an individual page with some info, a flyer and the small calendar in a side bar, actually when you click any day with an event the Events home page is retrived, that’s not the idea … but again how to manage more than one event in a small calendar? Not sure right now.

Offline

#42 2005-06-02 22:53:07

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

Re: [plugin] [ORPHAN] mdp_calendar

> mrdale wrote:
> Me too, when I click on any link in the small calendar it takes me to an article list of All the items, even though I would expect it to limit posts to
> those that match that date. Anyone else?

Go into publish.php, and at line #401 'month' => '', change it to be 'month' => $month,. That should fix your problem. The line number is only for the latest revision of TXP, but it should close to previous versions.

Offline

#43 2005-06-03 01:31:18

duchamp
Member
From: Patagonia
Registered: 2005-02-03
Posts: 222
Website

Re: [plugin] [ORPHAN] mdp_calendar

I’ve got a revision from last week and it doesn’t work.
Could this work if I’m using Section/title instead of Year/month/day etc.?

Offline

#44 2005-06-03 03:45:56

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

Re: [plugin] [ORPHAN] mdp_calendar

Many Thanks mr.rift, worked like a charm…

Offline

#45 2005-06-07 17:31:16

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

Re: [plugin] [ORPHAN] mdp_calendar

Is small calendar + date based clean urls still a no-go?

Offline

Board footer

Powered by FluxBB