Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#256 2009-05-06 06:36:47

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: smd_calendar: complete schedule / event / calendar / diary

My Diagnotic tab is as follows…

Textpattern version: 4.0.8 (r3085)
Last Update: 2009-01-23 21:26:16/2009-01-23 21:11:45
Document root: C:/wamp/www/kmc.new (C:\wamp\www\kmc.new)
$path_to_site: C:\wamp\www\kmc.new
Textpattern path: C:\wamp\www\kmc.new\textpattern
Permanent link mode: title_only
upload_tmp_dir: c:/wamp/tmp
Temporary directory path: C:/wamp/www/kmc.new/textpattern/tmp
Site URL: kmc.new
PHP version: 5.2.5
GD Image Library: bundled (2.0.34 compatible); supported formats: GIF, JPG, PNG.
Server Local Time: 2009-05-06 07:34:54
MySQL: 5.0.51a-community-nt
Locale: en_GB.UTF-8
Server: Apache/2.2.8 (Win32) PHP/5.2.5
Apache version: Apache/2.2.8 (Win32) PHP/5.2.5
PHP Server API: apache2handler
RFC 2616 headers: 
Server OS: Windows NT 6.0
Active plugins: chh_if_data-0.10, rvm_privileged-0.3, smd_calendar-0.42a, mg_setheader-0.1, yab_shop_core-0.7.0, yab_shop_config-0.7.0, yab_shop_3rd_party-0.7.0, rah_sitemap-0.4, rvm_css-0.4, hak_tinymce-0.7.4, stm_article_order-0.2, adi_variables-0.1, ebl-image-edit-2.0

Offline

#257 2009-05-06 11:20:24

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: smd_calendar: complete schedule / event / calendar / diary

Also this template isn’t outputting posted or expires times but is outputting the events

BEGIN:VCALENDAR
VERSION:2.0
X-WR-CALNAME:Gigs Calendar
PRODID:-//Apple Computer, Inc//iCal 1.5//EN
X-WR-TIMEZONE:Europe/London
<txp:smd_article_event time="future" limit="1000" category="calendar-event" stepfield="custom_1" skipfield="custom_2" extrafield="custom_3">

 BEGIN:VEVENT
 DTSTART:<txp:posted format="%Y%m%dT%H%i%s" />
 DTEND:<txp:expires format="%Y%m%dT%H%i%s" />
 SUMMARY:<txp:title />

END:VEVENT
</txp:smd_article_event>
END:VCALENDAR

Offline

#258 2009-05-06 11:24:28

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: smd_calendar: complete schedule / event / calendar / diary

I think there is something wrong with the time system on my local server because if I use

<txp:posted format="%Y" />

It outputs the year fine.

Offline

#259 2009-05-06 13:37:50

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_calendar: complete schedule / event / calendar / diary

FireFusion wrote:

How to I get an event to repeat everyday or just Monday to Friday every week?

Every day: put 1 day in your stepfield for the event. It’ll repeat every day until the expiry time.
Mon-Fri: tricky. How long for? That will determine the best way of doing it. You could set it up as above and then simply list each weekend date in an omitfield. Or set it up as a single spanned event from Monday to Friday and then use extrafield to list all the Mondays you wish it to repeat (remember to add a + to each date so it copies the entire span). Other than that it’s probably a bit awkward if you have the same event repeated week in week out for years on end. woof might have some insight here as he did a site for a show that went on for a few weeks Monday to Friday. See if any of his posts in this thread help.

this template isn’t outputting posted or expires times

Check the strftime manual. %s (lower case ‘s’) has a special meaning and %i doesn’t exist. I think my example is wrong, sorry: I’ll fix it.

Last edited by Bloke (2009-05-06 13:40:32)


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#260 2009-05-06 14:57:59

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: smd_calendar: complete schedule / event / calendar / diary

Thanks Stef.

Any idea why my cancel and extra fields aren’t working?

Offline

#261 2009-05-06 17:03:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_calendar: complete schedule / event / calendar / diary

FireFusion wrote:

Any idea why my cancel and extra fields aren’t working?

Nope :-(

I copy n pasted your code (just changed the category name to one that I already had set up) and the exact same three sets of dates. I saw the events in my calendar as expected: on the 10th and 25th of every month except May which had one on the 10th and one on the 18th. Very odd.

I’ve never tested the plugin in a Windows environment (I don’t have such a server) and also never on a local install. Whether that has any bearing on it I don’t know but if it does I’d love to know why. Does anyone else have any insight here?


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#262 2009-05-07 11:55:22

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: smd_calendar: complete schedule / event / calendar / diary

Hi Stef,

I’ve started a fresh on my sever and fields are working now :) But having some odd problems with some events (wrong days, not repeating etc). Do you mind if I send you a login for you to have a look. I really can’t see why it’s not appearing as expected.

