SMFPT - Suporte e Manutenção de Fórum em Português

SMF 1.1.x (Móbulos Manual) => SMF 1.1.x Módulos Manual => Media => Tópico iniciado por: candidosa2 em 03 de Setembro de 2009, 23:20

Título: PDF
Enviado por: candidosa2 em 03 de Setembro de 2009, 23:20
Sources/Subs.php
Pesquisar
Código: [Seleccione]
array(
            'tag' => 'pre',
            'before' => '<pre>',
            'after' => '</pre>',
         ),

Adiccionar

Código: [Seleccione]
// PDF [pdf]example.pdf[/pdf]
         array(
            'tag' => 'pdf',
            'type' => 'unparsed_content',
            'content' => ($context['browser']['is_ie'] && !$context['browser']['is_mac_ie'] ? '<object type="application/pdf" classid="clsid:CA8A9780-280D-11CF-A24D-444553540000" data="$1" width="800" height="600"><param name="src" value="$1"><embed src="$1" width="500" height="400" /><noembed><a href="$1" target="_blank">$1</a></noembed></object>' : '<embed type="application/pdf" src="$1" width="500" height="400" /><noembed><a href="$1" target="_blank">$1</a></noembed>'),
            'validate' => create_function('&$tag, &$data, $disabled', '
               if (isset($disabled[\'url\']))
                  $tag[\'content\'] = \'$1\';'),
            'disabled_content' => '<a href="$1" target="_blank">$1</a>',
         ),



Themes/teitema/Post.template.php

Pesquisar
Código: [Seleccione]
'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),

Adicionar
Código: [Seleccione]
'pdf' => array('code' => 'pdf', 'before' => '[pdf]', 'after' => '[/pdf]', 'description' => $txt['pdf']),


A imagem no anexo ponha

teutema/images/bbc