Forum Replies Created

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter markcool

    (@markcool)

    This is a corrected post, with the code entered the right way.

    Thread Starter markcool

    (@markcool)

    Thank you.

    Thread Starter markcool

    (@markcool)

    Thanks.

    Yes, I copied the html from a newly downloaded version of the theme.

    I just did it again and it worked.

    Thank you so much for responding. I have felt all alone here in cyber space with this. I think your response was what I needed to push me over the edge and get it done.

    My site was down for 4 days!

    That’s an excellent way of stating it, “as if I were a 3rd grader”, that’s how I feel too. Same error and situation for me.

    I downloaded the new theme copy, copied the html from the functions.php file, opened my old one in ftp, and pasted the html on there. I was prompted to update at server, and answered yes.

    Still not fixed.

    Did I do something wrong, or do I have to go further, like replace the entire theme?

    Obviously I want to avoid this, as I’ll have to redo all of my plug-ins and edits I’ve done to the theme.

    Thanks.

    Forum: Fixing WordPress
    In reply to: T_ENDIF help
    Thread Starter markcool

    (@markcool)

    Ok,
    I have ftp’d into the site and replaced the code on the page that was getting the3 parse error with fresh code from a newly downloaded version of the theme.

    I told ftp to upload the repaired page to the server, and I’m still getting the parse error message, anyone see a problem with this code?

    <?php
    /**
     * Common functions and hooks handler
     *
     * @package itx_themes
     * @version 2.0
     */
    
    define('ADMIN_PATH', TEMPLATEPATH.'/admin/');
    define('CSS_PATH', TEMPLATEPATH.'/css/');
    
    if ( is_admin() ) require_once ADMIN_PATH.'admin.php';
    require_once 'bg.php';
    require_once 'front.php';
    require_once 'header.php';
    require_once 'option.php';
    require_once 'layout.php';
    require_once 'navigation.php';
    require_once 'single.php';
    require_once 'widget.php';
    
    if ( function_exists( 'add_theme_support' ) ){
    	add_theme_support('automatic-feed-links');
        add_theme_support( 'post-thumbnails' );
        set_post_thumbnail_size( itx_get_option('front','thumbx'), itx_get_option('front','thumby'), true );
        add_image_size('featured', itx_get_option('front','featuredx'), itx_get_option('front','featuredy'),true);
    }
    
    add_filter('query_vars', 'itx_add_new_var');
    function itx_add_new_var($vars) {
        $vars[] = 'itx';
        return $vars;
    }
    
    add_action('template_redirect', 'itx_custom_request');
    function itx_custom_request(){
        $vars = get_query_var('itx');
        if ($vars == 'css'){
            include_once ('style.php');
            exit;
        }elseif ($vars == 'js'){
            include_once ('js.php');
            exit;
        }
    }
    
    function itx_preview_vars($var){
    	if (get_query_var('preview')) return add_query_arg('itx',$var);
    	else return '/?itx='.$var;
    }
    
    function itx_featured_length() {
    	return itx_get_option('front','featuredlim');
    }
    
    function itx_excerpt_length() {
    	return itx_get_option('front','excerptlim');
    }
    
    if (!function_exists('wp_pagenavi')){
        require_once 'wp-pagenavi.php';
    }
    
    function itx_ping($comment, $args, $depth) {
        $GLOBALS['comment'] = $comment; ?>
        <li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
        <div id="comment-<?php comment_ID(); ?>">
    	<div class="comment-author vcard">
    	    <cite><?php comment_author_link() ?></cite>
            </div>
            <?php if ($comment->comment_approved == '0') : ?>
            <em><?php _e('Your comment is awaiting moderation.') ?></em>
            <?php endif; ?>
    
            <div class="comment-meta commentmetadata"><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 edit_comment_link(__('(Edit)'),'  ','') ?></div>
            <?php comment_text() ?>
        </div>
    <?php
     }
    
    function itx_footer(){
        $da=itx_setting('vars');
        if ($ech=$da['data']) $ech = $ech.'<!-- '.get_stylesheet().' '.THEME_VERSION." -->\n";
        else $ech = '<div id="footerright"><strong><a href="'.THEME_URI.'">'.THEME_NICENAME.' Theme</a></strong> forged by <a href="https://itx.web.id/">itx</a></div></div></div></div><!-- '.get_stylesheet().' '.THEME_VERSION." noopt -->\n";
    	echo apply_filters('itx_footer', $ech);
    }
    add_action('wp_footer','itx_footer',1);
    
    function itx_favicon(){
        $fav=itx_get_option('misc','favicon');
        if($fav) echo '<link rel="shortcut icon" href="'.$fav.'" />';
    }
    add_action('wp_head','itx_favicon');
    
    /*
     * Generate random default style
     */
    $def_style=get_option(get_stylesheet().'_default_style');
    if (empty($def_style)){
    	$styles=array_keys(itx_setting('style'));
    	$style=array_slice($styles,rand(0,count($styles)-1),1);
    	update_option(get_stylesheet().'_default_style', $style[0]);
    }
    ?>

    Forum: Fixing WordPress
    In reply to: T_ENDIF help
    Thread Starter markcool

    (@markcool)

    To be clear,

    My functions.php file is messed up.

    Somehow I am stuck in the edit window for the common.php file.

    Anything I click on the dashboard takes me to a blank page with the T_ENDIF message for functions.php.

    So all i can do on my WP dashboard right now is either edit common.php, which I don’t need to do, or go to the error message.

    I have the original version of the functions.php code in my posession, but need help getting to the edit window to insert it.

    Thanks in advance for any help.

    Mark

    Thread Starter markcool

    (@markcool)

    Thank you, good.

    Now just need to spend more time with Nextgen to tweak it.

    Forum: Fixing WordPress
    In reply to: T_ENDIF help
    Thread Starter markcool

    (@markcool)

    Actually, now I can’t get to the edit window for this file. I can only go from the blank page with error message to another file edit page, common.php.

    I need help figuring out how to just get to the function.php edit window to try to replace the code.

    Thanks!

Viewing 8 replies - 16 through 23 (of 23 total)