Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#13 2004-05-27 00:31:00

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

Re: Calendar?

mdp_Calendar v0.2.2 Fixed the bug you found (thank you), and another one when using the smallformat of the calendar (every day was given a hasarticle class irregardless of weather it actually had one or not).

bluemie, if you also wanted to use my upcomingeventlist plugin it will have the same problem. I’ll fix the issue and upload a new version.

Offline

#14 2004-05-27 00:38:45

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

Re: Calendar?

Okay. Thanks a lot. By the way, I didn’t see any code in the upcoming eventlist plugin.


bludrop studios .::. Creative Expression

Offline

#15 2004-05-27 00:55:47

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

Re: Calendar?

> blumie607 wrote:

> Okay. Thanks a lot. By the way, I didn’t see any code in the upcoming eventlist plugin.

Umm, seems to be working fine of for me. I’m becomming more and more happier that I signed up for TextDrive, because my school’s webhost doesn’t enjoy working well. Try downloading it again if you need to, mdp_upcomingeventlist v0.1.1

Offline

#16 2004-05-27 01:13:27

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

Re: Calendar?

Thanks. It works now.

Is there a way (for upcoming event list) to have it display the content of the article, also?

Thanks.


bludrop studios .::. Creative Expression

Offline

#17 2004-05-27 02:10:46

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

Re: Calendar?

Also, would you be comfortable in maybe sharing some basic CSS for how to style a calendar (similar to the one in the example picture)?

Thanks.


bludrop studios .::. Creative Expression

Offline

#18 2004-05-27 04:03:36

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

Re: Calendar?

> blumie607 wrote:

> Also, would you be comfortable in maybe sharing some basic CSS for how to style a calendar (similar to the one in the example picture)?

Thanks.

.mdp_calendar { border-collapse: collapse; text-align: center; width: 100%;
} .mdp_calendar td { vertical-align: top; width: 14%; height: 100px; border: 1px solid #000; background-color: #6F8765; padding-left: 5px; }

.mdp_calendar th { font-size: 150%; border: 1px solid #000; background-color: #6F8765; }

.mdp_calendar .permalink { display: block; margin-bottom: 0.5em; text-align: left; }

.mdp_calendar #calendar_today { background-color: #8EBE5B; }

.mdp_calendar .invalidDay { background-color: #566F4C; }

.mdp_calendar .date { text-align: right; font-weight: bold; margin-right: 0.25em; }

.mdp_calendar .hasarticle { background-color: #FFF; }

That’s the style sheet that pertains to the actual calendar itself. The dropshadow that you see in the big calendar example is a modified version of ALA’s CSS Drop Shadow articles

You could probably make the calendar look nicer if you defined the width of the td and th elements, instead of the total width of the table. That way you’d guarantee that days were all the same width.

Last edited by greenrift (2004-05-27 04:04:49)

Offline

#19 2004-05-27 04:24:13

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

Re: Calendar?

That’s real cool. Thanks.

What about having article body appear in the list?


bludrop studios .::. Creative Expression

Offline

#20 2004-05-28 21:56:03

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

Re: Calendar?

Nothing greenrift?


bludrop studios .::. Creative Expression

Offline

#21 2004-05-29 05:46:46

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

Re: Calendar?

Summer work is now starting up and I’ve got some other projects on my plate, so I will have less time for a little while. I’ll add some more stuff to upcomingeventlist in a little while, probably after TextDrive gets up and going.

Offline

#22 2004-05-29 18:57:09

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

Re: Calendar?

> greenrift wrote:

Download mdp_calendar v0.2

Why do I get only this when I try to download?

<?php

$plugin=‘YTo4OntzOjQ6Im5hbWUiO3M6MTI6Im1kcF9jYWxlbmRhciI7czo2OiJhdXRob3IiO3M6MTU6Ik1hcnNoYWxsIFBvdHRlciI7czoxMDoiYXV0aG9yX3VyaSI7czo0MzoiaHR0cDovL3d3dy5lbmdpbmVlcmluZy51aW93YS5lZHUvfm1kcG90dGVyLyI7czo3OiJ2ZXJzaW9uIjtzOjM6IjAuMiI7czoxMToiZGVzY3JpcHRpb24iO3M6NjY6IlByb3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yd2FyZHMKCQkkZCA9IG1kcF9jYWxlbmRhcl9WYWxpZGF0ZU1vbnRoWWVhcigkZGF0ZVsibW9uIl0rMSwkZGF0ZVsieWVhciJdKTsKCX0KCS8vIFJlbW92ZSBhbnkgb3RoZXIgbW9udGggb3IgeWVhciB2YXJpYWJsZXMgZmlyc3QKCSRzdHIgPSBwcmVnX3JlcGxhY2UoIihbJnw/XShtb250aHx5ZWFyKT0oWzAtOV0qKSkiLCIiLCRfU0VSVkVSWydSRVFVRVNUX1VSSSddKTsKCSRoYXZlX3NlcGVyYXRvciA9IHN0cnBvcygkc3RyLCI/Iik7CgkoISRoYXZlX3NlcGVyYXRvcikgPyAkc3RyIC49ICI/IiA6ICRzdHIgLj0gIiZhbXA7IjsKCSRzdHIgLj0gIm1vbnRoPSIgLiAkZFsibW9udGgiXSAuICImYW1wOyIgLiAieWVhcj0iIC4gJGRbInllYXIiXTsKCglyZXR1cm4gJHN0cjsKfQoKZnVuY3Rpb24gbWRwX2NhbGVuZGFyX2ludmFsaWREYXlzKCRzdGFydCwgJGVuZCkKewoJJG91dHB1dCA9ICIiOwoJZm9yKCRpID0gJHN0YXJ0OyAkaSA8ICRlbmQ7ICRpKyspIHsKCQkkb3V0cHV0IC49IHRkKCImIzE2MDsiLCIiLCJpbnZhbGlkRGF5IiwiIik7Cgl9CglyZXR1cm4gJG91dHB1dDsKfQoiO3M6MzoibWQ1IjtzOjMyOiIzNjE2ZjYzMGExNDdhNDQ5ZDM0N2ZlNzNmOTEwYTJlZCI7fQ==’
?>

Does anybody have a live version to see?

Offline

#23 2004-05-29 19:31:51

Zarabadoo
Member
From: Denver, CO
Registered: 2004-03-14
Posts: 28
Website

Re: Calendar?

the plugin is a .txt file containing that. it is encoded. you download the txt file and then upload it in the plugins admin. all the code will show up after you upload it.


—Al “Zarabadoo” Steffen
http://www.zarabadoo.com

Offline

#24 2004-05-30 06:39:39

kevinm
New Member
From: Toledo, Ohio, USA
Registered: 2004-05-05
Posts: 2
Website

Re: Calendar?

greenrift: Excellent work! I’m using your plugin on my webpage/blog, http://www.kevinmarsh.com.

Thanks again! -k

Last edited by kevinm (2004-05-30 06:40:03)

Offline

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

Board footer

Powered by FluxBB