• any file larger then width 500 is being resized to a width of 500..i have added $GLOBALS[‘content_width’] = 800; to my functions.php within my theme folder. I am still unable to resolve my upload issue…any suggestions.

    <?php
    $GLOBALS[‘content_width’] = 800;
    if ( function_exists(‘register_sidebar’) )
    register_sidebar(array(‘name’=>’sidebar1’,
    ));
    register_sidebar(array(‘name’=>’sidebar2’,
    ));

    class Elixir
    {
    function timesince(){

    global $post;

    $older_date = abs(strtotime($post->post_date_gmt . ” GMT”));
    $newer_date = time();

    $chunks = array(
    array(60 * 60 * 24 * 365 , ‘year’),
    array(60 * 60 * 24 * 30 , ‘month’),
    array(60 * 60 * 24 * 7, ‘week’),
    array(60 * 60 * 24 , ‘day’),
    array(60 * 60 , ‘hour’),
    array(60 , ‘minute’),
    );

    $newer_date = ($newer_date == false) ? (time()+(60*60*get_settings(“gmt_offset”))) : $newer_date;

    $since = $newer_date – $older_date;

    for ($i = 0, $j = count($chunks); $i < $j; $i++) {
    $seconds = $chunks[$i][0];
    $name = $chunks[$i][1];

    if (($count = floor($since / $seconds)) != 0) {
    break;
    }
    }

    $output = ($count == 1) ? ‘1 ‘.$name : “$count {$name}s”;

    if ($i + 1 < $j) {
    $seconds2 = $chunks[$i + 1][0];
    $name2 = $chunks[$i + 1][1];

    if (($count2 = floor(($since – ($seconds * $count)) / $seconds2)) != 0) {
    $output .= ($count2 == 1) ? ‘, 1 ‘.$name2 : “, $count2 {$name2}s”;
    }
    }

    echo $output;
    }
    }

    $elixir = new Elixir();
    ?>

  • The topic ‘Max Photosize WordPress 2.8’ is closed to new replies.