
05-03-2010, 03:31 PM
|
|
|
Join Date: Sep 2005
Posts: 1,160
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
================================================== =========
Version 4.0.5 SERVICE HOST XML REWRITE AND SITEMAP
================================================== =========- NEW FEATURE: You can now add new services by developing your own XML files.
I will write a guide on how to construct these XML files soon enough, but for now, you'll have to figure it out on your own.
- NEW FEATURE: Google Video Sitemap now available at "media.php?do=sitemap".
This sitemap will only parse LOCAL audio and video files.
- NEW FEATURE: A PHP Direct Execution widget for the vbCMS has been constructed.
Code:
ob_start();
require_once(DIR.'/media/media_functions_hrefs.php');
$medias = vB::$vbulletin->db->query_read("SELECT * FROM " . TABLE_PREFIX . "media ORDER BY dateline DESC LIMIT 3");
while ($media = vB::$vbulletin->db->fetch_array($medias))
{
if ($media['length'] == 0)
{
$media['length'] = "???";
}
else
{
$duration = $media['length'];
$minutes = floor($duration / 60);
$seconds = $duration % 60;
$seconds = str_pad($seconds, 2, "0", STR_PAD_LEFT);
$media['length'] = "$minutes:$seconds";
}
$media['intrate'] = intval($media['rating']);
$media['thumbnail'] = vB::$vbulletin->options['media_thumb_dir']."/thumbs/". $media['mediaID'] .".jpg";
$media['href'] = construct_href_details($media);
$templater = vB_Template::create('8WR_media_block');
$templater->register('media', $media);
$mediabits .= $templater->render();
}
$output = $mediabits;
ob_end_clean();
- BUG FIX: Fixed some leftover thumbnail problems from the previous version.
- BUG FIX: Miscellaneous SQL and template errors no one knew about but me.
|