Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

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

#97 2005-01-20 14:21:20

Martagnan
Member
From: Humberside - uk
Registered: 2004-06-21
Posts: 90
Website

Re: Calendar?

Hi Greenrift,
I am using your calander on my site. Unfortunately it won’t validate under doc type strict. There seems to be an issue with ampersands? If you get chance is there any way to adjust the code so that it will validate?

Thanks

Offline

#98 2005-01-29 13:21:35

hurben
Member
Registered: 2005-01-17
Posts: 11

Re: Calendar?

You can see my implementation of the mdp_calendar below. However, when I click on the dates it doesn’t seem to work the way you would hope. Any ideas?

<iframe src=“http://hurben.net” width=“100%” height=“550” frameborder=“0”>oops!</iframe>

Last edited by hurben (2005-01-29 13:32:35)

Offline

#99 2005-01-29 17:37:46

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

Re: Calendar?

> hurben wrote:

> You can see my implementation of the mdp_calendar below. However, when I click on the dates it doesn’t seem to work the way you would hope. Any ideas?

What tag are you using for your articles? If you are using txp:article you might want to try txp:mdp_calarticle.

Offline

#100 2005-01-29 18:01:06

txfrog1999
Archived Plugin Author
From: Texas
Registered: 2004-12-31
Posts: 17
Website

Re: Calendar?

Martagnan

You need to change the following lines:

(NOTE: remove the spaces between the ampersands and the following letter in the ‘to’ lines below)

73: …$dates[‘effective’],0).’”><</a>’);

to …$dates[‘effective’],0).’”>& lt;</a>’);

75: …$dates[‘effective’],1).’”>></a>’);

to …$dates[‘effective’],1).’”>& gt;</a>’);

243: &date=’

to & amp;date=’

312: ‘&’

to ‘& amp;’

I think thats it, but its been a week since I did this to get the calendar to validate so I might have missed one line… one way to be sure is make the changes and pass the page back through the W3C validator.

One thing to note about making these changes in Textpattern. <strike>For some reason which I haven’t gotten around to fixing</strike>I forgot that in browsers the textarea element auto renders HTML entities so when you edit a plugin to add these HTML characters (ie &amp;, &gt; etc.) they save just fine, but click on the plugin again to edit another line and they are decoded in the textarea and subsequently are again saved that way. For this reason I keep an archive of all plugins after I change them on my hard drive (copy and paste into BBEdit).

Last edited by txfrog1999 (2005-01-29 18:41:49)

Offline

#101 2005-01-30 06:44:05

Caged
Archived Plugin Author
From: Memphis, TN
Registered: 2004-06-07
Posts: 27
Website

Re: Calendar?

Nice one greenrift!

I couldn’t get the ‘hasarticle’ class to work even though some dates contained articles. I made the following change to get it to work:

<code>
//Line 223 if( strpos($info,’ ‘) === false ) {

//Change to if(strstr($info, ‘</a>’)) {
</code>


Isolated-Designs http://www.isolated-designs.net/core

Offline

#102 2005-02-11 20:49:39

supa
Archived Plugin Author
Registered: 2005-02-10
Posts: 27
Website

Re: Calendar?

I’m not sure if this is an error with TXP or if this is the way it’s supposed to be, but article_custom (which mdp_calarticle uses) doesn’t take into account the form specified in the article.

A quick hack to publish.php fixed it for me though:

Line 486 or so:

$article = $Form;

change to

$article = ($override_form) ? fetch(‘Form’,‘txp_form’,‘name’,$override_form) : $Form;
  • shrug *

Thanks for the calendar plugin!

-Steve

Last edited by supa (2005-02-11 20:51:06)

Offline

#103 2005-03-26 16:34:49

MsContrary
Member
From: California
Registered: 2004-12-27
Posts: 52
Website

Re: Calendar?

> andrea wrote:

> also, when i go to the plugin section of admin on my txp, and click on mdp_calendar i can see the code and below a bunch of instuctions but no example images or anything. kinda weird. should i just install again?

I don’t know if it’s just us or if everyone can’t see the examples. To do so, I just selected “view source” in my browser and was able to see the code at least! That gave an idea of what to try on my page at any rate.

M


I am not a professional woman

Offline

#104 2005-03-27 22:05:50

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: Calendar?

I’m almost got this plugin working the way that I want it too. I’ve got a main calendar section that uses the large calendar. If you click on an article in the calendar, the article’s page has a smallformat calendar in the sidebar, and this is where the problems begin.

Here’s a starting URL:

http://new.garthnewel.org/index.php?s=calendar

From there, click either of the posts. They’re just test gibberish. From the page with the article, choose a date on the smallformat calendar. On the new page, the smallformat calendar has been set to December 1999. WTF?

Note that if you surf the smallformat calendar to another month using the navigation links, this problem no longer exists, even if you surf it back to the current month. The problem only occurs on the first load of the smallformat calendar. The problem seems to be that the first time it shows up, the URLs it generates to articles are this:

http://new.garthnewel.org/index.php?s=events&date=2005-03-23&month=&year=

instead of this:

http://new.garthnewel.org/?id=3&month=3&year=2005

My guess is that it has to do with the empty “month=&year=” bit, but I can’t tell for sure. Is there anyway to make the smallformat calendar pick up the current month in a way that will work?

Thanks,
Matt

Offline

#105 2005-04-01 14:19:10

theturninggate
Member
Registered: 2004-11-07
Posts: 185
Website

Re: Calendar?

No one has any kind of solution?

Offline

#106 2005-04-13 10:08:07

alicson
Member
Registered: 2004-05-26
Posts: 465
Website

Re: Calendar?

for me, smallformat works quite well..
but if i try doing it without smallformat (the regular/big calendar) then i get a completely blank page… the whole page where the calendar is called will not load.

has anyone else experienced this?


textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation

Offline

#107 2005-04-17 00:30:16

koopd
Member
From: Chester, United Kingdom
Registered: 2005-01-03
Posts: 13
Website

Re: Calendar?

I’ve got this plugin running on my site, unfortunately clicking a linked date generates a ‘clean’ URL when I need a messy one, my txp installation is set to use messy.

Any ideas?

Cheers


koopd.com
seventytwo.co.uk
—-
Graphic Designer, Wed Designer and Developer.

Offline

#108 2005-04-17 00:30:21

koopd
Member
From: Chester, United Kingdom
Registered: 2005-01-03
Posts: 13
Website

Re: Calendar?

I’ve got this plugin running on my site, unfortunately clicking a linked date generates a ‘clean’ URL when I need a messy one, my txp installation is set to use messy.

Any ideas?

Cheers


koopd.com
seventytwo.co.uk
—-
Graphic Designer, Wed Designer and Developer.

Offline

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

Board footer

Powered by FluxBB