Virginia Web Designers: Joomla, Drupal, Open-Source, CSS, and PHP Northern Virginia / Maryland / Washington DC web designers

12Feb/100

New module: Random Youtube Video

download it here

Displays a random video for a specific user. Lets you set the video width and height, control whether to show a “more videos” link or not, and control the wording of that link. Also allows you to display a single YouTube video instead of a random one. It uses the Google Data API for YouTube to grab the user’s video IDs and pick one at random.

Requirements: Joomla 1.5 and Zend 1.9+ (supported by most Apache servers). This has been tested on a LAMP machine (Linux/Apache) but in some cases – Windows servers, perhaps, or if your host doesn’t allow PHP scripts to use the ini_set() function – it may be necessary to manually set the include_path directive in your php.ini to something like ‘include_path = ..:/usr/lib/php:/home/account/public_html/modules/mod_randomyoutube/Zend/library’.

The above assumes your php.ini include_path is /usr/lib/php, but that will be different for every server, so check phpinfo() for that. In the Joomla backend, go to Help > System Info, PHP Information.

Filed under: Sundry No Comments