Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#421 2007-08-01 13:25:01
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
The PHP file won’t install, you need the compiled version. Try plugin it hasn’t been revised with since the original.
Offline
#422 2007-08-01 13:29:36
- sparkybarkalot
- Member
- Registered: 2004-10-13
- Posts: 43
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
rsilletti,
Thanks very much. That is exactly what I needed! It installed just fine.
Offline
#423 2007-08-01 14:40:20
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Argh I forgot to add the compiled version back to the 0.3.5 release. I’ll fix that tonight and send Matthew a new ZIP.
Shoving is the answer – pusher robot
Offline
#424 2007-08-01 14:51:52
- sparkybarkalot
- Member
- Registered: 2004-10-13
- Posts: 43
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Thanks for everyone being so quick to respond. I do have another question. Does anyone have any links to live sites running zem_event yet? I’ve been going through all the examples on Textpattern Squared, but it would be great to see how other people have implemented zem_event, take a peek at any CSS styling they may have done, etc. If not, I’ll have a nice link to share myself in the next month, which I’ll do. Let me know if I’ve posted this question to the wrong forum.
Offline
#425 2007-08-01 19:19:51
- andyflan
- New Member
- Registered: 2007-04-06
- Posts: 6
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
hi
Thanks for the update.
Adding a section attribute is great but I really feel that it ‘should’ work as follows:
- Additional attributes should be ‘section’ and ‘all_sections’.
- ‘section’ attribute should default to ‘$s’.
- ‘all_sections’ attribute should default to 0.
These changes will make the plugin context sensitive with regard to sections
(Great plugin on the whole by the way)
Code:
// list all events
function zem_event_list($atts, $thing=NULL) {
global $zem_thiseventcal, $pretext, $s;
extract(lAtts(array(
'wraptag' => '',
'class' => __FUNCTION__,
'break' => '',
'breakclass' => '',
'form' => 'zem_event_display',
'sort' => 'zem_event_date.event_date asc, zem_event_date.event_time asc',
'date_from' => (gps('date_from') ? gps('date_from') : 'today'),
'date_to' => (gps('date_to') ? gps('date_to') : ''),
'date' => gps('date'),
'label' => '',
'labeltag' => '',
'limit' => '',
'category' => (gps('c') ? gps('c') : @$pretext['c']),
'section' => $s,
'all_categories' => gps('all_categories'),
'all_sections' => 0,
'location' => gps('location'),
'all_locations' => gps('all_locations'),
'debug' => 0,
),$atts));
if ($thing === NULL)
$thing = fetch_form($form);
$where = 'zem_event_calendar.id=zem_event_date.event_id and zem_event_calendar.article_id = textpattern.ID and textpattern.Status >= 4 and textpattern.Posted <= now()';
if ($date) {
@list($y, $m, $d) = explode('-', $date);
if ($y and $m and $d) {
$date_from = $date_to = "$y-$m-$d";
}
elseif ($y and $m) {
$date_from = "$y-$m-01";
$date_to = strftime('%Y-%m-%d', strtotime('-1 day', strtotime('+1 month', strtotime($date_from))));
}
elseif ($y) {
$date_from = "$y-01-01";
$date_to = "$y-12-31";
}
elseif ($t = zem_strtotime($date)) {
$date_from = strftime('%Y-%m-%d', $t);
$date_to = strftime('%Y-%m-%d', $t);
}
}
$w = zem_event_timeq($date_from, $date_to);
if ($w)
$where .= (' and '.join(' and ', $w));
if (!$all_sections) {
$sections = do_list($section);
$where .= (" and textpattern.Section IN (".join(',', quote_list($sections)).")");
}
Last edited by andyflan (2007-08-01 19:24:12)
AndyFlan
Offline
#426 2007-08-02 02:29:33
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Would it better to make section be able to take a comma delimited list of sections to include? I definitely like the default being $s though.
Would we need an all_sections attribute at that point? For that matter do we need an all_categories attribute? Couldn’t we achieve a similar effect by using section='all'
and category='all'
?
Anyone have any thoughts?
Shoving is the answer – pusher robot
Offline
#427 2007-08-02 02:51:38
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
The code patch on this thread should take a comma delimited list for section, to use no attribute set for “section” to enable all sections would make sense to me given that the processes(all sections or some sections) to be mutually exclusive. It would save the extra attribute.
Last edited by rsilletti (2007-08-02 02:52:31)
Offline
#428 2007-08-02 14:14:23
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Hello All.
Anyone out there developed or working on public event submission?
If not, anyone interested in working on it?
Just testing the waters…
—
Tom
Offline
#429 2007-08-03 16:42:31
- sparkybarkalot
- Member
- Registered: 2004-10-13
- Posts: 43
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
I’m trying to use both zem_event and rss_suparchive_menu and I’m having problems. Here’s my situation: I like the way rss_suparchive_menu outputs items (see this page for a nice example ) but in order to be able to do that, the article publication date needs to be the same as your event date.
Well, when I set my publication date to a future date, then zem_event_list will not display that event, I presume because TXP sees that event as having a publication date in the future and so “hides” that article/event until that date. So I guess my questions are:
1) Am I missing something? Is it true that I can’t do what I’m trying to do?
and
2) Shouldn’t zem_event_list display items based on the event date, essentially “overriding” TXPs behavior of hiding article output until the publication date?
I hope that makes sense. Thanks for any help I can get on this!
Offline
#430 2007-08-06 12:37:34
- andyflan
- New Member
- Registered: 2007-04-06
- Posts: 6
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
rsilletti wrote:
The code patch on this thread should take a comma delimited list for section, to use no attribute set for “section” to enable all sections would make sense to me given that the processes(all sections or some sections) to be mutually exclusive. It would save the extra attribute.
That wouldn’t work for me. I needed the plugin to be context sensitive for sections so section=”“ means the current section, not all sections. It needs to be like this because I don’t want to have to write hardwired section=“mysection” for each section I want to use events with. I don’t always know which section I’m in. Which ever way you work it, for me, you’re always going to end up with another attribute. I used all_sections to mirror the way all_categories work for consistency.
AndyFlan
Offline
#431 2007-08-07 00:55:13
- rsilletti
- Moderator
- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
andyflan – Ok, now I see your point, and yes you would need to do it the way your doing it. I had to plug this in to be sure how it behaved (which I like), and this being a complex plugin I can’t predict all ends, but it works well for me as is. I went ahead and created a patch if that will help – you might want to check it to make sure I got everything.
Last edited by rsilletti (2007-08-07 00:56:34)
Offline
#432 2007-08-14 09:18:10
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Has anyone taken a look at this issue ? I’d very much like that feature too.
Offline