Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#61 2004-07-11 01:23:21

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

Re: Calendar?

When I try and validate my site, I am getting some errors that are coming from the calendar. Seems that there is a Table Row that doesn’t contain anything. Anyway to correct this?

Here is what I get when I view the source:

<pre>
<code>

<td>30</td> <td>31</td>
</tr>
<tr>
</tr>
</table>
</code>
</pre>

The <code><tr></tr></code> section is what is causing the validation error.

Last edited by Kaiser (2004-07-11 01:25:02)

Offline

#62 2004-07-11 01:32:01

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

Re: Calendar?

Larrym,
In the calendar tag all you have to do is set smallformat = 1. So it should look like this:

<code><txp:mdp_calendar section=“something” smallformat=“1” /></code>

Then just use CSS to get your dates bold or whatever other styling aspects you might want.

I use the small format on my site. Crevicedwellers.com

Last edited by Kaiser (2004-07-11 01:35:43)

Offline

#63 2004-07-11 02:14:00

Sam
Member
From: New York City
Registered: 2004-06-26
Posts: 127
Website

Re: Calendar?

Version 0.3 of Greenrifts Calendar fixs the validating problems Kaiser, as well as the small problem where articles appeared to be posted a day behind when there was a large time offset.

As well as some new exciting features I would imagine, watch his site! =)

Last edited by Sam (2004-07-11 02:15:35)

Offline

#64 2004-07-11 02:37:02

marco
Member
From: Montreal
Registered: 2004-02-24
Posts: 62

Re: Calendar?

> greenrift wrote:

> mdp_calendar 0.2.4

This is a great plugin. Here’s an idea for an enhancement, perhaps for a later version:

Add below the calendar a legend, such as colored boxes and associated tooltip text; when the user clicks on a legend box the calendar would highlight, in the respective color, only those days which have posts with a category selected from the legend. When the user clicks on the highlighted day, the corresponding posts are listed.

As an example, consider posts that are regular article posts, but may be about different events – concerts, shows, conferences, etc. recorded as categories, and associated with the corresponding posts.

I am not a PHP developer but I think this would be a fairly minor enhancement, since it would basically involve modifying the select statement with a where clause containing the search term from the legend
(i.e. the category). The legend itself could be a form, I guess…

Here’s a link that shows something similar: http://www.djoetzidouble.net/booking.php

Finally, it would be really great if several instances of the calendar could be placed on the page horizontally, like in the example above (or vertically).

Note that this is not about scheduling – it is only an enhancement that allows the calender to “filter” posts based on user selection.

Last edited by marco (2004-07-11 02:40:57)

Offline

#65 2004-07-11 07:20:22

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

Re: Calendar?

Thanks for the info, Sam.

I think Marco’s idea is a pretty good one. Maybe different colors for different categories?? That would be kind of cool.

Of course, anything above and beyond what is already offered with this plug-in is just extra icing. It is a very useful plug-in. A big thanks to Greenrift.

Last edited by Kaiser (2004-07-11 09:20:53)

Offline

#66 2004-07-15 21:59:16

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

Re: Calendar?

Updated Calendar to v0.3

I fixed the date/time errors and also smallformat is much much improved.

Update UpcomingEventList to v0.3

Not too much fixed.

Offline

#67 2004-07-15 23:56:15

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

Re: Calendar?

It seems the class in small format has changed from mdp_calendar to mdp_smallcalendar, so if like me you upgrade to .3 and notice all your styles have vanished, make sure to check this. Or of course you could change the class to whatever you like.

Also, when I revalidated my page I got a mess of errors. Last version’s only error was an empty tr tag. At least I don’t get that one any longer!!

Last edited by Kaiser (2004-07-15 23:57:17)

Offline

#68 2004-07-16 05:59:54

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

Re: Calendar?

I really like the fact that you can see more then one post on a single day when using small format.

Looks like all the errors I’m getting come from the “dirty” links in the table header for month and year..

Just like to thank you again for this badass plug in.

Last edited by Kaiser (2004-07-16 06:00:51)

Offline

#69 2004-07-16 15:42:54

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

Re: Calendar?

This is the real v0.3

There was a problem with some date offset stuff, if you had a negative date offset it wouldn’t navigate months properly. That has to been fixed.

Kaiser, my calendar is validating perfectly. I don’t know why yours wouldn’t be. You should download the new 0.3, because you’re having the same offset problem I was.

Also, people running Firefox/Mozilla, if you can’t see the entire plugin text you just need to select-all (ctrl-A) and copy and paste it into a text editor. The disappearing text is a bug when you have really, really long solid strings of characters (and base64encode produces those quite nicely).

Last edited by greenrift (2004-07-16 15:52:30)

Offline

#70 2004-07-16 19:09:56

Kaiser
Archived Plugin Author
From: Denver, CO
Registered: 2004-07-04
Posts: 27
Website

Re: Calendar?

Using the real v0.3 and it is Valid! Rock on!

I switched back to the old 0.3 and did get errors again. Since it doesn’t do it anymore, I don’t know if this is important, but here is the first error. All the other errors see to stem from this:

Line 28, column 74: cannot generate system identifier for general entity “year”

The rest of the errors point to the same general location.

Another trick for Firefox/Mozilla users is to just do a file —> save page as.

Offline

#71 2004-07-16 23:39:03

Sam
Member
From: New York City
Registered: 2004-06-26
Posts: 127
Website

Re: Calendar?

Kaiser this is happening because of the &‘s in the plugin. If you replace the ones that are giving the validation errors to &amp; this solves the problem.

As greenrift told me to do, best to just copy and paste the whole plugin into a text document and make changes there and save the text document. As if you go back and make more changes the &amp;‘s get reformatted back to &‘s and screw up validation again.

Offline

#72 2004-07-17 00:17:04

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

Re: Calendar?

> Sam wrote:

> Kaiser this is happening because of the &‘s in the plugin. If you replace the ones that are giving the validation errors to & this solves the problem.

As greenrift told me to do, best to just copy and paste the whole plugin into a text document and make changes there and save the text document. As if you go back and make more changes the &‘s get reformatted back to &‘s and screw up validation again.

Exactly, only the same problem messed up your post. It’s the encoded ampersands ( “& a m p ; “, without the spaces) that are giving you the problems. When you “save” the plugin, that encoding goes away, which results in “invalid” code.

Offline

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

Board footer

Powered by FluxBB