Need to add a video player to a theme that has popup (Boxoffice) (2 posts)

  1. Jesse Techno
    Posted 3 years ago #

    I have the theme Boxoffice and it has a really nice thing where you can tell it where the video (mp4) is and it will play it. BUT! It has to load the whole thing before!

    Here is my work so far: http://movies.jessetechno.com

    I only have one movie on there for testing but I need to figure out how to make it open flow player in the window instead of the movie alone... Any help?

    I can get you into the FTP if you need in... or into wp-admin. Please help me!

  2. Jesse Techno
    Posted 3 years ago #

    Here is the code in the file I think I need to change:

    <?php get_header(); ?>
    <div id="content" >
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="title">
    <h2><?php the_title(); ?></h2>
    <div class="entry">
    <div class="mposter">
    <div class="theposter">
    <span class="overlay"></span>
    <?php $video=get_post_meta($post->ID, 'wtf_video', true); ?>
    if ( has_post_thumbnail() ) { ?>
    	<a rel="prettyPhoto[gallery]" href="<?php echo stripslashes ($video); ?>"><img class="boximg posthov" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php get_image_url(); ?>&h=270&w=180&zc=1" alt=""/></a>
    <?php } else { ?>
    	<a rel="prettyPhoto" href="<?php echo stripslashes ($video); ?>"><img class="boximg posthov" src="<?php bloginfo('template_directory'); ?>/images/dummy.png" alt="" /></a>
    <?php } ?>
    <div class="postermeta">
    <span>Year : <?php $ryear=get_post_meta($post->ID, 'wtf_ryear', true); echo $ryear; ?></span>
    <span>Director : <?php $director=get_post_meta($post->ID, 'wtf_dirctr', true); echo $director; ?></span>
    <span>Running Time : <?php $runtime=get_post_meta($post->ID, 'wtf_runtime', true); echo $runtime; ?></span>
    <span>Genre : <?php echo get_the_term_list( $post->ID, 'movie-genre', '', ', ', '' ); ?></span>
    <div class="mainscore clearfix">
    <div class="revscore">
    <span class="revscoretitle">Movie review score </span>
    <span class="single-sholder"> <span class="single-scorebar score-<?php $rscore=get_post_meta($post->ID, 'wtf_rscore', true); echo $rscore; ?>"> </span>    </span>
    <div class="revscorebox"> <?php $rscore=get_post_meta($post->ID, 'wtf_rscore', true); echo $rscore; ?>/5 </div>
    <?php the_content('Read the rest of this entry &raquo;'); ?>
    <div class="clear"></div>
    <?php wp_link_pages(array('before' => '<p><strong>Pages: </strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
    <?php comments_template(); ?>
    <?php endwhile; else: ?>
    		<h1 class="title">Not Found</h1>
    		<p>I'm Sorry,  you are looking for something that is not here. Try a different search.</p>
    <?php endif; ?>
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic