Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Calendar?
Does <code><txp:mdp_calarticle></code> work with future posts?
I am trying to use the small format calendar for an events calendar. Posts in the future highlight in the calendar, but when the link is clicked no articles appear. Articles in the past work fine.
This is a great plugin, btw!
Thanks a lot,
Andrea
Last edited by asarbogast (2004-10-05 23:57:16)
Offline
#86 2004-10-08 10:48:19
- shelest
- New Member
- From: Yaroslavl, Russia
- Registered: 2004-10-07
- Posts: 2
Re: Calendar?
Hi!
Has found a small bug in function mdp_calendar_specificDate
…
//global $pfr;
/* Find the articles posted on specific day */
foreach($rows as $row) {
$postedday = substr($row[‘fPosted’],8,2);
// my code start
$Title = ($row[‘url_title’]) ? $row[‘url_title’] : $row[‘Title’];
$Title = ($url_mode==1) ? $Title : ‘’;
// my code end
if($postedday == $day) {
…
and hardly below replace “$row[‘Title’]” with a “$Title”
…
$links[] = tag(formatHref($pfr, $row[‘Section’], $row[‘ID’], $title, $Title),‘span’,’ class=“permalink”’);
And in the rest magnificent work, btw!
Last edited by shelest (2004-10-13 07:58:43)
Offline
Re: Calendar?
Here’s how to get <code><txp:mdp_calarticle></code> to work with future posts, in case anyone else is having this problem:
Change line #446 of publish.php from
<code>“1 and Status=4 and Posted < now() “</code>
to
<code>“1 and Status=4 “</code>
Thanks greenrift!
Offline
Re: Calendar?
:: silly post, still having problems.. grumble ::
Last edited by andrea (2004-10-21 16:01:00)
Offline
#89 2004-11-11 14:16:18
- codyjack
- New Member
- Registered: 2004-09-27
- Posts: 3
Re: Calendar?
I have been able to get the small calendar format to work and love it.
But I have noticed the calendar jumping back to the current month after selecting an article in another month. I noticed that Fri had a solution for messy URLs (see earlier post), but I was wondering if anyone had come up with a solution for clean URLs? If not I will play around with it, but I thought I would ask in case someone had already spent the time to fix this.
Offline
Re: Calendar?
i was using this plugin back when it was version 2.-sometihng… it seems there was more customability then… from previous, i had changed the id and class of the styles to be “calendar” (rather than mdp_calendar)… but now how do i change the style of the calendar header and days of the week?
thanks,
~Alicson
*edit:
my site is pretty dependent on the akw_article_date_aware plugin… if i were to replace that with mdp_calarticle, i would lose that functionality entirely. i guess i can’t use this calendar plugin anymore, then?
Last edited by alicson (2004-11-12 00:27:29)
textpattern.org :: find and share Textpattern resources
docs.textpattern.io :: Textpattern user documentation
Offline
#91 2004-11-12 04:08:04
- Method
- New Member
- Registered: 2004-10-21
- Posts: 6
Re: Calendar?
Hi all,
My strange previous month URL looks like this:
http://stupididea.com/_amygdala/?tz_offset=-14400&tiddly_wiki_modifier=Method&stupidid_wikiPassword=XXX&stupidid_wikiUserID=1&stupidid_wikiUserName=Method&PHPSESSID=60c76ecfbe4270d012a1a5f5aae8ca07&month=10&year=2004
Everything between tz_offiset and month is weird bleedover from other MySQL installations. If I strip them out it works okay. I took Fri’s suggestion and changed $s to $section; should I have changed the global declaration in the function as well (I have, and the result is the same)? And I guess this is the question: is this a globals problem or a problem in mdp_lib?
Incidentally, there is an errant “.” in the previous if clause in navlink.
Any ideas? Thanks.
Offline
#92 2004-11-12 04:09:19
- Method
- New Member
- Registered: 2004-10-21
- Posts: 6
Re: Calendar?
Sorry for breaking the thread. :)
Offline
Re: Calendar?
Offline
Re: Calendar?
does anyone have this up that i can see?
nuff-respec ::: dannyb
Offline
Re: Calendar?
I got it here However, I don’t need it much.
Offline