Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

Php embed code help

  • 31-10-2011 10:37PM
    #1
    Registered Users, Registered Users 2 Posts: 18


    So i need a help if anyone can.i just put up a nice piece of code that shuffles music videos i picked from youtube for my friend's blog.they work ok but i am trying figure out how to do it with online games. were gonna pick our favorite games from arcadecabin.com

    the previous code for the youtube is this
    <?php

    $videos = array(
    'pLGcj62fdKo',
    '-QKj62RKBrM',
    'D78AQSAKQLQWI9',
    '_YVY3JYgWHs',
    '60GKTp0pf1A',
    'pEPmp5Wv9uo',
    '2AdaZoWW6uc',
    'l7Hk0KXEf94',
    'SDTZ7iX4vTQ&ob',
    'XC5vmnnj8l4',
    'qQYpF2pCkLI&ob=av3e',
    '7iODSZL7XkQ',
    'YoZHE9UE5as',
    'aHU3s1pdacY',

    // Add more ids there list this:
    // 'id',
    );


    $video = $videos[rand(0, count($videos) - 1)];

    echo '<center><object width="480" height="385">
    <param name="movie" value="http://www.youtube.com/v/',
    $video, '&hl=en_US&fs=1&"></param><param name="allowFullScreen"
    value="true"></param><param name="allowscriptaccess" value="always">
    </param><embed src="http://www.youtube.com/v/', $video,
    '&hl=en_US&fs=1&" type="application/x-shockwave-flash"
    allowscriptaccess="always" allowfullscreen="true" width="480"
    height="385"></embed></object></center>';

    ?>

    any help would be great, may look into shuffling games from various sites
    Tagged:


Advertisement
Advertisement