Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Just downloaded the plugin and when uploading videos it was confirming it was uploading and not adding to database. Had a little debug and it appears on line 832 in fixedly.php the insert statement is missing an order_id insert. Fixed by changing to:

    $wpdb->insert(FIXEDLY_MEDIA_DB_TABLE,
    array(“title” => $title_santzd,
    “link” => $link_santzd,
    “description” => $description_santzd,
    “screenshot” => $screenshot_santzd,
    “type” => $type_santzd,
    “status” => “visible”,
    “timestamp” => current_time(“mysql”),
    “gallery_id” => $gallery_id_santzd,
    “order_id” => 0));
    }

    Just thought I would let you know as the order column did not have a default value so the data would not insert.

    This would not work for me for single posts using the default single.php template.

    if ($post->page_template) {
            $post->page_template == 'default' ? $post->page_template = 'page.php' : '';
            $templatefile = locate_template(array($post->page_template));
        }
        else if (get_post_meta($post-$ID, 'custom_post_template', true)){
            $post->is_post_template == 'default' ? $post->is_post_template = 'single.php' : '';
            $templatefile = locate_template(get_post_meta( $post->ID, 'custom_post_template', true ));
        }
        else {
            $post->is_post_template == 'default' ? $post->is_post_template = 'single.php' : '';
            $templatefile = TEMPLATEPATH . "/single.php";
    
        }

    i.e. I just added another else statement without a conditional because anything that isn’t a page or a post using a custom template is a post using the default single.php template.

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