Feature request
Ability to repeat expired events.

Say I have some weekly classes that run on Mondays and Tuesdays (multiday event) most of the year except a few weeks. It would be good to just repeat that as a multi day event and just list the term break dates to cancel. The holiday variable wouldn’t work in this case as i need other events on those days to run.

It could work like this…

Stepfield = 7 days+
Omitfield = 18-may-2009+,25-may-2009+,etc

The plus on the step field indicates it should exceed it’s expiry time. Does that make sense?

Offline

#263 2009-05-07 15:24:35

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: smd_calendar: complete schedule / event / calendar / diary

Feature request 2

Today button. Is you choose to have the drop style nav it would be good to have a “Today” button next to it that takes you to Today on the calendar.

Offline

#264 2009-05-07 18:02:05

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_calendar: complete schedule / event / calendar / diary

FireFusion

Sure, send me a login. Can’t guarantee I can help in a timely fashion right now, but I’ll try. Also, thanks for the feature requests. That first one I thought about today after trying to sort out your Mon-Fri thing. I’m wondering whether it’s possible to relax the restriction on spanned events not being allowed to repeat via stepfield. Will give it some thought. Same with your 2nd request “Today” button.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

#265 2009-05-08 10:26:46

FireFusion
Member
Registered: 2005-05-10
Posts: 698

Re: smd_calendar: complete schedule / event / calendar / diary

Hi Bloke,

i’ve sent a login. Thanks for taking a look and considering my requests. It’s much appreciated.

Also the code to filter events that month by a category isn’t working either….

<a href="?c=<txp:category1
         />&<txp:smd_cal_info type="s, year,
         month, calid" html="1" join_prefix=""
         />" title="Display only <txp:category1 title="1" />">(C)</a>

The URL goes to www.mysite.org/calendar/?c=chanted-prayers&s=calendar&#38;y=2009&#38;m=05 but doesn’t change event listings. :(

Offline

#266 2009-05-11 19:36:46

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: smd_calendar: complete schedule / event / calendar / diary

Hi Bloke,

I’m playing with this amazing plugin. Thanks for it, Bloke.
Wondering if there is a reason not to have a wraptag attribute to wrap the event list on a particular cell. I mean, a teammate for eventwraptag.
In fact, to translate it to TXP “standards”.

wraptag = a tag that wraps the list of events on a cell.
break = eventwraptag.

Although, thinking about it a little more, wraptag and break should be “reserved” for wrapping/breaking the whole output generated by smd_calendar. In other words, for wrapping/breaking the table. Even more: break probably doesn’t make sense and shouldn’t be added.

So, back to the request: similar to wraptag / break attributes for the list of events inside a cell. Plugin already has the eventwraptag (this will be equal to a break attribute). Now we need the eventlistwraptag :D (a better name will be welcomed).

(or am I missing something?)

Last edited by maniqui (2009-05-11 19:37:18)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#267 2009-05-11 19:44:24

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: smd_calendar: complete schedule / event / calendar / diary

^^ Probably cellform is my friend for achieving the above, although having a eventlistwraptag as attribute will help the plugin to keep its Guinnes record of “Plugin with most attributes ever” ;)


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#268 2009-05-11 20:30:12

maniqui
Member
From: Buenos Aires, Argentina
Registered: 2004-10-10
Posts: 3,070
Website

Re: smd_calendar: complete schedule / event / calendar / diary

BTW, if on a cellform, you are having troubles assigning replacement variables (i.e. {events}) to a txp:variable, use single quotes (') around the value for value attribute.
In other words:

<txp:variable name="has_events" value="{events}" /> -> won’t work.

<txp:variable name="has_events" value='{events}' /> -> will work.


La música ideas portará y siempre continuará

TXP Builders – finely-crafted code, design and txp

Offline

#269 2009-05-12 21:41:34

woof
Member
Registered: 2004-08-01
Posts: 128

Re: smd_calendar: complete schedule / event / calendar / diary

I have a requirement that I thought either the maintain or nameval attributes would solve but I’ve drawn a blank. I’d be grateful for any pointers anyone might have

I’m trying to keep an anchor in the url when navigating the calendar with the prev/next links
e.g. currently when I’m here:
/section/article?m=6&y=2009#calendar
and I click “next” I get
/section/article?m=7&y=2009
instead of what I’m looking for:
/section/article?m=7&y=2009#calendar

maintain="#calendar" doesn’t seem to work

any suggestions? thanks

Offline

#270 2009-05-12 21:50:37

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,497
Website GitHub

Re: smd_calendar: complete schedule / event / calendar / diary

woof wrote:

I’m trying to keep an anchor in the url when navigating the calendar with the prev/next links

Hmmm, not sure that’s possible right now, sorry. But it’s a valid request. I’ll see if I can work it into the plugin.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Hire Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB