HELP with Thumbnail on wordpress

lumpia

Registered Member
Joined
Jan 21, 2009
Messages
98
Reaction score
6
Been out of the IM scene for awhile. I am trying to get video blog but ran into thumbnail problem.
I am a GREENHORN as can be.

1. I installed WP Tube 3 (i tried wp tube 4 too) but I like 3 better.
2. I use WP Robot 3
3. I installed a whole bunch of plug ins. (Video Thumbnail, Magic Thumbnail, Smart Youtube Thumbnail, etc)

The problem is that no thumbnail is displayed.
everything is empty.

I need help guys. Hopefully a little step by step for the noob.

Thanks in advance.
 
Lumpia,

You might try un-installing some of those thumbnail plugins and trying just one. Un-install them all first then re-install one of your choice. Sometimes when you have more than one plugin to do the same job (or even unrelated jobs), they conflict with one another and don't work as they should.

Sometimes plugins just don't work for whatever reason and un-installing then re-installing them fixes the issue. I know that sounds ridiculous but it works.

If that doesn't work, perhaps you can find some ideas in this thread,

http://wordpress.org/support/topic/post-thumbnails-not-showing

Hope that solves your issue,

Shawn
 
I agree with you mate! @Op, This will works for sure. I guess, you don't need step by step guideline for this kind of process...


Lumpia,

You might try un-installing some of those thumbnail plugins and trying just one. Un-install them all first then re-install one of your choice. Sometimes when you have more than one plugin to do the same job (or even unrelated jobs), they conflict with one another and don?t work as they should.

Sometimes plugins just don?t work for whatever reason and un-installing then re-installing them fixes the issue. I know that sounds ridiculous but it works.

If that doesn?t work, perhaps you can find some ideas in this thread,

http://wordpress.org/support/topic/post-thumbnails-not-showing

Hope that solves your issue,

Shawn
 
I un-installed all plugins and just used Video Thumbnail with WP robot 3.65 and used WP TUBE4 as template. and still no thumbnail on main page.
WP TUBE4 function.php has add thumbnail post script already. someone can help from this forum. Lots of smart people here.

<?php

// Theme Constants
define("THEME_PREFIX", "wptube_");

// Theme Location
define('THEME', get_bloginfo('template_url'), true);

add_theme_support( 'post-thumbnails' );

//set_post_thumbnail_size( 100, 100, true ); // Normal post thumbnails
//add_image_size( 'small-post-thumbnail', 135, 9999 ); // EVENT posts thumbnail size
//add_image_size( 'medium-post-thumbnail', 274, 9999 ); // BLOG posts thumbnail size
//add_image_size( 'big-post-thumbnail', 394, 9999 ); // FEATURES posts thumbnail size

// Add RSS Feed Links
add_theme_support( 'automatic-feed-links' );

// Custom Menus
register_nav_menu('main_menu', __('Main Menu'));

// unregister all default WP Widgets
function unregister_default_wp_widgets() {
unregister_widget('WP_Widget_Calendar');
unregister_widget('WP_Widget_Meta');
unregister_widget('WP_Widget_Search');
unregister_widget('WP_Widget_Tag_Cloud');
unregister_widget('WP_Widget_RSS');
unregister_widget('WP_Widget_Akismet');
}

add_action('widgets_init', 'unregister_default_wp_widgets', 1);

// Feed Refresh Rate
add_filter( 'wp_feed_cache_transient_lifetime', create_function('$a', 'return 1800;') );

// Include Custom Theme Widgets
include("widgets/recent-news.php");

// The Admin Page
add_action('admin_menu', "wptube_admin_init");

