1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Edit YouTube Module -WP Robot

Discussion in 'Blogging' started by briannz, Aug 16, 2010.

  1. briannz

    briannz Junior Member

    Joined:
    Mar 18, 2010
    Messages:
    119
    Likes Received:
    22
    Location:
    Aotearoa
    I came across a great WP plugin called 'Flash Video Player' It allows you to embed You Tube videos in it's own player.
    The best thing about it for me is that doing it this way removes the related videos as well as the click through link to YouTube.

    Now I am wondering if this can be incorporated into the YouTube Module in WP Robot 2 ??

    To embed the video using the plugin you just use the following code on your post:

    [flashvideo file=YOUTUBE LINK /]

    The embed part of the youtube module file for WP Robot contains

    <embed src="hxxp://w w w. youtube com/v/'.$videoid.'? .....

    I am guessing that this could somehow be changed to include the flashvideo code?

    I was going to try working it out by trial and error but I thought someone a bit more clued up may be able to point me in the right direction to save some time.

    Can anybody help?
     
  2. dayomoto

    dayomoto Junior Member

    Joined:
    Jul 12, 2008
    Messages:
    193
    Likes Received:
    38
    Occupation:
    Balling
    Location:
    U.K
    ok here is the solution.

    you open up the youtube module from your ftp program (you can find it at yourwebsite.com/wp-content/plugins/WPRobot3/modules/ and go to line 157 and use the replace function on your notepad to replace

    <object width="'.$options['wpr_yt_width'].'" height="'.$options['wpr_yt_height'].'">
    <param name="movie" value="http://www.youtube.com/v/'.$videoid.'?fs=1"></param>
    <param name="allowFullScreen" value="true"></param>
    <embed src="http://www.youtube.com/v/'.$videoid.'?fs=1&rel=0" type="application/x-shockwave-flash" width="'.$options['wpr_yt_width'].'" height="'.$options['wpr_yt_height'].'" allowfullscreen="true"></embed>
    </object>';


    with

    [flashvideo file=http://www.youtube.com/v/'.$videoid.' /]';

    your new posts should show the custom video player.
     
    • Thanks Thanks x 1
    Last edited: Aug 29, 2010
  3. briannz

    briannz Junior Member

    Joined:
    Mar 18, 2010
    Messages:
    119
    Likes Received:
    22
    Location:
    Aotearoa
    Thanks so much for your help. Works Perfectly! I just edited this post as I first put it don't work but then I realised I hadn't changed the settings on the Flash Video plugin!
     
    Last edited: Aug 29, 2010
  4. muchacho

    muchacho Supreme Member

    Joined:
    May 14, 2009
    Messages:
    1,293
    Likes Received:
    187
    Location:
    Lancashire, England.
    Which setting?
     
  5. muchacho

    muchacho Supreme Member

    Joined:
    May 14, 2009
    Messages:
    1,293
    Likes Received:
    187
    Location:
    Lancashire, England.
    Which setting?
     
  6. muchacho

    muchacho Supreme Member

    Joined:
    May 14, 2009
    Messages:
    1,293
    Likes Received:
    187
    Location:
    Lancashire, England.
    Which setting?
     
  7. muchacho

    muchacho Supreme Member

    Joined:
    May 14, 2009
    Messages:
    1,293
    Likes Received:
    187
    Location:
    Lancashire, England.
    Sorry for repeat post, BHW was 'hanging' so pressed the 'submit reply' more than once.
     
    Last edited: Jan 13, 2011