Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#577 2008-05-27 14:05:13

mark.adams82
Member
Registered: 2008-05-27
Posts: 14

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

Hello,
I need to be able to display two calendars in the ‘minical’ style that appear on different pages and are modified by different categories.
From what I can see, it doesnt look as if jmc_events supports the output of a calendar, and zem_events cannot be used to modify more than one events calendar.
All I require is that days that appear on each of the calendars can be given an event class to change the appearance of any given day.

Any help would be greatly appreciated.

Offline

#578 2008-06-26 14:53:08

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

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

Hi everyone,

As you’ll see here, I’m using zem_event to list a series of matches for a club site. I need to display the matches in event category blocks, but using the code below the categories are spliting due to not being able to use zem_event_category in the zem_event_list sort tag.

My current code is:

<table>
<txp:zem_event_list limit="999" form="cltc_event_table" section="calendar" label="Forthcoming Fixtures and Events" labeltag="h3" wraptag="" sort="Category1 asc,zem_event_date.event_date asc,zem_event_date.event_time asc" />
</table>

…and the form (cltc_event_table) is:

<txp:if_different>
<tr>
<th colspan="4" class="blank"></th>
</tr>
<tr>
<th colspan="4" class="primary"><txp:zem_event_categories link="0" /></th>
</tr>

<tr>
<th scope="col" abbr="Date">Date</th>
<th scope="col" abbr="Event">Event</th>
<th scope="col" abbr="Location">Location</th>
<th scope="col" abbr="Time">Time</th>
</tr>
</txp:if_different>

<txp:if_different>
<tr>
<txp:chh_if_data>
<th colspan="4" class="secondary"><txp:category1 title="1" /></th>
</txp:chh_if_data>
</tr>
</txp:if_different>

<txp:if_different>
<tr>
<td><txp:zem_event_date format="%a, %b %d, %Y" class="" wraptag="" />
<txp:zem_event_finish_date label="to" wraptag="ul" break="br" format="%a, %b %d, %y" /></td>
<td><txp:permlink><txp:zem_event_name /></txp:permlink></td>
<td><txp:zem_event_location /></td>
<td><txp:zem_event_time format="%l:%M%P" wraptag="" /></td>
</tr>
</txp:if_different>

I’m getting desperate to fix this problem so any help would really appreciated – even if it’s to say that it can’t be done!

Thanks.

Offline

#579 2008-07-29 12:06:03

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

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

Regarding problems with zem_event_mini_calendar and the days between 1 and 9 i propose the following solution:

Within zem_event_v0.3.5 go to line 1009.

There you will find the following lines:

——

# display each cell in the calendar, 7 × 5 grid for ($w=0; $w<$numrows; $w++) { $day_row = array(); for ($d=1; $d<=7; $d++) { $daynum = ($w*7) + $d; $dayofmonth = $daynum – $firstday;

