Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#121 2007-02-13 17:25:05
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Wow, this thread moves quickly!
Thanks for all the feedback, I’ll have a play with Dale’s suggestion and see how it goes. Also looking forward to OpalCat and Matthews solution.
Offline
#122 2007-02-13 17:34:54
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
I assume it would go just before $form =
'<fieldset id="zem_event_fieldset">'.n.
'<legend>'.zem_event_gTxt('event_label').'</legend>'.n.
But I don’t know php well enough (ok, AT ALL) to understand how to format it so that it actually displays the link. I know I can’t just slap <h3 class="plain"><a href="#file-tags" onclick="toggleDisplay('zem_event_fieldset'); return false;">Event Settings</a> into the php code and expect it to show up correctly…
—
WebKat
Offline
#123 2007-02-13 18:25:21
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Well, it was worth a try, but no go. We’ll need some PHP skills here. I’ll call in the troops. :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#124 2007-02-13 20:02:30
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Well, I finally have the navigation doing what I want: http://test.tucsonirishcommunity.com/calendar/
Last edited by OpalCat (2007-02-13 20:03:04)
—
WebKat
Offline
#125 2007-02-13 20:15:34
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
decoderltd wrote:
I’ve installed the plug-in but keep getting this
Notice: Unable to save event in /httpdocs/textpattern/lib/txplib_misc.php(512) : eval()'d code on line 1548&whenever I try to enter data on certain fields (eg Time, Contact Email), ay idea what’s going wrong?
I had that error and it means the JS is not getting loaded. Can’t remember offhand how I fixed it but try to make sure your JS is in the right place.
Offline
#126 2007-02-13 20:46:14
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
To add the toggle change:
$form =
'<fieldset id="zem_event_fieldset">'.n.
to
$form =
'<h3 class="plain"><a onclick="toggleDisplay(\'zem_event_fieldset\'); return false;" href="#zem_event_fieldset">Events Panel</a></h3>'.n.
'<fieldset id="zem_event_fieldset" style="display:none;">'.n.
Change Events Panel to the wording of your choice. This around line 1603 of the code.
If you want the toggle over to the left with the others it’s a little more involved but doable.
Shoving is the answer – pusher robot
Offline
#127 2007-02-13 21:59:57
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Hak,
That seemed to work great. Its now working at txp.squaredeye.com, and I’ve submitted a patch for said changes with Zem. I’ve also included the changes for the next/prev links.
Opal cat, glad to see you got them working properly
All,
Zem is ready to begin bug testing the minical problems. Before we can address those things seriously though we’ll need to raise funds. (I can already see eyebrows raised :) Again, this style of plugin creation is unprecendented, but it is a style we are trying nonetheless. Those of you who have had issues might consider helping out. I can imagine this taking an hour or two of rigorous testing to find said bug. Please consider donating to the project.
Also, First on our list is bug squarshing, then feature improvements. If you’d like to see certain features, please consider donating. Currently there is some possibility of a public side “event adding” feature in the works. If the feature goes through, it is likely that the primary contributor would require individual payments (similar to a ransom) to share the burden of that feature with others. You can begin to see how this plugin is likely to keep working.
It will be a symbiosis of interest, funding, geekery, and ultimately great functionality for our TXP installs, which, for those of us who sell these things, means a greater asset when selling to clients.
If you have any questions, feel free to ask :)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#128 2007-02-13 23:16:10
- nardo
- Member

- From: tuvalahiti
- Registered: 2004-04-22
- Posts: 743
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
OpalCat, looking good … how did you get the prev & next months into the nav? I hadn’t thought of that
Offline
#129 2007-02-14 00:47:06
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Had to add these lines:
# provide $m and $y
$prev = str_replace('$y',$y,$prev);
$prev = str_replace('$m',$m,$prev);
$next = str_replace('$y',$y,$next);
$next = str_replace('$m',$m,$next);
And then the tag is like this:
<txp:zem_event_calendar_nav prev="← <txp:php>echo strftime('%B', mktime(0,0,0,$m-1,1,$y));</txp:php> | " next=" | <txp:php>echo strftime('%B', mktime(0,0,0,$m+1,1,$y));</txp:php> →" labeltag="strong" />
(I had to pester a php-codin’ buddy of mine to help me with it.)
—
WebKat
Offline
#130 2007-02-14 03:52:21
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Matthew Wrote
Before we can address those things seriously though we’ll need to raise funds.
Are you collecting funds for this yet? If so, how/where do I contribute?
—
Tom
Last edited by renobird (2007-02-14 03:52:57)
Offline
#131 2007-02-14 04:15:35
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Renobird,
You can now contribute directly at the test site at: txp.squaredeye.com/donate
Last edited by ma_smith (2007-02-14 21:10:56)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#132 2007-02-14 04:21:36
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Your link is missing the .com part
Would it be insulting for me to donate a very small amount? Full time student/single mom/no job here…
—
WebKat
Offline
#133 2007-02-14 04:22:59
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Opalcat,
If you care to send me the plugin code for the hack you’ve come up with, and/or the lines where the first chunk of PHP was added I will submiit this as a possible patch to Zem, and at least add it to the examples page (giving you credit where credit is due of course).
Let me know.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#134 2007-02-14 04:46:10
- rsilletti
- Moderator

- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
One idea that would work well as a feature of this plugin is the auto deletion of articles, and given events those as well, with a setting in the event form. I find that the patch for what I would like to see available is somewhat beyond my skill level.
I’ve no real idea what the cost for development would be for this and I don’t need it myself for anything I am doing, but I find that I am still being approached for the idea. The plugin I did do was ras_delete_expired which was tailored to a specific need.
The general idea is to create the option in the event form to auto delete an event and/or article at the expiration of the event, as a setting in the form, on an event by event basis.
Given the presence in the database fields in zem_event_calender to contain values, for instance : delete_article & delete_event by field name and the input check boxes in the event form for “Delete event on expiration” & “Delete article and event on expiration” the rest could be done with a plugin; of course the complete functionality would be nice as well.
I would like to be able to refer folks interested in this idea to this thread and perhaps gain enough support for it to get it done, if the idea has merit?
Last edited by rsilletti (2007-02-14 04:46:39)
Offline
#135 2007-02-14 05:22:09
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Hi rick.
When you said “delete”… do you mean to delete it from the database or just “deleting” (hiding) in the public side?
Maybe the “delete” action could just be to set the article/event to status “hidden” or “draft” (i think “hidden” makes more sense).
One “problem” with this delete/hide could be… what to do with the permanent link? return a 404?
I hope I’ve understand right your idea.
Offline