Forum Replies Created

Viewing 15 replies - 1 through 15 (of 79 total)
  • Thread Starter iluvpinkerton

    (@iluvpinkerton)

    Nevermind – I realized this was not an issue with the plugin. It was because I was using the same “dummy” blank image src for multiple hidden images.

    I’m having the same issue but even when I change the email address that the form is sending to. I can’t figure out how to do Step 2 through Godaddy!

    Nm I figured it out. Thanks so much Satheesh!

    Any update on this? I tried the solution from @satheeshgecp but no luck. It’s a little confusing so I’m not sure if I did it right though…

    This is happening for me as well! Please help!

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    Update: I narrowed the issue down to a plugin I’m using and also custom permalink structure. I’m using the “Month Name Permalink” Plugin (which has not been tested on the most recent version of wordpress)

    Then I’m using this permalink structure:

    /blog/posts/%year%/%monthname%/%postname%/
    The plugin changes the allows the /%monthname%/ to work. I need to use this setup so that when I launch the website, the urls will be the same as they were before (moving from a non-wordpress site)

    This is the code that the plugin is using:

    <?php
    /**
    * Plugin Name: Month Name Permalink
    * Description: Enables use of <code>%monthcode%</code> or <code>%monthname%</code> tags in permalinks to generate a structure like <code>/2014/nov/23/post-name</code> or <code>/2014/november/23/post-name</code>
    * Author: Anand Shah
    * License: GPLv2
    */
    
    /**
     * Based on the original code by Roger Chen (https://gist.github.com/rogerhub/8306875)
     * Plugin enables use of monthname (january, june) and monthcode (jan, jun) in permalinks
     * Supports permalinks in the form of /2014/nov/23/post-name or /2014/november/23/post-name
    */
    
    class Month_Name_Permalink {
    
    /**
     * Month Names
     */
    public static $monthnames = array(
        'january',
        'february',
        'march',
        'april',
        'may',
        'june',
        'july',
        'august',
        'september',
        'october',
        'november',
        'december',
    );
    
    /**
     * Month Codes
     */
    public static $monthcodes = array(
        'jan',
        'feb',
        'mar',
        'apr',
        'may',
        'jun',
        'jul',
        'aug',
        'sep',
        'oct',
        'nov',
        'dec',
    );
    
    /**
     * Registers all required hooks
     */
    public static function init() {
        add_rewrite_tag( '%monthname%', '(' . implode('|', self::$monthnames) . ')' );
        add_rewrite_tag( '%monthcode%', '(' . implode('|', self::$monthcodes) . ')' );
        add_rewrite_rule(
            '^([0-9]{4})/(' . implode( '|', self::$monthnames ) . ')/([0-9]{1,2})/(.*)?',
            'index.php?name=$matches[4]',
            'top'
        );
        add_rewrite_rule(
            '^([0-9]{4})/(' . implode( '|', self::$monthcodes ) . ')/([0-9]{1,2})/(.*)?',
            'index.php?name=$matches[4]',
            'top'
        );       
    
    }
    /**
     * Filters the month name and month code tags
     */
    public static function filter_post_link( $permalink, $post ) {
        if ( false === strpos( $permalink, '%monthname%' ) && false === strpos( $permalink, '%monthcode%' ) ) {
            return $permalink;
        }
    
        try {
            $monthindex = intval(get_post_time( 'n', "GMT" == false, $post->ID ));
    
            $monthname = self::$monthnames[$monthindex - 1];
            $monthcode = self::$monthcodes[$monthindex - 1];
    
            $permalink = str_replace( '%monthname%', $monthname, $permalink );
            $permalink = str_replace( '%monthcode%', $monthcode, $permalink );
    
            return $permalink;
        } catch (Exception $e) {
            return $permalink;
        }
    }
    
    }
    
    add_action( 'init', array( 'Month_Name_Permalink', 'init' ) );
    add_filter( 'post_link', array( 'Month_Name_Permalink', 'filter_post_link' ), 10, 2 );
    iluvpinkerton

    (@iluvpinkerton)

    Same here

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    I reverted back to the Twenty Eleven theme and it is still not showing up. Can you help me with this problem since it is obviously not theme dependent? I don’t really know what else could be causing the issue. Thanks!

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    Oh, I think the theme is also using a custom file for comment and that code is:

    <?php
    /**
     * Comments Function
     * @package by Theme Record
     * @auther: MattMao
    */
    
    #
    #Theme Comments List
    #
    if ( !function_exists( 'theme_comments_list' ) )
    {
    	function theme_comments_list($comment, $args, $depth)
    	{
    		$GLOBALS['comment'] = $comment;
    		switch ( $comment->comment_type ) :
    		case 'pingback' :
    		case 'trackback' :
    	?>
    	<li class="pingback">
    		<?php _e( 'Pingback:', 'TR' ); ?> <?php comment_author_link(); ?><?php edit_comment_link( __( 'Edit', 'TR' ), '<span class="edit-link">', '</span>' ); ?>
    	<?php break; default : ?>
    
    	<li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
    	<article id="comment-<?php comment_ID(); ?>" class="clearfix comment-wrap">
    
    		<div class="comment-author vcard">
    		<?php
    			$avatar_size = 40;
    			if ( '0' != $comment->comment_parent ) { $avatar_size = 35; }
    			echo get_avatar( $comment, $avatar_size );
    		?>
    		</div><!-- .comment-author .vcard -->
    
    		<div class="comment-entry">
    			<div class="comment-meta meta">
    			<?php printf(__('<cite class="fn">%s</cite>'), get_comment_author_link()); ?>
    			<?php printf(__('<span class="time">%1$s at %2$s</span>', 'TR'), get_comment_date(),  get_comment_time()) ?> &middot;
    			<?php comment_reply_link( array_merge( $args, array( 'reply_text' => '<span class="reply">'.__('Reply', 'TR').'</span>', 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    			<?php edit_comment_link( __('Edit', 'TR'), '&middot; <span class="edit-link">', '</span>' ); ?>
    			</div>
    			<div class="comment-content">
    				<?php if ( $comment->comment_approved == '0' ) : ?>
    				<div class="comment-awaiting-moderation"><?php _e( 'Your comment is awaiting moderation.', 'TR' ); ?></div>
    				<?php endif; ?>
    				<div class="comment-text post-format"><?php comment_text(); ?></div>
    			</div>
    		</div><!-- .comment-entry -->
    
    	</article><!-- #comment-## -->
    	<?php break; endswitch; ?>
    	<?php
    	}
    }
    
    #
    #Theme Comment Form
    #
    if ( !function_exists( 'theme_comment_form' ) )
    {
    	function theme_comment_form()
    	{
    		$req = get_option( 'require_name_email' );
    
    		$fields =  array(
    			'author' => '<div class="comment-form-file" ><input id="author" name="author" type="text" placeholder="'.__('Name', 'TR').( $req ? ' *' : '' ).'" size="30" /></div>',
    			'email'  => '<div class="comment-form-file" ><input id="email" name="email" type="text" placeholder="'.__('Email', 'TR').( $req ? ' *' : '' ).'" size="30" /></div>',
    			'url'    => '<div class="comment-form-file" ><input id="url" name="url" type="text" placeholder="'.__('Website', 'TR').'" size="30" /></div>'
    		);
    
    		$args = array(
    			'title_reply' =>  __('Leave a Reply', 'TR'),
    			'cancel_reply_link' =>  __('Cancel reply', 'TR'),
    			'comment_notes_before' => '',
    			'fields' => apply_filters( 'comment_form_default_fields', $fields ),
    			'comment_field' => '<textarea id="comment" class="comment-form-content" name="comment" rows="5"></textarea>',
    			'comment_notes_after' => '',
    			'label_submit' => __('Submit Comment', 'TR')
    		);
    
    		comment_form($args);
    	}
    }
    ?>
    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    Also – I’m trying to get the twitter comments to show up separately from the normal comments. I’ve tried implementing code to separate by “comment type” but nothing seems to be working. Do you know of a good resource for this? Thanks!

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    Yes, it’s Coraline

    I don’t think I should upload the theme anywhere since it’s not free. The comment.php code looks like this:

    <?php
    /**
     * Comments
     * @package by Theme Record
     * @auther: MattMao
     */
    ?>
    
    <?php if ( post_password_required() ) : ?>
    <div id="comments">
    	<p class="nopassword"><?php _e( 'This post is password protected. Enter the password to view any comments.', 'TR'); ?></p>
    </div><!-- #comments -->
    <?php return; endif; ?>
    
    <?php if ( have_comments() ) : ?>
    <div id="comments">
    
    	<h2 id="comments-title"><?php echo get_comments_number(); ?>  <?php _e('Comments','TR');  ?></h2>
    
    	<ol class="commentlist">
    		<?php wp_list_comments( array( 'callback' => 'theme_comments_list') ); ?>
    	</ol>
    
    	<?php
    	if (get_comment_pages_count() > 1 && get_option('page_comments'))
    	{
    		$comment_pages = paginate_comments_links('echo=0');
    		if ($comment_pages)
    		{
    			echo '<div  class="comment-pagination clearfix">'.$comment_pages.'</div>';
    		}
    	}
    	?>
    <?php endif; ?>
    
    <!-- show the tweetbacks -->	
    
    	<?php if ( ! empty($comments_by_type['tweetback']) ) : ?>
    		<a class="anchorFix" name="comments"></a>
    		 <h3 id="pings">Tweetbacks</h3>
    		  <ul class="commentlist" id="singlecomments">
    		  <?php wp_list_comments('type=tweetback'); ?>
    		  </ul>
    		<?php endif; ?>
    
    </div><!-- #comments -->
    
    <?php theme_comment_form(); ?>
    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    Also – for anyone who has similar problems – it turns out my permission settings for the wp-content directory were causing issues and making those files inaccessible which was making my site blank.

    I had the permissions set to 666 but once I changed them to 755 it worked!!

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    Ok – I realized that when the manual update I was uploading the 3.1.1 version of the files. So I started over with the newest WordPress 3.1.2 and now it’s all working again.

    Thanks for trying to help.

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    I’m wondering if I just overwrite the themes folder and re-upload the theme if it will work? I’m kind of nervous to do that – but if it gets the site back up then maybe it’s worth a try.

    Thread Starter iluvpinkerton

    (@iluvpinkerton)

    Yes, I have contacted them via email but I’m hoping to figure it out asap.

    In your experience have you seen something like this before?

    Fortunately, I can still access all of the pages/posts in the admin. I just can’t see any plugins or themes…

    I see these errors on the themes page:

    Warning: array_keys() [function.array-keys]: The first argument should be an array in /home/sillsspo/public_html/wp-includes/theme.php on line 519

    Warning: uksort() [function.uksort]: The argument should be an array in /home/sillsspo/public_html/wp-admin/includes/class-wp-themes-list-table.php on line 49

    Warning: array_slice() expects parameter 1 to be array, boolean given in /home/sillsspo/public_html/wp-admin/includes/class-wp-themes-list-table.php on line 56

Viewing 15 replies - 1 through 15 (of 79 total)