if (checkdate($m, $dayofmonth, $y)) { // this is a real day

if (isset($days[“$y-$m-$dayofmonth”])) {

——

Ignore the first few lines and concentrate on the last one:

if (isset($days[“$y-$m-$dayofmonth”])) {

Delete it and add the following two lines instead:

$dom=date(“d”,mktime(0,0,0,$m,$dayofmonth,$y));
if (isset($days[“$y-$m-$dom”])) {

This sems to work for me and I hope, that it will work for others too.

Regards,

pepebe

Last edited by pepebe (2008-07-29 19:24:50)

Offline

#580 2008-07-29 12:46:07

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

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

I just noticed that I failed to praise this project and it’s contributers. I’m sorry.

THIS IS A GREAT PIECE OF WORK!!!

In my opinion a proper calendar is one the most important features textpattern needs (apart from a css-based table free backend…) so please let’s continue to improve this precious piece of work.

After working for a few hours with zem_event, I noticed that there are some issues that as far as I can tell cannot be handled by zem_event but would come in handy for many people:

Cancelled Events:
How can I tell visitors that a certain recurring event will be cancelled on a specific day?

Enhanced Recurring Events:
Though there are options for events recurring every x days or weeks, there should be an option for events recurring on specific days. For example from monday to friday or Wedneday and Friday. This is a fairly common thing and should be adressed in the future.

Weekly Calendar:
Something like zem_event_calendar, but condensed to a specific week.

Talking about a Monthly or Weekly Calendar: Some handle to show or hide certain details for events would be nice. Something along the lines of

<txp:zem_event_calendar name=“1” time=“1” finish_time=“1” />

would be great.

As a standard name and time could be set to 1=show while all other event details could be set to 0=don’t show.

Greetings,

pepebe

P.S. I have noticed that requests and contributions in this thread have dwindled in last months. Are there still people out there interested in bringing this baby home?

Last edited by pepebe (2008-07-29 13:06:24)

Offline

#581 2008-07-29 13:11:59

nabrown78
Member
From: Northampton, MA, USA
Registered: 2006-10-04
Posts: 294
Website

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

Hi Pepebe,
I use zem_event on a couple of sites; it is really the only option I have found for a calendar within Textpattern. I have tried using a google calendar instead, but it just doesn’t give enough flexibility in the displaying of events. It would be wonderful wonderful wonderful if a knowledgeable coder took responsibility for this plugin, and I for one am always willing to contribute cash for a useful plugin!

-Nora Brown

Offline

#582 2008-07-29 15:09:34

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

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

Hi Nora,

I think it woult be a good idea to let us know what kind of flexibility you want to see with zem_event. Perhaps this will stir up some activity ;)

Talking about cash. In the past I failed to “sell” textpattern to several clients because of the lack of a proper event management. Right now I have two clients interested in such a feature. Because I have a very tight schedule, I have to turn away from txp toward other options. Sure there are workarrounds and tweaks, but this is not the way I work and most of all “Time is money”.

Txp is perhaps the most versatile software out there, but it it still fails to meet the most basic standards in some areas. As I mentioned before, the backend is a mess. Of course there are ways to address those issues, but again, hacks are out of question. I don’t have the time to rewrite a backend after a new release…

Do you have any php skill to contribute to our cause?

I for one am working on a weekly calendar right now. Anyone willing to help?

Greetings, pepebe

Last edited by pepebe (2008-07-29 15:55:56)

Offline

#583 2008-07-31 10:07:48

infrarosso
New Member
Registered: 2007-10-15
Posts: 6

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

hi all! i’m using zem_event since some time and i find it great. i swear hat whenever i’d start to earn something with my website i’ll donate something for sure. Bytheway: i’d like to do something like “today is (date) and there are (n) events and (m) are in the event category (category)

Is there any way to do something like that (even modifing source code, of course).
Every help is more then welcome.
Giovanni

Offline

#584 2008-08-01 05:03:26

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

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

hi infrarosso,

well, I don’t think we have to tweak the zem_event sourcecode for that kind of problem, yet on the other side it we could write a zem_event_counter function. Until then a few lines of php in your template should achieve what you need.

I don’t have the time to come up with a solution today, but if you can wait a few days, i’ll brew something up over the weekend.

Regards,

pepebe

Offline

#585 2008-08-01 07:39:01

infrarosso
New Member
Registered: 2007-10-15
Posts: 6

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

hi pepebe,
First of all thank you very much for the quick answer. Then of course i can wait and whenever i would be able to solve it earlyer i’ll post here for sure.
Thx again,
Giovanni

Offline

#586 2008-08-04 13:14:30

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

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

Hi folks!

In an attempt to meet my humble needs regarding zem_event, I have added a few things to this already great textpattern plugin. Until somebody tells me what to do with it I intend to post it here: http://docs.google.com/Doc?id=dhgqhbvp_5f5sz5bcj (Edit: This file was deleted. I will share my changes as soon as I have the sparetime to setup a proper website for it.)

Attention: This hack need some serious testing. It looks good on my textpattern installation, and I tried all kind of kinky stuff with it, but nevertheless it might cause some unexpected sideeffects on other platforms. So be cautious and most of all don’t use it on an important project until a hand full of people get the idea that it actually works like it was intended.

Installation
Somehow I wasn’t able to transform the plugin properly, when- and whereever I tried, part of the plugin was cut off (I suspect ied_plugin_composer and something regarding maximum upload filesize). Because I don’t recommend to use the plugin in a production environment, you may stick for now with event.php anyway.

Just create a plugin directory (somethin like path_to_yoursite/textpattern/plugins) and tell textpattern where to find it (admin->preferences->advanced->“Plugin cache directory path”

So whats new about it?

zem_event_calendar

Now you get additional calender views for one week or only three days

With the view attribute in zem_event_calendar you may tell your calendar to show a whole month, just one week or only three days

Example:

<txp:zem_event_calendar view=“month” />
<txp:zem_event_calendar view=“week” />
<txp:zem_event_calendar view=“threedays” />

Because those additional calendars need their own navigation, I also tweaked zem_event_calendar_nav a little bit.

This function was enhanced by the “step” attribute. Now you may create a navigation pushing your calendar by a “day”, a “week” a “month” or a even a whole “year”!

I also removed some problems with zem_event_mini_calendar. Dates between 01 and 09 of each month will now be shown properly.

For starters, cut and paste the following lines into a template and link it to your calendar section:

<hr />
<h3>Overview – Three Days</h3>
<txp:zem_event_calendar_nav class=“zem_event_calendar_nav” label=”%A, den %d. %B %Y” step=“day” />
<txp:zem_event_calendar view=“threedays” table_caption=”“ table_th=”<span>%A, </span><span>%d. %B %Y</span>” />

Comments:
  • table_caption=”“ : This way you get rid of that double heading if you use calendar in conjunction with calendar_nav
  • table_th : Style the content of table headings (<th>) however you like.

<hr />
<h3>Overview – One Week</h3>
<txp:zem_event_calendar_nav class=“zem_event_calendar_nav” label=“KW %U” step=“week” />
<txp:zem_event_calendar view=“week” table_caption=”“ table_th=”<span>%a, </span><span>%d. %B %Y</span>” />

<hr />
<h3>Overview – One Month
<txp:zem_event_calendar_nav class=“zem_event_calendar_nav” label=”%B %Y” step=“month” />
<txp:zem_event_calendar view=“month” table_caption=”“ />

(P.S. Don’t forget, that the information content for each kalendar entry is created by the zem_event_cal_entry form.)

<hr />
<h4>Navigation Whole Years</h4>
<txp:zem_event_calendar_nav class=“zem_event_calendar_nav” label=”%Y” step=“year” />

<h2>Mini Calendar</h2>
<txp:zem_event_calendar_nav class=“minical_nav” />
<txp:zem_event_mini_calendar class=“minical” class_event=“full” class_empty=“empty” section=”“ />
<hr />

Last edited by pepebe (2008-08-11 13:11:26)

Offline

#587 2008-08-04 14:13:19

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

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

Hi Pepebe,

Really good to have somebody working on zem_event again, it’s a great little plug-in and it would be terrible to see it just fade away.

I’ve been using it on a live site for a while now and it works pretty well (mini calendar aside), except for this one issue that I’ve been trying to work around without much success – do you have any ideas about a solution?

Offline

#588 2008-08-04 21:17:00

pepebe
Member
From: Mannheim, Germany
Registered: 2005-02-07
Posts: 74

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

@decoder,

I agree with you, it would be a waste of really good work to let it fade away. The good news are, that the mini calendar problem seems to be solved (at least, it works for me). Either try the revised plugin or use the hack I described a few posts above.

Regarding your problem, I’m not sure if I understand it. Please give me some more details and a rough example of what you want to achieve. Until then I will tinker around with some dummy events and try to get a grip on the search issue in general.

CU

pepebe

P.S: Just noticed that I should clean up the php code of the revised plugin and perhaps add some comments. I will do so as soon as I find the time to do some “fun” work…

@infrarosso

I’m on it. Keep the faith. ;)

Last edited by pepebe (2008-08-04 21:18:32)

Offline

Board footer

Powered by FluxBB