// Register Admin
function wptube_admin_init()
{
$page = add_theme_page( "Tube Options", "Theme Options", 8, 'wptube_admin_menu', 'wptube_admin');

// Custom Image Uploaders
dc_add_img_upload_filter(THEME_PREFIX.'favicon', 'dc_handle_favicon_upload');
dc_add_img_upload_filter(THEME_PREFIX.'logo', 'dc_handle_logo_upload');
dc_add_img_upload_filter(THEME_PREFIX.'headerad_img', 'dc_handle_headerad_img_upload');
dc_add_img_upload_filter(THEME_PREFIX.'footerad_img', 'dc_handle_footerad_img_upload');
}

// Image Upload Helper Function
function dc_add_img_upload_filter($option_name, $handler) {
add_filter('pre_update_option_'.$option_name, $handler, 10, 2);
}

// Image Upload Handler Functions
function dc_handle_favicon_upload($new_value, $old_value) {
return dc_handle_img_upload(
$new_value,
$old_value,
THEME_PREFIX.'favicon_upload',
THEME_PREFIX.'delete_favicon');
}
function dc_handle_logo_upload($new_value, $old_value) {
return dc_handle_img_upload(
$new_value,
$old_value,
THEME_PREFIX.'logo_upload',
THEME_PREFIX.'delete_logo');
}
function dc_handle_headerad_img_upload($new_value, $old_value) {
return dc_handle_img_upload(
$new_value,
$old_value,
THEME_PREFIX.'headerad_img_upload',
THEME_PREFIX.'delete_headerad_img');
}
function dc_handle_footerad_img_upload($new_value, $old_value) {
return dc_handle_img_upload(
$new_value,
$old_value,
THEME_PREFIX.'footerad_img_upload',
THEME_PREFIX.'delete_footerad_img');
}


// Generic Image Upload Handler
function dc_handle_img_upload($new_value, $old_value, $file_index, $delete_field) {
if ( isset($_POST[$delete_field]) && $_POST[$delete_field]=='true' )
return '';

if ( empty($_FILES) || !isset($_FILES[$file_index]) || 0==$_FILES[$file_index]['size'] )
return $old_value;

$overrides = array('test_form' => false);
$file = wp_handle_upload($_FILES[$file_index], $overrides);

if ( isset($file['error']) )
wp_die( $file['error'] );

$url = $file['url'];
$type = $file['type'];
$file = $file['file'];
$filename = basename($file);

// Construct The Object Array
$object = array(
'post_title' => $filename,
'post_content' => $url,
'post_mime_type' => $type,
'guid' => $url
);

// Save The Data
$id = wp_insert_attachment($object, $file);

// Add The Meta
wp_update_attachment_metadata( $id, wp_generate_attachment_metadata( $id, $file ) );

do_action('wp_create_file_in_uploads', $file, $id); // For replication
return esc_url($url);
}

add_action( 'parse_request', 'my_custom_css' );
function my_custom_css($wp) {
if (!empty( $_GET['custom-content'] ) && $_GET['custom-content'] == 'css' ) {
header( 'Content-Type: text/css' );
require dirname( __FILE__ ) . '/style-custom.php';
exit;
}
}


function wptube_admin() {

$option_fields = array();

if ( $_GET['updated'] ) echo '<div id="message" class="updated fade"><p>Tube Theme Options Saved.</p></div>';
echo '<link rel="stylesheet" href="'.get_bloginfo('template_url').'/functions.css" type="text/css" media="all" />';

// Accordion Script
echo '<link rel="stylesheet" href="'.get_bloginfo('template_url').'/scripts/accordion/style.css" type="text/css" media="all" />';
echo '<script src="'.get_bloginfo('template_url').'/scripts/accordion/jquery.ui.js" type="text/javascript"></script>';
echo '<script src="'.get_bloginfo('template_url').'/scripts/accordion/jquery.accordion.js" type="text/javascript"></script>';

?>

<div class="wrap">
<div id="icon-options-general" class="icon32"><br/></div>

<h2>Tube Theme Options</h2>
<div class="metabox-holder">
<form method="post" action="options.php" enctype="multipart/form-data">
<?php wp_nonce_field('update-options'); ?>

<div id="theme-options">
<div id="accordion" class="postbox-container">
<?php
include("options/custom-menus.php");
include("options/generals.php");
include("options/header-customization.php");
include("options/footer-customization.php");
include("options/analytics-code.php");
?>
</div> <!-- postbox-container -->
</div> <!-- theme-options -->

<input type="hidden" name="action" value="update" />
<input type="hidden" name="page_options" value="<?php echo implode(",", $option_fields); ?>" />
</form>

<script type="text/javascript" language="javascript">SI.Files.stylizeAll();</script>
</div> <!-- metabox-holder -->
</div> <!-- wrap -->

<?php
}


