Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • I had to tackle the same problem. To accomplish this I modified the fullcalendar.js file.

    Change line 58 to
    '': 'h:mm{ - h:mm}' // default

    Change line 2931 to
    .text(formatDate(event.start, opt('timeFormat')) + formatDate(event.end, opt('timeFormat')) + ' - ' + event.title);

    After you’ve made these modifications you will need to minify and replace the fullcalendar.min.js file

    You can see it in action at: http://krieger.jhu.edu/economics/about/calendar/

    This is what I have done to get timthumb to work with multisite. You need to add this code to your theme’s functions.php file

    <?php function get_image_path($src) {
    global $blog_id;
    if(isset($blog_id) && $blog_id > 0) {
    $imageParts = explode('/files/' , $src);
    if(isset($imageParts[1])) {
    $src = '/blogs.dir/' . $blog_id . '/files/' . $imageParts[1];
    }
    }
    return $src;
    }
    ?>

    And then where the timthumb script is used in the theme, you need to modify to this:

    <img src="<?php bloginfo('template_url'); ?>/includes/timthumb.php?q=100&w=180&h=200&zc=1&a=t&src=<?php echo get_image_path(get_post_meta($post->ID, 'postImage', true)); ?>" alt="" />

    where postImage is the name of the meta field the holds the image URL.

Viewing 2 replies - 1 through 2 (of 2 total)