Forum Replies Created

Viewing 9 replies - 16 through 24 (of 24 total)
  • Thread Starter wingzfly

    (@wingzfly)

    Was able to get the site restored to the way it was before I tried manually updating it again, but the original problem persists.

    @abuzaforbg – No, I’m not using Cloudflare on that site, but I’d love to hear the fix!

    Thread Starter wingzfly

    (@wingzfly)

    I think I ended up deleting something I shouldn’t have (though I was being careful…) and the site wouldn’t work anymore. I did a full backup of the site before I started trying to figure this all out so I’m reinstalling everything from that.

    Thread Starter wingzfly

    (@wingzfly)

    I found the link to the files (I think they were on the Trac website) on a post I ran across earlier today trying to research the problem. It had all of the official TinyMCE files in various zips (for Joomla, for WP, etc.), including one for WordPress and instructions on how to install them. But I still had the same issue after installing the new TinyMCE files so it didn’t help.

    Thread Starter wingzfly

    (@wingzfly)

    I downloaded the zip of all the latest TINYMCE WordPress files and then placed them in the wp-includes/js/tinymce directory.

    I’ll try that now, MacManX!

    Thread Starter wingzfly

    (@wingzfly)

    @macmax – Just tried that and it didn’t work, though it was a good suggestion.

    Thread Starter wingzfly

    (@wingzfly)

    @wpyogi I just had a friend help me out. Thank you so much though!

    Thread Starter wingzfly

    (@wingzfly)

    Oh okay, sorry about that! Thanks for the reply!

    Thread Starter wingzfly

    (@wingzfly)

    It’s really good to know how to turn off each condition. I’m asssuming the same would work for my other website (I want to do the same and get rid of the featured images there) but the theme is by another author and, because it’s way more complex, I’m having a much harder time narrowing down the chunk of code that controls the featured image on these. Can you let me know what I have to edit? Here’s what a regular post on there looks like, so you can see the order: https://www.wfrphoto.com/?p=1675

    And here’s what the single.php code for it looks like:

    <?php
    /**
    * The main template file for display single post page.
    *
    * @package WordPress
    */

    get_header();

    /**
    * Get Current page object
    **/
    $page = get_page($post->ID);

    /**
    * Get current page id
    **/

    if(!isset($current_page_id) && isset($page->ID))
    {
    $current_page_id = $page->ID;
    }

    if($post_type == ‘gallery’)
    {
    $pp_portfolio_style = get_option(‘pp_portfolio_style’);
    if(empty($pp_portfolio_style))
    {
    $pp_portfolio_style = 3;
    }

    include (TEMPLATEPATH . “/templates/template-portfolio-“.$pp_portfolio_style.”.php”);
    exit;
    }

    ?>
    <?php
    $bg_style = get_post_meta($current_page_id, ‘post_bg_style’, true);

    if($bg_style == ‘Static Image’)
    {
    if(has_post_thumbnail($current_page_id, ‘full’))
    {
    $image_id = get_post_thumbnail_id($current_page_id);
    $image_thumb = wp_get_attachment_image_src($image_id, ‘full’, true);
    $pp_page_bg = $image_thumb[0];
    }
    else
    {
    $pp_page_bg = get_stylesheet_directory_uri().’/example/bg.jpg’;
    }
    ?>
    <script type=”text/javascript”>
    jQuery.backstretch( “<?php echo $pp_page_bg; ?>”, {speed: ‘slow’} );
    </script>

    <?php
    } // end if static image
    else
    {
    $page_bg_gallery_id = get_post_meta($current_page_id, ‘post_bg_gallery_id’, true);
    $args = array(
    ‘post_type’ => ‘attachment’,
    ‘numberposts’ => -1,
    ‘post_status’ => null,
    ‘post_parent’ => $page_bg_gallery_id,
    ‘order’ => ‘ASC’,
    ‘orderby’ => ‘menu_order’,
    );
    $bg_photo_arr = get_posts( $args );
    ?>

    <link rel=”stylesheet” href=”<?php echo get_stylesheet_directory_uri(); ?>/css/supersized.css” type=”text/css” media=”screen” />

    <script type=”text/javascript” src=”<?php echo get_stylesheet_directory_uri(); ?>/js/supersized.3.1.3.js”></script>
    <script type=”text/javascript” src=”<?php echo get_stylesheet_directory_uri(); ?>/js/supersized.shutter.js”></script>

    <script type=”text/javascript”>

    jQuery(function($){
    $.supersized({

    //Functionality
    slideshow : 1, //Slideshow on/off
    autoplay : 1, //Slideshow starts playing automatically
    start_slide : 1, //Start slide (0 is random)
    random : 0, //Randomize slide order (Ignores start slide)
    slide_interval : 10000, //Length between transitions
    <?php
    $pp_homepage_slideshow_trans = get_option(‘pp_homepage_slideshow_trans’);

    if(empty($pp_homepage_slideshow_trans))
    {
    $pp_homepage_slideshow_trans = 1;
    }
    ?>
    transition : <?php echo $pp_homepage_slideshow_trans; ?>, //0-None, 1-Fade, 2-Slide Top, 3-Slide Right, 4-Slide Bottom, 5-Slide Left, 6-Carousel Right, 7-Carousel Left
    transition_speed : 500, //Speed of transition
    new_window : 1, //Image links open in new window/tab
    pause_hover : 0, //Pause slideshow on hover
    keyboard_nav : 1, //Keyboard navigation on/off
    performance : 1, //0-Normal, 1-Hybrid speed/quality, 2-Optimizes image quality, 3-Optimizes transition speed // (Only works for Firefox/IE, not Webkit)
    image_protect : 0, //Disables image dragging and right click with Javascript

    //Size & Position
    min_width : 0, //Min width allowed (in pixels)
    min_height : 0, //Min height allowed (in pixels)
    vertical_center : 1, //Vertically center background
    horizontal_center : 1, //Horizontally center background
    <?php
    $pp_enable_fit_image = get_option(‘pp_enable_fit_image’);

    if(empty($pp_enable_fit_image))
    {
    $pp_enable_fit_image = 1;
    }
    else
    {
    $pp_enable_fit_image = 0;
    }
    ?>
    fit_portrait : <?php echo $pp_enable_fit_image; ?>, //Portrait images will not exceed browser height
    fit_landscape : <?php echo $pp_enable_fit_image; ?>, //Landscape images will not exceed browser width

    //Components
    navigation : 1, //Slideshow controls on/off
    thumbnail_navigation : 0, //Thumbnail navigation
    slide_counter : 0, //Display slide numbers
    slide_captions : 0, //Slide caption (Pull from “title” in slides array)
    progress_bar : 1,
    slides : [ //Slideshow Images

    <?php
    foreach($bg_photo_arr as $key => $photo)
    {
    $small_image_url = get_stylesheet_directory_uri().’/images/000_70.png’;
    $hyperlink_url = get_permalink($photo->ID);

    if(!empty($photo->guid))
    {
    $image_url[0] = $photo->guid;

    $small_image_url = get_stylesheet_directory_uri().’/timthumb.php?src=’.$image_url[0].’&h=80&w=130&zc=1′;
    }

    ?>

    <?php $homeslides .= ‘{image : \”.$image_url[0].’\’, thumb: \”.$small_image_url.’\’, title: “<div id=\”gallery_title\”>’.htmlentities($photo->post_title).'</div><div id=\”gallery_desc\”>’.htmlentities($photo->post_content).'</div>”},’; ?>

    <?php
    }
    ?>

    <?php $homeslides = substr($homeslides,0,-1);
    echo $homeslides; ?> ]

    });
    });

    </script>

    <!–Time Bar–>
    <div id=”progress-back” class=”load-item”>
    <div id=”progress-bar”></div>
    </div>

    <div id=”thumb-tray” class=”load-item”>
    <div id=”thumb-back”></div>
    <div id=”thumb-forward”></div>
    </div>

    <!–Control Bar–>
    <div id=”controls-wrapper” class=”load-item”>
    <div id=”controls”>

    <!–Arrow Navigation–>
    <img src=”<?php echo get_stylesheet_directory_uri(); ?>/images/icon_prev.png” alt=””/>

    <img id=”pauseplay” src=”<?php echo get_stylesheet_directory_uri(); ?>/images/pause.png” alt=””>

    <img src=”<?php echo get_stylesheet_directory_uri(); ?>/images/icon_next.png” alt=””/>
    <!–Thumb Tray button–>
    <img id=”tray-arrow” src=”<?php echo get_stylesheet_directory_uri(); ?>/images/button-tray-up.png” alt=””/>
    </div>

    </div>

    <input type=”hidden” id=”pp_image_path” name=”pp_image_path” value=”<?php echo get_stylesheet_directory_uri(); ?>/images/”/>

    <?php
    }
    ?>

    <!– Begin content –>
    <div id=”page_content_wrapper”>

    <div class=”inner”>

    <!– Begin main content –>
    <div class=”inner_wrapper”>

    <div id=”page_caption” class=”sidebar_content full_width” style=”padding-bottom:0″>
    <div style=”float:left”>
    <h1 class=”cufon”><?php _e( ‘Blog’, THEMEDOMAIN ); ?></h1>
    </div>
    <div class=”page_control”>

    <img src=”<?php echo get_stylesheet_directory_uri(); ?>/images/icon_minus.png” alt=””/>


    <img src=”<?php echo get_stylesheet_directory_uri(); ?>/images/icon_plus.png” alt=””/>

    </div>
    </div>

    <div class=”sidebar_content”>

    <?php

    global $more; $more = false; # some wordpress wtf logic

    if (have_posts()) : while (have_posts()) : the_post();

    $image_thumb = ”;

    if(has_post_thumbnail(get_the_ID(), ‘large’))
    {
    $image_id = get_post_thumbnail_id(get_the_ID());
    $image_thumb = wp_get_attachment_image_src($image_id, ‘large’, true);

    $pp_blog_image_width = 600;
    $pp_blog_image_height = 260;
    }
    ?>

    <!– Begin each blog post –>
    <div class=”post_wrapper”>

    <?php
    if(!empty($image_thumb))
    {
    ?>

    <br class=”clear”/>
    <div class=”post_img”>
    <div class=”shadow”>
    <div class=”zoom”><?php _e( ‘Enlarge Image’, THEMEDOMAIN ); ?></div>
    </div>
    ” class=”img_frame”>
    <img src=”<?php echo get_stylesheet_directory_uri(); ?>/timthumb.php?src=<?php echo $image_thumb[0]; ?>&h=<?php echo $pp_blog_image_height; ?>&w=<?php echo $pp_blog_image_width; ?>&zc=1″ alt=”” class=””/>

    </div>

    <?php
    }
    ?>

    <?php
    $post_header_style = ‘style=”width:100%;”‘;
    $pp_blog_display_social = get_option(‘pp_blog_display_social’);

    if(!empty($pp_blog_display_social))
    {
    $post_header_style = ”;
    ?>
    <div class=”post_social”>
    <iframe class=”facebook_button” src=”//www.facebook.com/plugins/like.php?app_id=262802827073639&href=<?php echo urlencode(get_permalink()); ?>&send=false&layout=box_count&width=200&show_faces=true&action=like&colorscheme=light&font&height=90″ scrolling=”no” frameborder=”0″ style=”border:none; overflow:hidden; width:60px; height:90px;” allowTransparency=”true”></iframe>

    ” data-url=”<?php echo get_permalink(); ?>” class=”twitter-share-button” data-count=”vertical”>Tweet<script type=”text/javascript” src=”//platform.twitter.com/widgets.js”></script>
    </div>
    <?php
    }
    ?>

    <div class=”post_header” <?php echo $post_header_style; ?>>

    <div class=”post_header”>
    <h3 class=”cufon”>” title=”<?php the_title(); ?>”><?php the_title(); ?></h3>
    <div class=”post_detail”>
    <?php echo _e( ‘Posted by’, THEMEDOMAIN ); ?> <?php echo get_the_author(); ?> on <?php echo get_the_time(‘d M Y’); ?> /
    <?php comments_number(‘0 Comment’, ‘1 Comment’, ‘% Comments’); ?>
    </div>
    </div>

    <br class=”clear”/>

    <?php
    the_content();
    ?>

    </div>
    <!– End each blog post –>

    <?php comments_template( ” ); ?>

    <?php endwhile; endif; ?>

    <div class=”pagination”><p><?php posts_nav_link(‘ ‘); ?></p></div>

    </div>

    </div>

    <div class=”sidebar_wrapper <?php echo $sidebar_class; ?>”>

    <div class=”sidebar_top <?php echo $sidebar_class; ?>”></div>

    <div class=”sidebar <?php echo $sidebar_class; ?> <?php echo $sidebar_home; ?>”>

    <div class=”content”>

    <ul class=”sidebar_widget”>
    <?php dynamic_sidebar(‘Blog Sidebar’); ?>

    </div>

    </div>
    <br class=”clear”/>

    <div class=”sidebar_bottom <?php echo $sidebar_class; ?>”></div>
    </div>

    </div>
    <!– End main content –>

    </div>
    <br class=”clear”/>
    <?php get_footer(); ?>
    <?php
    if(!isset($hide_header) OR !$hide_header)
    {
    ?>

    <!– End content –>
    <br class=”clear”/>

    <?php
    }
    ?>

    Thread Starter wingzfly

    (@wingzfly)

    Thanks so much, jibbius! That’s a huge help! I appreciate it!

Viewing 9 replies - 16 through 24 (of 24 total)