Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

  1. Index
  2. » Archives
  3. » Calendar?

#121 2005-06-14 03:33:33

daisy55
New Member
From: Boston
Registered: 2005-03-30
Posts: 5

Re: Calendar?

hey, i noticed that this requires mdp_lib, but i can’t seem to find this file on greenrift’s website. i found a download link for it at textpattern.org, under mdp_section name, and it said to rename the file to mdp_lib.php and put it in the /lib/ directory. even then, i still get php errors when i try to load a page with a calender on it.

if anyboyd could help me out with the mdp_lib thing (as i’m not really sure if i d/led the right file or put it in the right spot), i’d appreciate it. i’ve been looking for a feature like this for a while, and would love to get it working. thanks!

Offline

#122 2005-06-15 00:55:55

trailgirl
Member
Registered: 2004-06-04
Posts: 68
Website

Re: Calendar?

I have a fresh install of Textpattern RC3 and just installed mdp_calendar version 0.4.3. I did not need to upload mdp_lib. I think that’s maybe for an older version of the plug-in. What kind of php error do you get?

Offline

#123 2005-06-15 19:34:12

daisy55
New Member
From: Boston
Registered: 2005-03-30
Posts: 5

Re: Calendar?

hey, this is the section i’m trying to get to work, and that’s the error i get. looking at the error again, it seems to be an error calling a different .php file, so now i’m really confused. any ideas?

Offline

#124 2005-06-15 19:42:23

gdtroiano
Archived Plugin Author
From: Highland Park, NJ
Registered: 2005-01-29
Posts: 59
Website

Re: Calendar?

> daisy55 wrote:

> hey, this is the section i’m trying to get to work, and that’s the error i get. looking at the error again, it seems to be an error calling a different .php file, so now i’m really confused. any ideas?

i had the same problem. upgrading to the latest version of RC3 fixed it for me.

Offline

#125 2005-06-15 20:03:43

daisy55
New Member
From: Boston
Registered: 2005-03-30
Posts: 5

Re: Calendar?

that did it, thanks!

Offline

#126 2005-06-21 16:48:17

ajitabhpandey
New Member
From: United Kingdom
Registered: 2005-06-20
Posts: 4
Website

Re: Calendar?

I got the mdp_calender on my blog page

Check
http://www.ajitabhpandey.info/?s=weblog

As you can see there are various links on the calender, if you place your mouse over, say 2nd June, you will find that the title says 03/06/2005 and on third of june it says 04/06/2005. Also when you click on any of the links you get the same page back, although there were articles published on that date. Can someone please help fixing that.

Offline

#127 2005-06-26 21:06:52

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: Calendar?

greenrift… is mdp_lib still required? cause I can’t find it… your site seems a bit broken

When I click on a link, I’m just returned to something like /?month=2005-06-25 yet the articles are not filtered by that day.

Offline

#128 2005-06-27 02:14:38

blumie607
Member
Registered: 2004-03-08
Posts: 175
Website

Re: Calendar?

I don’t think mdp_lib is required in the newest version. I think also that greenrift would prefer if mdp_calendar talk would be moved to the mdp_calendar plugin forum.

Last edited by blumie607 (2005-06-27 02:14:58)


bludrop studios .::. Creative Expression

Offline

#129 2005-07-28 17:31:56

june
Member
Registered: 2005-06-02
Posts: 47

Re: Calendar?

Hi,

I just starting to use mdp_calendar and was wondering if anyone has figured out how to abbreviate the days of the week differently. I would ideally just like to have single letters ( S M Tu W Th F S) instead of the three letter abbreviations.

The space I have for this calendar is limited…so single letter abbreviations would really help me out. I know my idea isn’t built in to the plugin ….was just wondering if anyone tried to write some additional code.

thanks.

june

Offline

#130 2005-07-28 18:35:28

paularms
Member
From: University of Minnesota
Registered: 2004-10-21
Posts: 155
Website

Re: Calendar?

June: you would have to apply a pretty large hack to the plugin to get it to work that way. I did it so the <code>&lt;th&gt;</code>‘s are styled with a smaller font-size.

Offline

#131 2005-07-28 19:22:04

june
Member
Registered: 2005-06-02
Posts: 47

Re: Calendar?

Ok…I’ll guess it’ll be a feature request then. :) I thought about making the font size smaller.

Offline

#132 2005-08-02 16:58:33

june
Member
Registered: 2005-06-02
Posts: 47

Re: Calendar?

Ok, so I’m trying to make my idea (to have the days like so S M T W T F) a reality.

I’m still a novice when it comes to php programming so please bear with me. :)

So far I’ve edited part of the plugin code to look like this:

<code>
function setDayNameFormat($f) { if($f 'FULL') { $this->dayNameFmt = '%A'; } else if ($f ‘ABBR’ ) { $this->dayNameFmt = ‘%a’; } else if ($f == ‘LET’ ) {

$m=date(“w”);
switch ($m) {
case 0: $this->dayNameFmt = “S”; break;
case 1: $this->dayNameFmt = “M”; break;
case 2: $this->dayNameFmt = “T”; break;
case 3: $this->dayNameFmt = “W”; break;
case 4: $this->dayNameFmt = “T”; break;
case 5: $this->dayNameFmt = “F”; break;
case 6: $this->dayNameFmt = “S”; break;
}}

else { $this->dayNameFmt = $f; }
}
</code>

This obviously doesn’t work. All the days of the week are labeled as the current day. For instance, all your see are “T” across the top today….yesterday they were all “M”

So I know this if else statement is where I set up the attribute that you use in the txp tag. And I’m thinking maybe I should create some sort of function that sets up the days of the week with the first letter only…and then call that function from this if else statment. But I don’t know how to actually code any of these ideas.

So any suggestions/ideas would be great.

thanks.

june

Offline

  1. Index
  2. » Archives
  3. » Calendar?

Board footer

Powered by FluxBB