What follows is the talk propoal I submitted for BibleTech:2011
What follows is the talk propoal I submitted for BibleTech:2011
Recently, My father got an iPad; it's his one internet-enabled device. He mentioned that he couldn't listen to any of the audio on my site. Well, I found this to be unacceptable, and, while we still on the phone, I made the following changes to Drupal's Audio Module:
FIrst, edit the "1pixelout.inc" file in the audio/players/ directory (or edit the .inc file for the play you have chosen to use.) Add the following class to the flash object tag: class="1pixelflashplayer". Also, add the following title attribute to the object tag: title="{$options['soundFile']}".
The following javascript will search for all the flash players with the aforementioned class, hide them, and insert an <audio> tag after them with the src of the video from the flash player. Note: This will only work for mp3 audio files. You can download the javascript at the bottom of the page.
I Hope this helps someone. Javascript follows...
Recently, when trying to make 2 similtanious connections to the same mysql server with different databases, I noticed that this is not strictly possible without a little tweak.
The following will not work as expected:
$con1 = mysql_connect('localhost', 'user', 'pass');
mysql_select_db('db1', $con1);
$con2 = mysql_connect('localhost', 'user', 'pass');
mysql_select_db('db2', $con2);