ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Use custom date field for calendar

March 15, 2010 8:24am

Subscribe [3]
  • #16 / Mar 26, 2010 10:16am

    Frank Harrison

    154 posts

    Yep the EventRunningList() array sounds like a good idea. Not sure why you need DateEventCount() though? Why not just use count($events[$myDate]) whenever you need to know how many events you have on one date?

  • #17 / Mar 26, 2010 1:42pm

    ChiefAlchemist

    913 posts

    That might work. I don’t think I’ve ever had to use count on a 2 dimensional array so I wasn’t sure about that. I figured worst case, I’d just keep a running count. Might come in handy anyway. Not sure how doing that “once” rates against count running every day.

    None the less, problem solved, no? IMHO the coding is the easier part when compared to “what the heck do I need to do here?” 😊

  • #18 / Mar 28, 2010 7:04pm

    Frank Harrison

    154 posts

    Yeah that makes sense. As I said, I’ve already gone down the plugin route (for my sins…) on this project. But if you get this working nicely and can improve on my code I’d love to see it - might well be handy on future ones…

  • #19 / Mar 28, 2010 10:47pm

    ChiefAlchemist

    913 posts

    You got it. Now that the idea is all framed out the actual coding shouldn’t be too bad. Next project that needs a calendar I’m on it 😊

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases