Simple Portal

Customization => Blocks and Modifications => Block Requests => Topic started by: Sentinel [AF] on April 30, 2010, 12:10:05 PM

Title: Custom Aeva Media Block Help (SMF 1.1.11)
Post by: Sentinel [AF] on April 30, 2010, 12:10:05 PM
Could anyone help me figure out what's wrong with this code please?

The player displays but it doesn't seem to want to load or play any of the music.


function show_aeva_media_block()
{
   global $sourcedir, $galurl;

   // Load the language file
   loadLanguage('Aeva');

   // Grab the file.
   if (file_exists($sourcedir . '/Aeva-Subs.php'))
      require_once($sourcedir . '/Aeva-Subs.php');
   // If it doesn't exist, tell them this and stop running.
   else
   {
      echo '<b>You don\'t have Aeva installed! Unable to continue!</b>';
      return;
   }
   
// Use aeva functions to show the media.
$items = aeva_listItems(aeva_getMediaItems(0, 4, 'RAND()'), false, '', 1);
// Now the code.
echo '<div class="smalltext" style="text-align: left; line-height: 1.4em; border: 0px #000000 solid; padding: 5px;"><br />';
echo '<object type="application/x-shockwave-flash" data="dewplayer-mini.swf?mp3=';

foreach($items as $item)
{
echo $galurl, 'sa=media;in=', $item['id_file'], '|';
}

echo ';&autostart=0&showtime=1&volume=75" width="160" height="20"><param name="wmode" value="transparent" /><param name="movie" value="dewplayer-mini.swf?mp3=';

foreach($items as $item)
{
echo $galurl, 'sa=media;in=', $item['id_file'], '|';
}

echo ';&autostart=0&showtime=1&volume=75" /></object>';

}

// Run the function.;
show_aeva_media_block();


Any help will be much appreciated thanks.
Title: Re: Custom Aeva Media Block Help (SMF 1.1.11)
Post by: Sentinel [AF] on May 05, 2010, 10:41:05 AM
A'llo could anyone help me with this code please?

I still haven't been able to figure out what the problem is.

As mentioned before ...

Any help will be much appreciated.

Lee 'Sentinel' Clarke.
EhPortal 1.39.8 © 2024, WebDev