if ( function_exists('register_sidebar') ) {
register_sidebar(array(
'name' => 'Home Sidebar',
'description' => __('Home Sidebar Section'),
'before_widget' => '<div id="%1$s" class="%2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
register_sidebar(array(
'name' => 'Single Sidebar',
'description' => __('Sidebar Section'),
'before_widget' => '<div id="%1$s" class="%2$s">',
'after_widget' => '</div>',
'before_title' => '<h2>',
'after_title' => '</h2>',
));
register_sidebar(array(
'name' => 'Footer#1',
'description' => __('Footer#1 Section'),
'before_widget' => '<div id="%1$s" class="aboutus %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Footer#2',
'description' => __('Footer#1 Section'),
'before_widget' => '<div id="%1$s" class="subscribe %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Footer#3',
'description' => __('Footer#1 Section'),
'before_widget' => '<div id="%1$s" class="blogroll_wg %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));
register_sidebar(array(
'name' => 'Footer#4',
'description' => __('Footer#1 Section'),
'before_widget' => '<div id="%1$s" class="follows %2$s">',
'after_widget' => '</div>',
'before_title' => '<h3>',
'after_title' => '</h3>',
));


}

function get_page_id($page_name){
global $wpdb;
$page_name = $wpdb->get_var("SELECT ID FROM $wpdb->posts WHERE post_name = '".$page_name."' AND post_status = 'publish' AND post_type = 'page'");
return $page_name;
}

function tube_get_limited_string($output, $max_char)
{
$output = str_replace(']]>', ']]>', $output);
$output = strip_tags($output);

if ((strlen($output)>$max_char) && ($espacio = strpos($output, " ", $max_char )))
{
$output = substr($output, 0, $espacio).'...';
return $output;
}
else
{
return $output;
}
}

function tube_getcustomfield($filedname, $page_current_id = NULL)
{
if($page_current_id==NULL)
$page_current_id = get_page_id();

$value = get_post_meta($page_current_id, $filedname, true);

return $value;
}

function mytheme_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case '' :
?>
<li id="li-comment-<?php comment_ID(); ?>">

<div <?php comment_class(); ?> id="comment-<?php comment_ID(); ?>">

<div class="reply_section"><!--reply_section-->
<div class="reply_lft"><!--reply_lft-->
<?php echo get_avatar( $comment, 50 ); ?>
</div><!--/reply_lft-->
<div class="reply_rgt"><!--reply_rgt-->
<div class="top_reply"><!--top_reply-->
<p>By: <?php echo get_comment_author_link() ?></p>
</div><!--/top_reply-->
<div class="reply_cont">
<?php if ( $comment->comment_approved == '0' ) : ?>
<em style="clear:both; display:block"><?php _e( 'Your comment is awaiting moderation.', 'twentyten' ); ?></em>
<br />
<?php endif; ?>
<?php comment_text(); ?>
</div>
</div><!--/reply_rgt-->
</div><!--/reply_section-->

</div><!-- #comment-## -->

<?php
break;
case 'pingback' :
case 'trackback' :
?>
<li class="post pingback">
<p><?php _e( 'Pingback:', 'twentyten' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __('(Edit)', 'twentyten'), ' ' ); ?></p>
<?php
break;
endswitch;
}

?>
 
Back
Top