Changing the video player on classipress
I have a plugin/mod installed from melbweb.com for uploading a video into the
ad. Currently it uses a basic video player and uses the following code to
launch the player in single-ad_listing.php
$video_url = get_post_meta($post->ID, 'cp_video', false) ;
if($video_url[0])
{
echo '<strong>Video</strong>';
$video_player = get_bloginfo
('stylesheet_directory') .'/player/video-player.swf';
$thumb_path = substr($video_url[0], 0, -4)
. '.jpg';
?>
<p>
<object
id="player" classid="clsid
27CDB6E-AE6D-11cf-96B8-444553540000" name="player"
width="500" height="315">
<param name="movie" value="<?php echo $video_player ?>" />
<param name="allowfullscreen" value="true" />
<param name="allowscriptaccess" value="always" />
<param name="flashvars" value="file=<?php echo $video_url[0] ?>" />
<embed
type="application/x-shockwave-flash"
id="player2"
name="player2"
src="<?php echo $video_player ?>"
width="500"
height="315"
allowscriptaccess="always"
allowfullscreen="true"
flashvars="file=<?php echo $video_url[0] ?>&image=<?php echo
$thumb_path ?>"
/>
</object>
</p>
I want to use the free hdwebplayer for wordpress from here:
http://www.hdwebplayer.com/?q=wordpress-features
So I installed this player in wordpress. I also uploaded the whole hdwebplayer
folder into my child theme and referred to it in the above code by changing
this line:
/player/video-player.swf
into this line:
/webplayer/player.swf
as this is the location of the new player.
The ad loads the video player but doesn't load the videos see example here:
http://horsemarket.ie/ads/test-video-3/
Does anyone know why that might be?
I am really not a coder and have hardly any skills in this area so I am hacking
my way through it.
Any help much appreciated - email me at
stephen@cubeb.com