multimedia
 
wp-ploop Installation Manual
1. Download the file
    http://www.awalkoutside.com/wp-plugins/ploop_1_0_1.zip or
    http://www.awalkoutside.com/wp-plugins/ploop_1_0_1.tar.gz
    and unzip it into your wp-content/plugins/ directory.
    This will create a file called wp-ploop.php and a folder called ploop.

2. Activate the plugin from your WordPress admin 'Plugins' page.
3. Put the .movs and .swfs you want to display into the ploop folder.
    If you want to show an alternate image while the .mov/.swf is not playing,
    also put it into the ploop folder. It must have the same size and name as
    the .mov/.swf and can be of type .gif,.png,.jpg.
    In the Options menu you can select if you want to use the default source
    folder(wp-plugins/ploop) choose another general sourcefolder
    or select a sourcefolder individually per file.

4. Enter the values into the fields under Video and Flash Tags.
    All fields are required.

    Example:

    Name
    
somemovie

    Use the radiobuttons to determine the filetype

    Width
    
200


    Height
    
300


    BackgroundColor
    
#FFFFFF


5. Use the function tsaw_ploop somewhere inside "the loop".
    ("the loop": located in your current theme's index.php there is a "while - loop"
    [beggining and end are marked with a light blue background in the example below]
    you have to call the tsaw_ploop function once inside that loop.
    Use 'echo tsaw_ploop()' [look at the yellow part below] to display the .movs/.swfs)

Example:
   1:<?php get_header(); ?>
   2:<?php get_sidebar(); ?>
   3:<hr />
   4:<div id="content">   
 
5:<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
6: <?php // Post dates off by default the_date('','<h2>','</h2>'); ?> 7: <div id="post-<?php the_ID(); ?>"> 8: <h2><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h2> 9: 10: 11: <div class="meta"><?php _e("Posted in"); ?> 12: <?php the_category(',') ?> 13: by <?php the_author() ?> 14: on the <?php the_time('F jS, Y') ?> 15: <?php edit_post_link(__('Edit This')); ?></div> 16:
17:<div style="position:relative;float:none"> 18:<?php 19: echo '<div class="main" style="min-width:480px">'; 20: echo tsaw_ploop(); 21: echo '</div>'; 22:?> 23:</div>
24: <div class="main"> 25: <?php the_content(__('(more...)')); ?> 26: </div> 27: </div> 28: <div class="comments"> 29: <?php wp_link_pages(); ?> 30: <?php 31: comments_popup_link(__('<strong>0</strong> Comments'), 32: __('<strong>1</strong> Comment'), __('<strong>%</strong> Comments')); 33: ?> 34: </div> 35: 36: 37:<?php comments_template(); ?> 38:
39:<?php endwhile; else: ?>
40:<div class="warning"> 41: <p><?php _e('Sorry, no posts matched your criteria, please try and search again.'); ?></p> 42:</div> 43:<?php endif; ?> 44: 45:<?php posts_nav_link(' &#8212; ', __('&laquo; Previous Page'), __('Next Page &raquo;')); ?> 46: 47: </div> 48:<!-- End float clearing --> 49:</div> 50:<!-- End content --> 51:<?php get_footer(); ?>
view example

back