Autor Tópico: Mp3  (Lida 7570 vezes)

0 Membros e 4 Visitantes estão a ver este tópico.

Offline joomlamz

  • Fundador
  • *
  • Mensagens: 4265
  • Rank: 4877
  • Sexo: Masculino
  • Joomla!
    • Web Master !
Mp3
« em: 23 de Setembro de 2007, 10:19 »
source/subs

pesquisar por

Código: [Seleccione]
array(
'tag' => 'hr',
'type' => 'closed',
'content' => '<hr />',
'block_level' => true,
),

Colocar
Código: [Seleccione]
array(
'tag' => 'mp3',
'type' => 'unparsed_commas_content',
'test' => '\d+,\d+,0|1,center|left|right\]',
'content' => '$1',
'validate' => create_function('&$tag, &$data, $disabled', '
if (!isset($disabled[\'mp3\'])) {
$url =  end(explode(\'/\', dirname("{$_SERVER[\'PHP_SELF\']}")));
$chopped = parse_url($url);
$board_dir = "http://". "{$_SERVER[\'HTTP_HOST\']}"."/".$chopped[\'path\'];
$theme_dir = "$board_dir/Themes/default";
if (strpos($data[0], \'|\') === false)
{
$data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"$board_dir/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"$board_dir/dewplayer.swf?son=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object> <a href=\"".strtr($data[0], array(\'<br />\' => \'\'))."\"><img align=\"absbottom\" style=\"text-decoration: none;border: none;\" src=\"$theme_dir/images/podcast.gif\" title =\"Podcast\" alt=\"Podcast\"></a><br></p>";
} else {
$data[0] = "<p style=\"color: #000000;font-family: Arial, sans-serif;font-size: 11px;font-weight: normal;text-align: $5;text-decoration: none;\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0\" width=\"$2\" height=\"$3\" id=\"dewplayer\" align=\"middle\"><param name=\"wmode\" value=\"transparent\"><param name=\"allowScriptAccess\" value=\"sameDomain\" /><param name=\"movie\" value=\"$board_dir/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"FFFFFF\" /><embed src=\"$board_dir/dewplayer-multi.swf?mp3=".strtr($data[0], array(\'<br />\' => \'\'))."&autostart=$4&showtime=1&bgcolor=FFFFFF\" quality=\"high\" bgcolor=\"FFFFFF\" width=\"$2\" height=\"$3\" name=\"dewplayer\" wmode=\"transparent\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\"></embed></object></p>";
}
} else {
$tag[\'content\'] = \'$1\';
}
'),
'block_level' => true,
'disabled_content' => '<a href="$1" target="_blank">$1</a>',
),

default
Código: [Seleccione]
$theme_dir = "$board_dir/Themes/default";
Post.template.php

Pesquisar por
Código: [Seleccione]
'flash' => array('code' => 'flash', 'before' => '[flash=200,200]', 'after' => '[/flash]', 'description' => $txt[433]),
Código: [Seleccione]
'mp3' => array('code' => 'mp3', 'before' => '[mp3=200,20,0,center]', 'after' => '[/mp3]', 'description' => $txt['mp3']),
/languages/Modifications.portuguese.php

pesquisar por
Código: [Seleccione]
?>
colocar
Código: [Seleccione]
$txt['mp3'] = 'mp3';
Apllic   Alojamentos Profissionais de Moçambique!