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.
Version 1.1: added module class suffix (for CSS)
Requirements: Joomla 1.5 and Zend 1.9+ (supported by most Apache servers). This has been tested on shared hosting running Apache on Linux (LAMP), but may require editing your php.ini file, depending on your web host. See below ..
Known issues:
- "Warning: include(Zend/Gdata/YouTube.php) ... "
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. - "max_execution exceeded" & timeouts: Because the installation file is 1.25 Mb and contains quite a few files (most notably the Gdata library), it might time out when you try to install it. You can instead use the "install from directory" approach in the Joomla extension installer. Unzip the installation package and upload the unxzipped folder to a location on your server, typically /public_html/tmp. The next version will feature a slimmed down library to alleviate this issue.




