Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#316 2007-04-12 09:26:48

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

ma_smith wrote:

anyone else not seeing any events on the large calendar? Interesting bug :) Anyone else hosted with dreamhost?

Hi Matthew,

I had this problem (and I’m not on dreamhost), in my case it turned out to be connected to the publish date – unless the the article was published with the Set timestamp to now… selected. nothing was showing. If I went back to non-showing calendar events, clicked the option and resaved, the event appeared!

While I’m typing – has anyone figured how to use event categories in the sort field, I’ve tried a few variations, but nothing is working

The other thing I’d like to do is highlight “today” in the large and mini calendar, anyone know the css I need to use for this?

Thanks.

Last edited by decoderltd (2007-04-12 09:28:03)

Offline

#317 2007-04-14 21:36:30

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

OK I just turned off the MLP pack and it removes the problems with events not showing up on the mini-calendar.

Or at least I thought it did…..added a couple of events and two showed up in the mini-calendar and two did not….its a bit weird isn’t it. It seems to still be buggy.

Code I have in the page is the same I posted earlier….

Offline

#318 2007-04-14 22:46:05

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

unless the the article was published with the Set timestamp to now… selected. nothing was showing.

Are you setting the article timestamp in the future? Is your server’s clock accurate? Do you have problems with articles not showing?

Events won’t be displayed unless the articles they are attached to are visible: that is, Status is Live or Sticky, and the Posted timestamp is <= now().

If you have some events that display and some that don’t, what are the differences between them?


Alex

Offline

#319 2007-04-15 07:03:30

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

zem wrote:

If you have some events that display and some that don’t, what are the differences between them?

In my case, no difference. Article set to live, events fields filled in etc etc. I am working on localhost via MAMP.

I added a new event in June, and it displayes properly in the zem_event_list. All details are correct and the date displays properly. It just does not display in the mini calendar.

OK, now I changed TXP to debugging status, then visit the main events page – this is the message that is shown on screen:

tag_error <txp:zem_event_name wraptag=“p” /> -> Textpattern Notice: Context error: there is no thisevent here on line 513
textpattern/lib/txplib_misc.php(512) : eval()’d code:513 trigger_error()
textpattern/lib/txplib_misc.php(512) : eval()’d code:373 zem_event_thisevent()
textpattern/publish.php:958 zem_event_name()
processTags()
textpattern/publish.php:917 preg_replace_callback()
textpattern/publish/taghandlers.php:2285 parse()
textpattern/publish.php:958 if_article_list()
processTags()
textpattern/publish.php:917 preg_replace_callback()
textpattern/publish.php:453 parse()
tag_error <txp:zem_event_name wraptag=“p” /> -> Notice: Only variable references should be returned by reference on line 514
textpattern/lib/txplib_misc.php(512) : eval()’d code:373 zem_event_thisevent()
textpattern/publish.php:958 zem_event_name()
processTags()
textpattern/publish.php:917 preg_replace_callback()
textpattern/publish/taghandlers.php:2285 parse()
textpattern/publish.php:958 if_article_list()
processTags()
textpattern/publish.php:917 preg_replace_callback()
textpattern/publish.php:453 parse()
index.php:34 textpattern()

EDIT: All the error messages above disappeared after I discovered an unclosed zem_event tag in the page source, which I copied from Mathew’s test page. Just a head’s up for anyone else seeing the same problems.

Last edited by jstubbs (2007-04-15 14:30:26)

Offline

#320 2007-04-15 07:19:07

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

BTW, just added an article in April and it displays fine in the mini calendar. Seems if the article is this month it displays in the mini cal, if not this month, then it does not display. Still testing…

Offline

#321 2007-04-15 14:35:36

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

One small bug which may or may not have been noticed…..

Edit: Not a bug, my mistake. Another improperly closed tag.

Last edited by jstubbs (2007-04-15 14:44:19)

Offline

#322 2007-04-15 22:11:33

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Seems if the article is this month it displays in the mini cal, if not this month, then it does not display.

What exactly are the article dates that do and don’t work?


Alex

Offline

#323 2007-04-16 06:30:56

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

I have 3 articles, and 3 events attached to articles, in the month of April on my testing MAMP installation.

The other 2 articles/events are in May and June respectively. I just placed them there to test.

Both of the articles/events display fine in an zem_event_list tag. When clicking on the event, all details display correctly. Its just in the mini-calendar the two events do not display. I added a third event in April just to test it out, and it worked fine.

