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