Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • I went in through cpanel and deleted the backdraft plug-in entirely. Not too painful, seemed to have done the trick. What junk. Thanks again for your help!

    Ugh, thanks for your quick response!

    Hello, globetrots, can you tell me what you did to restore your site? I just installed the free backdraft plug-in and immediately received a similar message and cannot log in:

    “Warning: require_once(/home/eileengano/public_html/wp-content/plugins/updraftplus/admin.php): failed to open stream: No such file or directory in /home/eileengano/public_html/wp-content/plugins/updraftplus/class-updraftplus.php on line 165

    Fatal error: require_once(): Failed opening required ‘/home/eileengano/public_html/wp-content/plugins/updraftplus/admin.php’ (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in /home/eileengano/public_html/wp-content/plugins/updraftplus/class-updraftplus.php on line 165″

    I looked on the backdraft site but it appears the only help available is a paid service. :

    Thanks!

    <article id=”post-<?php the_ID(); ?>” <?php post_class(); ?>>
    <header class=”entry-header”>
    <h1 class=”entry-title”><?php the_title(); ?></h1>

    <div class=”entry-meta clearfix”>
    <?php
    //first get the current category ID
    $categories = get_the_category($post->ID);
    $cat_id = $categories[0]->cat_ID;
    //then i get the data from the database
    $cat_data = get_option(“taxonomy_$cat_id”);
    //and then i just display my category image if it exists
    if (isset($cat_data[‘cat_color’])){
    $cat_color_write = ‘ style=”background-color: ‘. $cat_data[‘cat_color’] .'”‘;
    } else {
    $cat_color_write = ”;
    }
    printf( __( ‘<span class=”sep meta-by”%8$s>Author </span> <span class=”author vcard”>%7$s</span><span class=”byline”> <span class=”sep meta-on”%8$s> Date </span> <time class=”entry-date” datetime=”%3$s”>%4$s</time></span>’, ‘surfarama’ ),
    esc_url( get_permalink() ),
    esc_attr( get_the_time() ),
    esc_attr( get_the_date( ‘c’ ) ),
    esc_html( get_the_date() ),
    esc_url( get_author_posts_url( get_the_author_meta( ‘ID’ ) ) ),
    esc_attr( sprintf( __( ‘View all posts by %s’, ‘surfarama’ ), get_the_author() ) ),
    esc_html( get_the_author() ),
    $cat_color_write
    );
    ?>
    <?php if ( comments_open() || ( ‘0’ != get_comments_number() && ! comments_open() ) ) : ?>
    <div class=”comment-top”><span class=”meta-com”<?php echo $cat_color_write; ?>><?php _e(‘Comments:’, ‘surfarama’); ?></span> <?php comments_popup_link( __( ‘Leave a comment’, ‘surfarama’ ), __( ‘1 Comment’, ‘surfarama’ ), __( ‘% Comments’, ‘surfarama’ ) ); ?></div>
    <?php endif; ?>
    </div><!– .entry-meta –>
    </header><!– .entry-header –>

    <div class=”entry-content post_content”>
    <?php the_content(); ?>
    <?php wp_link_pages( array( ‘before’ => ‘<div class=”page-link”>’ . __( ‘Pages:’, ‘surfarama’ ), ‘after’ => ‘</div>’ ) ); ?>
    </div><!– .entry-content –>

    <footer class=”entry-meta”>
    <?php
    /* translators: used between list items, there is a space after the comma */
    $category_list = get_the_category_list( __( ‘, ‘, ‘surfarama’ ) );

    /* translators: used between list items, there is a space after the comma */
    $tag_list = get_the_tag_list( ”, ‘, ‘ );

    if ( ! surfarama_categorized_blog() ) {
    // This blog only has 1 category so we just need to worry about tags in the meta text
    if ( ” != $tag_list ) { $meta_text = __( ‘Tagged %2$s. <–! Bookmark the permalink –>.’, ‘surfarama’ );}
    else {$meta_text = __( ‘ ‘, ‘surfarama’ );}

    } else {
    // But this blog has loads of categories so we should probably display them here
    if ( ” != $tag_list ) {
    $meta_text = __( ‘<span class=”cat-meta-color”%5$s>Posted in %1$s</span><div class=”colorbar”%5$s></div> Tagged %2$s. Bookmark the permalink.’, ‘surfarama’ );
    }

    } // end check for categories on this blog

    printf(
    $meta_text,
    $category_list,
    $tag_list,
    get_permalink(),
    the_title_attribute( ‘echo=0’ ),
    $cat_color_write
    );
    ?>

    <?php edit_post_link( __( ‘Edit’, ‘surfarama’ ), ‘<span class=”edit-link”>’, ‘</span>’ ); ?>
    </footer><!– .entry-meta –>

    </article><!– #post-<?php the_ID(); ?> –>

    Please see my following post with the entire code for content-single.php

    I edited for multiple categories and it works for me with both single and multiple categories.

    Hope it helps!

    Re wafwaf: Can someone please explain why would anyone want to remove it? If someone likes your post it helps them bookmark it. Isn’t this a good thing?

    IMO It’s ugly and just doesn’t work with the flow of my site. I use my website as a portfolio instead of a blog and that “bookmark the permalink… ” is an ugly and unnecessary distraction that serves little purpose to the majority of my visitors.

    More detailed instructions:

    From the dashboard,
    on the left hand side, Click “Appearance” and then “Editor”

    The title on the screen should now show
    “Edit Themes: Surfarama: Stylesheet (style.css)”

    On the far Right there is a list starting with “404 Template”

    Click on “content-single.php”

    Search for “<footer class=”entry-meta”>

    Edit the code so that it now looks like this: (bold is the new code)

    —————–

    <footer class=”entry-meta”>
    <?php
    /* translators: used between list items, there is a space after the comma */
    $category_list = get_the_category_list( __( ‘, ‘, ‘surfarama’ ) );

    /* translators: used between list items, there is a space after the comma */
    $tag_list = get_the_tag_list( ”, ‘, ‘ );

    if ( ! surfarama_categorized_blog() ) {
    // This blog only has 1 category so we just need to worry about tags in the meta text
    if ( ” != $tag_list ) { $meta_text = __( ‘Tagged %2$s. <–! Bookmark the permalink –>.’, ‘surfarama’ );}
    else {$meta_text = __( ‘ ‘, ‘surfarama’ );}

    } else {
    // But this blog….

    ——————-

    Then click “update file”

    Found it, thanks!!

    Where do you put this exactly? Thanks alot!

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