Archive for the 'PHP' Category



wp-includes/classes.php line 679-702, for the Events listed outside of the Event category
PLAIN TEXT
PHP:

if (mysql2date('U', $this->posts[0]->post_date_gmt)> mysql2date('U', $now)) { //it's future dated

    $this->is_preview = true;

   

    /* DIRTY FUTURE-POSTS HACK FOR EC3 */

    if (function_exists('ec3_get_calendar')) {

        global $ec3;

        $ec3_post_0_is_event = intval($wpdb->get_var(

            [...]

So I read at a few points that EventCalendar 3.1 was on its way, but I decided to start mangling some code to get multiple event categories to work!
Open eventcalendar3.php near line 525;
PLAIN TEXT
PHP:

// Which posts are we interested in?

if($ec3->show_only_events)

{

// Category ID number for event posts.

$where_post = "category_id IN ('$ec3->event_category','14')";

}

I changed $where_post to add [...]

I am setting up a new WordPress blog, 2.0.3, for another site. This site is using EventCalendar 3.0 and will have future scheduled posts that represent events. However WordPress doesn't have this option built in from what I can see and a quick search yielded no results.
I did a few searches and finally opened up [...]