You are not logged in.
Perhaps something along these lines:
- $thedate = gmmktime(0, 0, 0, $this->month, $theday, $this->year);
+ $thedate = mktime(0, 0, 0, $this->month, $theday, $this->year) + tz_offset();
it may seem a bit inane, or actually be inane to suggest with something this complex, but if you can hard code the change from GMT to settings sensitive code in the class definition; rendering it accessible to attribute settings would be easy?
Last edited by rsilletti (2009-01-30 01:41:58)
I’m using it on my church’s website and seems to be pretty great so far. No real issues with the basic functionality. It did take a while to figure out how to get to certain classes to style them, but overall it’s a keeper.
It did take a while to figure out how to get to certain classes to style them, but overall it’s a keeper.
Good to hear it’s working. If I can iron out the timezone kinks thanks to rsilletti’s excellent input it should be even better.
Since you had trouble figuring a few things out, please let me know if you can think of a way it could be made simpler or more intuitive (e.g. better default settings). I’m a programmer so I often don’t see the “simple” idea that’s right in front of my face and is obvious to everyone else. Thanks.
I have managed a work around for time zone adjustments, at least for display purposes. The site remains in GMT and I hacked up posted and expires to add time zone adjustment as an attribute for display accuracy in the calendar. Given you can deal with the unintuitive process of adjusting posting and expire times for future events from GMT at the time of posting, it’s working well for me. If anyone is interested in the tag set let me know in this thread.
Bah … still doesn’t work as I would like. Still need to be able to move the calendar reference itself into local time to get proper display.
Last edited by rsilletti (2009-02-03 02:17:32)
Hi, and thanks for your great Plugin. I used to use ZemEvent, but I think it died… So I’m giving a try to your plugin and it’s awesome!
1. I don’t know How to show a Category List. In fact I do know, but once clicked it just shows From Today to Past events. But not Future events… How could I do this? <txp:chh_article_custom time=“any”>
2. I don’t understand how to make a Article (event) recurring… Please, could you explain it, like if I’m a dumb?
Thanks in advance.
Last edited by robhert (2009-02-04 23:17:58)
ONE is LOVE
it just shows From Today to Past events. But not Future events… How could I do this?
<txp:smd_article_event />. It works very much like
<txp:article_custom /> but is specific to the calendar plugin because it understands recurring / spanned / extra events.
how to make a Article (event) recurring
You need a spare custom field. So go and make one and call it, I dunno,
Frequency. Then in your article, type in that field how often you want the event to occur. For example if you want your event repeated weekly, use
1 week. Or fortnightly, use
2 weeks. Or
10 days. Or
3 months. Or
first Monday (of the month). And so on.
All you then need to do when displaying the calendar is tell the plugin the id of your custom field that contains the recurring info. e.g.:
<txp:smd_calendar section="events" stepfield="custom_4" />
(where custom_4 is the one you called “Frequency” earlier). I would love to be able to let you specify the custom fields by name but, well, I suppose I could but it would incur an extra time penalty as the custom field would need to be looked up in the database first. I might look into this as an option later on but for now, remember you need to use “custom_N” when using the
Does that help?
Thanks for your quick-answer! Now I know how to do that. But talking about the first question, I started to show the Lastest Events with <txp:smd_article_event /> in a Box above, and I show the 10 blog entries too, in the same FrontPage, but when I use pagination of the 10 blog entries, in the url I see: ?pg=2; and the Box above, of the Lastest Events, shows Empty. That’s what I don’t know how to fix it with smd_article_event. If you want to see it in action, please send me PM.
Last edited by robhert (2009-02-05 00:31:28)
ONE is LOVE
For reference, Robhert was using smd_article_event on the same page as a regular article list. Since smd_article_event understands older/newer (unlike article_cuistom) it was intercepting the
?pg= variable and switching to the 2nd “page” of events when flicking through the standard article list.
In the next version you can now disable paging in the smd_article_event tag if you so desire. Thanks for the bug report, Robhert.
Last edited by Bloke (2009-02-05 01:42:40)
Hi Stef, I wonder if there’s some tag so I could have the 10 next events (from Today) In zem_event I used this: <txp:zem_event_list date_from=“today” date_to=“10 day” form=“event_now” />
ONE is LOVE
I wonder if there’s some tag so I could have the 10 next events (from Today)
Or perhaps this:
<txp:smd_article_event time="future" to='<txp:smd_cal_now offset="10 days" />' />
EDIT: (you may need either/both of
EDIT 2: I just read your post again and understood what you really meant. I updated the code in this post
Last edited by Bloke (2009-02-05 01:57:34)