Results 1 to 1 of 1

Thread: Changing the video player on classipress

  1. #1
    Thread Starter
    stephenoconnor's Avatar
    Join Date
    Mar 2012
    Location
    Ireland
    Posts
    27
    Thanks
    11
    Thanked 7 Times in 5 Posts

    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="clsid27CDB6E-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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. classipress multisite with video mod and multi city/state
    By angash4family in forum ClassiPress General Discussion
    Replies: 1
    Last Post: August 4th, 2012, 12:18 PM
  2. Replies: 3
    Last Post: June 5th, 2012, 03:06 PM
  3. How to add Video And Audio To Classipress
    By olafshiel in forum ClassiPress General Discussion
    Replies: 1
    Last Post: November 19th, 2011, 08:04 AM
  4. Using Classipress with Video Script like YouTube
    By frantv in forum ClassiPress General Discussion
    Replies: 1
    Last Post: July 14th, 2010, 02:46 AM