[EventCalendar] A Word of Thanks and a Question

Dave Sabol desabol at gmail.com
Tue Dec 26 14:19:24 UTC 2006


Hi Alex,

Great suggestions across the board on the two issues I had. Clearing the
$post variable did the trick and fixed the issues I was having with
non-event posts. Additionally, I am going to take a look at the "All Day
Events" label on my site to see if I can get it to behave the way I want it
too.

Now for my question. I am just starting to use the EC functionality on a
pretty regular basis. As such I am going to have a lost of new events that I
am adding to my site. Because I allow comments and pings on my site for some
of the non-static posts, I don't want to shut them off completely, but the
one thing I don't want comments on are the events! I would suspect that
folks who use the plugin to manage tons of events could be in the same boat.

How difficult would it be to either add an option in the admin panel or as
part of the create post logic to disable comments, pings or both for all
posts that are part of the event category? What I am running into is either
posting my events and having to remember to shut them both off for all of my
events or forgetting to do it in the posting process and having to go back
and manually editing every event.

I found some code on the WP Codex that looks like it could be relevant:
http://codex.wordpress.org/Plugins/Auto_shutoff_comments, this is the
relevant query from the code.

        UPDATE $tableposts
        SET comment_status = 'closed', ping_status = 'closed'
        WHERE (comment_status = 'open' OR ping_status = 'open')
        AND post_status = 'publish'
        AND cat = '?' // this is something I added and would have to
reflect the EC3 category

Of course this turns of comments and pings after a specific period of time,
but I know it could be easily adapted to the type of use I am suggesting
above with little effort. I am not trying to foist this work off on you,
rather looking for your thoughts as to where I would / could integrate this
into the EC logic and how much of this code is necessary to do what I am
suggesting.

I'd love to hear your thoughts!

Dave
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://penguin.firetree.net/pipermail/eventcalendar/attachments/20061226/defa5cb7/attachment.html


More information about the EventCalendar mailing list