Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Oh sorry, the characters are different in the email. Gosh…

    It works now!

    Thanks a lot. Will rate the plugin! and click on the button that tells others it works!!!

    I don’t see that on my theme. This is what’s in my functions.php:

    <?php
    
    $includes_path = TEMPLATEPATH . '/includes/';
    
    // Shordcodes
    require_once (TEMPLATEPATH.'/functions/shortcodes/shortcodes.php');
    
    // Use shortcodes in text widgets.
    add_filter('widget_text', 'do_shortcode');
    
    // LightBox
    require('lightbox/wp-lightboxJS.php');
    
    wp_enqueue_script('theme_functions', get_bloginfo('template_url').'/js/functions.js', array('jquery'));
    
    function show_posts_nav() {
        global $wp_query;
        return ($wp_query->max_num_pages > 1);
    }
    require_once(TEMPLATEPATH . '/theme-options.php');
    
    // Register Sidebars
    if ( function_exists('register_sidebar') )
    {
    register_sidebar(array('name' => 'Top Sidebar','before_widget' => '<li>','after_widget' => '</li>','before_title' => '<h2>','after_title' => '</h2>'));
    register_sidebar(array('name' => 'Left Sidebar','before_widget' => '<li>','after_widget' => '</li>','before_title' => '<h2>','after_title' => '</h2>'));
    register_sidebar(array('name' => 'Right Sidebar','before_widget' => '','after_widget' => '','before_title' => '<h2>','after_title' => '</h2>'));
    }
    
    # Displays post image attachment (sizes: thumbnail, medium, full)
    function dp_attachment_image($postid=0, $size='thumbnail', $attributes='') {
    	if ($postid<1) $postid = get_the_ID();
    	if ($images = get_children(array(
    		'post_parent' => $postid,
    		'post_type' => 'attachment',
    		'numberposts' => 1,
    		'post_mime_type' => 'image',)))
    		foreach($images as $image) {
    			$attachment=wp_get_attachment_image_src($image->ID, $size);
    			?><img src="<?php echo $attachment[0]; ?>" <?php echo $attributes; ?> /><?php
    		}
    }
    
    // Shorten post title
    function short_title($after = '', $length) {
    	$mytitle = explode(' ', get_the_title(), $length);
    	if (count($mytitle)>=$length) {
    		array_pop($mytitle);
    		$mytitle = implode(" ",$mytitle). $after;
    	} else {
    		$mytitle = implode(" ",$mytitle);
    	}
    	return $mytitle;
    }
    
    // navigation menu
    if (function_exists('register_nav_menu')) {
    register_nav_menu('primary', __('Menu'));
    }
    
    // custom background
    add_custom_background(); 
    
    // Load Javascript in wp_head
    require_once ($includes_path . 'theme-js.php');
    
    // Shorten Excerpt text for use in theme
    function pov_excerpt($text, $chars = 120) {
    	$text = $text." ";
    	$text = substr($text,0,$chars);
    	$text = substr($text,0,strrpos($text,' '));
    	$text = $text."...";
    	return $text;
    }
    
    function trim_excerpt($text) {
      return rtrim($text,'[...]');
    }
    add_filter('get_the_excerpt', 'trim_excerpt');
    
    function widget_mytheme_search() {
    ?>
    
    <li><form class="searchform" method="get" action="<?php bloginfo('home'); ?>/"> <input type="text" value="Search: type and hit enter" onfocus="if (this.value == 'Search: type and hit enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search: type and hit enter';}" size="18" maxlength="50" name="s" class="s" /> </form> </li>
    <?php
    }
    if ( function_exists('register_sidebar_widget') )
        register_sidebar_widget(__('Search'), 'widget_mytheme_search');
    
    function dojo_comments($comment, $args, $depth) {
    	$GLOBALS['comment'] = $comment; ?>
    	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
    		<div id="comment-<?php comment_ID(); ?>">
    			<p class="title comment-author vcard">
    				<?php echo get_avatar($comment,$size='48' ); ?>
    
    			</p>
    			<?php if ($comment->comment_approved == '0') : // If comment is not approved ?>
    				<p class="alert"><em><?php _e('Your comment is awaiting moderation.') ?></em></p>
    			<?php endif; ?>
    			<div class="content">
    				<?php comment_text() ?>
    			</div>
    			<p class="metadata comment-meta commentmetadata"><small>
    				<?php printf(__('<span class="says">by</span> <cite class="fn">%s</cite>'), get_comment_author_link()) ?> on 
    
    				<a href="<?php echo htmlspecialchars( get_comment_link( $comment->comment_ID ) ) ?>"><?php printf(__('%1$s at %2$s'), get_comment_date(),  get_comment_time()) ?></a>.
    				<?php comment_reply_link(array_merge( $args, array('reply_text' => '(Reply)', 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>
    				<?php edit_comment_link(__('(Edit)'),'  ','') ?>
    			</small></p>
    		</div>
    	<?php
    }
    ?>

    Thanks RPG84,

    I pretty new to WordPress. Can you tell me where exactly shall I add it? I tried doing that earlier and I got some errors. The site became inaccessible so I uploaded a new functions.php file through ftp.

    Hi there,

    Is it ok to post my problem here with the plugin? I am having this error on edit.php

    “Fatal error: Call to undefined function has_post_thumbnail() in /home/i2e/public_html/mydomain.com/wp-content/plugins/easy-featured-image/easy_featured_image.php on line 21”

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