Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#97 2004-11-05 19:29:59

Remillard
Plugin Author
From: Lenexa, KS
Registered: 2004-05-16
Posts: 169

Re: Browsing by date plugin

To those who are wondering about the day issue, it has something to do with the calculation of time zone. For me I have to use a day ahead to get anything (though I wonder if I got closer to midnight either way if I would start to see some other behaviors.

Anyhow, all posts are stored in the database on the server time, not the timezone corrected time. So when you ask for May 17, 2004, it ought to look for 2004-05-17 00:00:00 – timezone offset, to 2004-05-17 23:59:59 – timezone offset. Either the day request isn’t getting translated right, or the posting time isn’t getting translated right, I’m still fuzzy on that one, but looking into it.

EDIT: Just figured it out I think. It has to do with the checktime function. Basically it converts the time, and applies the timezone offset, but then only returns month, day, and year, when it probably ought to be returning month, day, year, hour, minute, second (to catch the day overlap.)

It will probably also have trouble with daylight savings time (since TXP doesn’t recognize it, and you have to manually change the time zone to account for it.)

To do all this perfectly, things are going to get messy with epoch time, daylight savings, etc. Much thought needed.

Remillard

Last edited by Remillard (2004-11-05 19:37:14)

Offline

#98 2004-11-13 19:59:47

jayaqt
Member
From: Phils
Registered: 2004-05-13
Posts: 11
Website

Re: Browsing by date plugin

anyone got the fix for this when using the plugin? i remember seeing it here a while ago but can’t find it anymore.

Warning: Missing argument 4 for dopermlink() in /home/…./textpattern/publish.php on line 516


I see the moon, and the moon sees me.
God bless the moon, and God bless me.

Offline

#99 2004-12-03 17:03:28

Yurodivy
New Member
Registered: 2004-10-29
Posts: 9

Re: Browsing by date plugin

I’ve done a thorough search of the forums and still haven’t been able to determine if the bug mentioned in macsepp’s post above (dated 2004-09-02) has been resolved.

Any info would be appreciated. Thanks in advance!

Offline

#100 2005-02-11 04:14:30

misterk
Member
From: Morris, MN
Registered: 2004-02-24
Posts: 77
Website

Re: Browsing by date plugin

@Remillard:

You mentioned earlier you were encountering a bug with links looking like site/section/title, and not site/section/id/title like they should. I’ve got my tags set up right i think, but am having this problem on all the pages except for site/section/?y=2005&m=2&d=10.

I see that on your site you managed to fix it, but don’t see anywhere how you fixed it. What am I doing wrong?

Offline

#101 2006-05-07 00:39:31

macsepp
Member
From: Ludwigsburg - Germany
Registered: 2004-09-02
Posts: 19
Website

Re: Browsing by date plugin

I’m using akw_archive 0.6 (g19) and akw_date_aware 1.2 (g19) on a Textpattern · 4.0.3 installation that I just updated. Now I get an Parse Error:

Fatal error: Call to undefined function: formatmentionslink() in /var/www/vhosts/domain/httpdocs/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 172

The tag that causes the error seems to be:
<code><txp:akw_article_date_aware form=“Single” listform=“default” /></code>

Can anybody tell me what might cause the error?


Textpattern loves me, and I love textpattern.

Offline

#102 2006-05-07 00:47:22

alesh
Member
From: Miami, FL
Registered: 2005-04-13
Posts: 228
Website

Re: Browsing by date plugin

same here:

Fatal error: Call to undefined function: formatmentionslink() in /home/.ralston/alesh/criticalmiami.com/textpattern/lib/txplib_misc.php(459) : eval()’d code on line 172

does anyone have this plugin working with 4.0.3?


Yes, I have tried turning it off and on.

Offline

Board footer

Powered by FluxBB