Blackhatcodebreaker in Wordpress

BlackxHat

Power Member
Joined
Oct 6, 2009
Messages
729
Reaction score
89
I'm trying to add BHCB verison 3 to selective posts on my wp site. Not really sure how since I'm not good at php.

This is my single.php file in wp

PHP:
<?php get_header(); ?>



    <div id="content" class="narrowcolumn">



    <?php if (have_posts()) : ?>



        <?php while (have_posts()) : the_post(); ?>



            <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">

                <div class="left">

                    <div class="thumb" style="background: url(<?php bloginfo('url'); ?>/<?php echo get_post_meta(get_the_ID(), '_video_thumbnail_small',true)?>) no-repeat 50% 50%;" alt="<?php the_title_attribute('echo=1'); ?>">

                        <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute('echo=1'); ?>"><div></div></a>             

                      </div>

                    <div style="display:inline;">

                        <span class="left watch-btn"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute('echo=1'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/watch-btn.gif" alt="watch" /></a></span>

                        <span class="left ratings"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></span>

                    </div>

                </div>

                <div class="right">

                    <div class="part1">

                    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute('echo=1'); ?>"><?php the_title(); ?></a></h2>

                    <div class="entry"><?php the_excerpt(''); ?></div>

                    </div>

                    

                    <div class="postmetadata"><a href="#respond">Leave a comment</a> | Category: <?php echo get_the_category_list(', ');?></div>

                </div>

            </div>

            <?php if(get_post_meta(get_the_ID(), '_video_dvd_downurl',true)){?>

            <a href="<?php echo get_post_meta(get_the_ID(), '_video_dvd_downurl',true)?>" target="_blank"><div id="download"></div></a>

            <?php } ?>

            <div id="post-<?php the_ID(); ?>-content">

                <div class="entry">

                    <?php 

                        global $post;

                        if(get_post_meta($post->ID, '_video_id',true)){

                        $c = '['.get_post_meta($post->ID, '_video_portal',true).' '.get_post_meta($post->ID, '_video_id',true).' nolink]';

                        echo embeddedvideo_plugin($c);

                        }

                    ?>

                    <?php the_content(''); ?>

                </div>

            </div>

            <?php comments_template(); // Get wp-comments.php template ?>

        <?php endwhile; ?>



    <?php else : ?>



        <h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>

        <p class="center"><?php _e('Sorry, but you are looking for something that isn?t here.', 'kubrick'); ?></p>

        <?php include (TEMPLATEPATH . "/searchform.php"); ?>



    <?php endif; ?>



    </div>



<?php get_sidebar(); ?>



<?php get_footer(); ?>

Here's my header.php

PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">

<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title('«', true, 'right'); ?> <?php bloginfo('name'); ?></title>

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />

<link rel="alternate" type="application/rss+xml" title="<?php printf(__('%s RSS Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('rss2_url'); ?>" />

<link rel="alternate" type="application/atom+xml" title="<?php printf(__('%s Atom Feed', 'kubrick'), get_bloginfo('name')); ?>" href="<?php bloginfo('atom_url'); ?>" /> 

<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?> 

<!--<script type="text/javascript" src="<?php bloginfo('url');?>/wp-includes/js/jquery/jquery.js?ver=1.2.6"></script>-->

<script type="text/javascript">

function doClear(theText) {

 if (theText.value == theText.defaultValue) {

     theText.value = ""

 }

}

</script>

<?php wp_head(); ?>



<script src="<?php bloginfo('stylesheet_directory'); ?>/scripts/jquery.js" type="text/javascript"></script>

<?php if(is_home()){?>

<!-- begin content slider -->

<link rel="stylesheet" href="<?php bloginfo('stylesheet_directory'); ?>/coda-slider.css" type="text/css" media="screen" title="no title" charset="utf-8" />

<script src="<?php bloginfo('stylesheet_directory'); ?>/scripts/jquery.scrollto.js" type="text/javascript"></script>

<script src="<?php bloginfo('stylesheet_directory'); ?>/scripts/jquery.localscroll.js" type="text/javascript" charset="utf-8"></script>

<script src="<?php bloginfo('stylesheet_directory'); ?>/scripts/jquery.serialscroll.js" type="text/javascript" charset="utf-8"></script>

<script src="<?php bloginfo('stylesheet_directory'); ?>/scripts/coda.slider.js" type="text/javascript" charset="utf-8"></script> 

<!-- end content slider --> 

<?php }?>





</head>

<body>   

    

<div id="header">

    <div id="header-main">

        <div class="blogname">

        <a href="<?php echo get_option('home'); ?>/" title="<?php bloginfo('name'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/logo.gif" alt="<?php bloginfo('name'); ?>" /></a></span>

        </div>

        <div class="sub-description"><?php bloginfo('description'); ?></div>

        <div class="head-rss">subscribe now <a title="Subscribe to this blog..." href="<?php echo get_bloginfo('rss2_url'); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/rss.gif" alt="rss" /></a><br /><small>New Movies daily!</small></div>

    </div>

</div>

<div id="page">



    <?php if(is_home()){?>

    <!-- begin featured -->

    <div id="featured">

        <div id="slider">

            <div class="scroll">

                <div class="scrollContainer">

                    <?php

                    add_filter('posts_fields', 'featured_fields');

                    add_filter('posts_join', 'featured_join');

                    add_filter('posts_where', 'featured_where_featured');

                    $featuredPosts = new WP_Query();

                    $featuredPosts->query('showposts=5');

                    while ($featuredPosts->have_posts()) : $featuredPosts->the_post();

                    ?>

                    <div class="panel" id="post-featured-<?php the_ID(); ?>" style="background: url(<?php bloginfo('url'); ?>/<?php echo get_post_meta(get_the_ID(), '_video_thumbnail',true)?>) top left no-repeat;background-color:#000;">

                        <div class="in-panel">

                            <div class="scrollButtons-left"><img class="left" src="<?php bloginfo('stylesheet_directory'); ?>/images/scroll_left.png" /></div>

                            <div class="insert">

                                <div class="part1">

                                    <div class="in-insert">

                                    <h2><a href="<?php the_permalink() ?>" title="<?php the_title_attribute('echo=1'); ?>"><?php the_title(); ?></a></h2>

                                    <?php //if(function_exists('the_ratings')) { the_ratings(); } ?>

                                    <?php the_excerpt(); ?><br />                                

                                    </div>

                                </div>

                                <a href="<?php the_permalink() ?>" title="<?php the_title_attribute('echo=1'); ?>"><div class="watchnow"></div></a>

                            </div>

                            <div  class="scrollButtons-right"><img class="right" src="<?php bloginfo('stylesheet_directory'); ?>/images/scroll_right.png" /></div>

                        </div>

                    </div>

                    <?php

                    endwhile;

                    remove_filter('posts_where', 'featured_where_featured');

                    ?>



                </div>

            </div>

        </div>

    </div>

    <!-- end featured -->   

    <?php }?>

would greatly appreciate if somone can help me out
 
Back
Top