
Sources/Subs.php
bul
array(
'tag' => 'pre',
'before' => '<pre>',
'after' => '</pre>',
),üstüne ekle// 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>',
),Buton olarak eklemek isteyenlerde,şunlari yapsinThemes/default/Post.template.php'de
bul
'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),altina ekle 'pdf' => array('code' => 'pdf', 'before' => '[pdf]', 'after' => '[/pdf]', 'description' => $txt['pdf']),Themes/default/languages/Post.turkish.phpBul
$txt[533] = 'Yazı Tipi';altina ekle
$txt['pdf'] = 'PDF Ekle';Ps: width="800" height="600" burdaki boyutlari kendinize göre ayarlayin.
Ps-2: Paket olarak kuranlar,dil dosyalarini manuel degi$tirmelidir,kolay gelsin
Kaynak: smf.gen.tr