Offline

#324 2007-04-16 09:35:07

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

zem wrote:

bq. unless the the article was published with the Set timestamp to now… selected. nothing was showing.

1. Are you setting the article timestamp in the future? Is your server’s clock accurate? Do you have problems with articles not showing?

2. Events won’t be displayed unless the articles they are attached to are visible: that is, Status is Live or Sticky, and the Posted timestamp is <= now().

3. If you have some events that display and some that don’t, what are the differences between them?

Hi Zem,

1. Non-appearing articles were ‘published’ at a future date as I need to input a years worth of events but didn’t need them to display on the front page (news) until closer to the event date. Guess I need to use zem_event tags rather than article tags?

2. Articles were set to “Live”

3. The difference was the “publish” date being set to future.

The other area that’s really throwing my event listing out is being able to sort by event_category. I’ve tried zem_event_date.event_categories asc and zem_event_date.event_category asc, but neither work and nothing appears at all – what should I be using?

Thanks.

Offline

#325 2007-04-16 09:36:18

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Hi Zem,

zem wrote:

1. Are you setting the article timestamp in the future? Is your server’s clock accurate? Do you have problems with articles not showing?

Non-appearing articles were ‘published’ at a future date as I need to input a years worth of events but didn’t need them to display on the front page (news) until closer to the event date. Guess I need to use zem_event tags rather than article tags?

2. Events won’t be displayed unless the articles they are attached to are visible: that is, Status is Live or Sticky, and the Posted timestamp is <= now().

Articles were set to “Live”

3. If you have some events that display and some that don’t, what are the differences between them?

The difference was the “publish” date being set to future.

The other area that’s really throwing my event listing out is being able to sort by event_category. I’ve tried zem_event_date.event_categories asc and zem_event_date.event_category asc, but neither work and nothing appears at all – what should I be using?

Thanks.

Last edited by decoderltd (2007-04-16 09:38:57)

Offline

#326 2007-04-16 12:39:53

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

decoderltd,
At this point the event_categories are used only as labels, and might be helpful for colorizing certain events based on those categories should you implement some CSS for them to do so. Isn’t that correct Alex?


Offline

#327 2007-04-19 16:09:33

decoderltd
Member
From: London
Registered: 2006-06-20
Posts: 248
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Thanks for your reply Matthew, it would be handy to have categories available as a sort option.

On another question, do you know how I can highlight ‘today’ in the calendar? If possible I’d also like to apply a different class to past events/dates. Thanks.

Offline

#328 2007-04-20 01:20:01

squaredeye
Member
From: Greenville, SC
Registered: 2005-07-31
Posts: 1,495
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

decoderltd,
I don’t have the time at the moment to check, but I think thought that there was a class you could assign for “today”. If not, I would think it wouldn’t be hard to add to the plugin. Perhaps you could develop a set of formal requests as “addition requests” for the plugin and see if anyone bites?

Matthew


Offline

#329 2007-04-20 03:12:21

zem
Developer Emeritus
From: Melbourne, Australia
Registered: 2004-04-08
Posts: 2,579

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

Non-appearing articles were ‘published’ at a future date as I need to input a years worth of events but didn’t need them to display on the front page (news) until closer to the event date. Guess I need to use zem_event tags rather than article tags?

You’ll probably discover other problems too. zem_event is designed to only display events that are attached to live, visible articles. Future articles aren’t usually visible, so zem_event doesn’t display those events.

I’d suggest a different approach to keeping those articles off the front page.

Sorting by category is difficult (and perhaps meaningless) because events can belong to multiple categories.


Alex

Offline

#330 2007-04-23 07:45:07

jstubbs
Member
From: Hong Kong
Registered: 2004-12-13
Posts: 2,395
Website

Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]

jstubbs wrote:

Both of the articles/events display fine in an zem_event_list tag. When clicking on the event, all details display correctly. Its just in the mini-calendar the two events do not display. I added a third event in April just to test it out, and it worked fine.

Zem, is there any update on this bug (if it is a bug) – articles/events outside the current month displaying correctly in the event list but not the mini calendar?

I’d like to know if its a question of paying for a fix or whether its being worked on. Whatever it is, I’d like to know as a client wants this for a site and it would be good to have an idea what is the next step required to get it fixed.

Last edited by jstubbs (2007-04-23 07:46:17)

Offline

Board footer

Powered by FluxBB