Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#136 2007-02-14 05:59:10
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
maniqui wrote:
One “problem” with this delete/hide could be… what to do with the permanent link? return a 404?
I think “410 Gone” would be a proper reply code for “existed then, but vanished now” resources. This adds the benefit that one could easily add a page template named “error_410” in order to provide the user with friendly instructions on how to handle this mischief. My articles having expiry dates patch works this way, too.
Offline
#137 2007-02-14 10:54:26
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
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?
jstubbs wrote:
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.
Thanks jstubbs,
The JS seems to be in the right place as most of the fields are working, it just when the I get to Time and Finish Time fields. Would it have anything to do with my database tables or does it expect a particular entry format?
Last edited by decoderltd (2007-02-14 12:22:11)
Offline
#138 2007-02-14 12:11:46
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Matthew: the complete relevant bit of code with my changes is this:
# 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);
# next and previous months
$prev_m = strftime('%Y-%m', strtotime('-1 month', mktime(0,0,0,$m,1,$y)));
$next_m = strftime('%Y-%m', strtotime('+1 month', mktime(0,0,0,$m,1,$y)));
# prev link
$out[] = '<a rel="prev" class="'.$prevclass.'" href="'.pagelinkurl(array(
'date' => $prev_m,
's' =>@$pretext['s'],
'c' =>@$pretext['c'],
'q' =>@$pretext['q'],
)).'">'.$prev.'</a>';
# month name
$out[] = doTag(strftime('%B', mktime(0,0,0,$m,1,$y)), $labeltag, $class);
# next link
$out[] = '<a rel="next" class="'.$nextclass.'" href="'.pagelinkurl(array(
'date' => $next_m,
's' =>@$pretext['s'],
'c' =>@$pretext['c'],
'q' =>@$pretext['q'],
)).'">'.$next.'</a>';
—
WebKat
Offline
#139 2007-02-14 14:32:41
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
decoderltd,
What formats are you using for times, etc.
Can you describe the process of filling in the article or give us a screenshot of what you are filling in?
OpalCat,
Thanks, on both accounts. You can donate as little or as much as you like, its all needed, and if you give it with great heart that’s what counts :), well, okay, maybe that has more to do with charity giving, but hey, it sounded good. If you find the plugin helpful, consider paying for it, what you might benefit from it. ie: will you use it at a time where you might make money from it? Or will you always use it for personal uses? Based on those answers, you should probably come up with a good answer. ps. what are you studying?
rsilleti,
Your feature request sounds good. Do you think it would be possible to raise both awareness and funds for such a feature? If you were to manage that, I could interface with Zem, unless you prefer to. Not all features need to be public, though it seems to be the modus operandi of many here at the forum to make them so, and I tend to enjoy that myself :). Let me know how you’d like to proceed.
Wet,
Your addition would be smart too.
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#140 2007-02-14 14:36:44
- WebKat
- Member

- Registered: 2007-01-16
- Posts: 301
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
I’m going for my BFA with a concentration in graphic design.
Btw, my personal homepage uses Textpattern as well, and it’s getting close to being done…well ok maybe not “close” but it’s usable at this point. I have about 1/3 of my content transferred over. I only started messing with Textpattern about 3-4 weeks ago so I’m learning as I go along.
—
WebKat
Offline
#141 2007-02-14 16:23:52
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Matthew,
Getting a 404 error on the donation link.
Just a heads up.
—
Tom
Last edited by renobird (2007-02-14 16:24:31)
Offline
#142 2007-02-14 17:09:57
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Matthew, Any thoughts of coordinating community efforts around this? The plugin is GPL’ed so at the very least adding the toggle option or OpalCat’s additons don’t really require any of Zem’s time.
I mean releasing a version with the toggle code I provided above would only take the 2 seconds to do an export from plugin composer. And I’d be happy to add OpalCat’s changes too. However I think it wouldn’t be beneficial to have a bunch of branches floating around, so it would be nice to have an official place where the integrations could happen.
Anyway just thinking. I love the idea of plugins becoming more community owned then tied to a specific developer. Makes the likelyhood of development stopping less likely.
Shoving is the answer – pusher robot
Offline
#143 2007-02-14 17:24:14
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Hi Hak,
Thanks for creating the toggle code, certinally makes everything much tidier.
Like your idea regards a single branch for community development. Love to help if you’re happy for me to make suggestions, I’m afraid I have no php experience what-so-ever!
Offline
#144 2007-02-14 17:48:54
- rsilletti
- Moderator

- From: Spokane WA
- Registered: 2004-04-28
- Posts: 707
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
maniqui,
“ Delete” is intended to mean remove permanently from the database, display control is more easily done but has drawbacks with both external factors (rss and such) and some display options.
Most request this to automate the process of removing article content after its need has been served.
Offline
#145 2007-02-14 19:06:15
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
ma_smith wrote:
decoderltd,
What formats are you using for times, etc.
Can you describe the process of filling in the article or give us a screenshot of what you are filling in?
I’ve tried using three formats (eg 7.00, 7.30pm and 19.30), but neither work and return the error. This is a screenshot with the problem fields outlined in red:
Last edited by decoderltd (2007-02-14 19:11:45)
Offline
#146 2007-02-14 20:06:41
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
decoderltd,
try 7:30
also, I’d actually like to get js time selectors implemented. I don’t think it would be too awful hard to do for someone who knew what they were doing. Maybe you could help round up someone to do that? We are using Jquery, and so you’d need to find jquery time selectors (currently that’s what we’re using for date selectors). We’d need to find someone who could make sure the PHP was correct :)
Matthew
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#147 2007-02-14 20:13:17
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Offline
#148 2007-02-14 20:38:00
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
Matthew what do you mean by Time selectors? I would think an input mask would be sufficient.
Shoving is the answer – pusher robot
Offline
#149 2007-02-14 21:13:55
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
renobird,
Thanks. Let me go find my head. Its around here somewhere.
Hak,
input mask…. ohhhh, that’s fancy. I likey. Yeah, that’d be perfect. How would we implement that?
Also, I’ve talked to Zem about letting this plugin run as a community driven plugin and because its GPL, we just need to keep it community related and focused. So, if anybody is ready/willing to do the coding/schematic work to move it forward, I am all for that, and I believe Zem is not opposed. I just didn’t look into how to use the plugin composer. Perhaps I’ll do that unless your willing to roll out these changes Hak. If you were up to helping me with this, that’d be outstanding.
One thing with OpalCats changes, would be that it would be best if we could implement that and give the tag new attributes instead of the raw php going in the tag. How difficult would that be?
Matthew
Last edited by ma_smith (2007-02-14 21:19:35)
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
#150 2007-02-15 00:51:01
Re: [plugin] [ORPHAN] zem_event [flexible integrated event management]
I haven’t totally groked the input mask examples I’ve come across, but dang it I will.
I have to take a closer look at OpalCat’s changes to see how to make them attributes but it should be doable. Obviously I can roll out my own changes :) I’d love to help anyway I can with this, as I see it as a good step forward community wise. I’m away tomorrow (Friday), for a company ski trip (I love my new job) but I can look into putting stuff in place over the weekend.
BTW I am not opposed in any way to paying zem for his time. I think that it is only fair and I think if features come up and no one steps up to do it, it’s great to be able to go to him in a payed capacity. However if others are willing to do it maybe we can implement more features for less money/free.
After all I also don’t want to pay zem for my time :) I also think it might ease some of the resistance to plugins in the community if we can develop a sustainable method for keeping plugins alive without relying on a single developer. Since so much of the fear is that they will become unsupported.
Shoving is the answer – pusher robot
Offline