subs.phparray(
'tag' => 'right',
'before' => '<div style="text-align: right;">',
'after' => '</div>',
'block_level' => true,
),
Adicionar
array(
'tag' => 'fb2',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
),
'content' => '<a onclick="showText(event);" href="javascript://"><img onerror="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);" onclick="MM_openBrWindow(\'' . $modSettings['fblink1'] . '\',\'\',\'scrollbars=yes,width=1,height=1\')" src="' . $modSettings['fbresim1'] . '" alt="" border="0" width="525" height="123"></a><div id="text" style="visibility: hidden;"><a href="$1" target="_blank"><img src="' . $modSettings['fbresim2'] . '" alt=""></a></div>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'fb2',
'type' => 'unparsed_content',
'content' => '<a onclick="showText(event);" href="javascript://"><img onerror="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);" onclick="MM_openBrWindow(\'' . $modSettings['fblink1'] . '\',\'\',\'scrollbars=yes,width=1,height=1\')" src="' . $modSettings['fbresim1'] . '" alt="" border="0" width="525" height="123"></a><div id="text" style="visibility: hidden;"><a href="$1" target="_blank"><img src="' . $modSettings['fbresim2'] . '" alt=""></a></div>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
index.template.php</head>
Adicionar
<script type="text/javascript"><!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
// --></script></p>
<p><script type="text/javascript"><!--
function showText(e) {
theObject = document.getElementById("text");
theObject.style.visibility = "visible";
}
function hideText() {
theObject = document.getElementById("text");
theObject.style.visibility = "hidden";
}
// --></script>
post.template.php'img' => array('code' => 'img', 'before' => '[img]', 'after' => '[/img]', 'description' => $txt[435]),
Adicionar
'fb2' => array('code' => 'fb2', 'before' => '[fb2]', 'after' => '[/fb2]', 'description' => $txt['fb2']),
ModSettings.phparray('check', 'enableReportPM'),
Adicionar
array('check', 'enableReportPM'),
'',
// fb reklam
array('text', 'fblink1'),
array('text', 'fbresim1'),
array('text', 'fbresim2'),
Modifications.teuidioma.php?>
$txt['fblink1'] = 'Quer abrir o link do anúncio (http:// Certifique-se de incluir):';
$txt['fbresim1'] = 'Ao clicar sobre a imagem obrigatória (http:// Certifique-se de incluir):';
$txt['fbresim2'] = 'Imagem será aberta (http:// Certifique-se de incluir):';
Post.portuguese_pt.php?>
Adiconar
$txt['fb2'] = 'Modo Ad-Link';
a Imagem no anexo tem que estar fb2.gif images/bbc
Esconder para os visitantes
Modifications.teuidioma.php?>
//Membros Links smfpt.net
$txt['no_view_fb'] = 'Você não tem permissão para exibir links';
$txt['no_view_fb'] = 'Nao pode ver os Links';
$txt['no_view_register'] = 'Registre-se';
$txt['no_view_or'] = 'ou';
$txt['no_view_login'] = 'Entrar';
?>
subs.phparray(
'tag' => 'fb2',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
),
'content' => $user_info['is_guest'] ? $txt['no_view_fb'] . "\n" . '' . $txt['no_view_fb'] . ' <a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a> ' . $txt['no_view_or'] . ' <a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : '<a onclick="showText(event);" href="javascript://"><img onerror="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);" onclick="MM_openBrWindow(\'' . $modSettings['fblink1'] . '\',\'\',\'scrollbars=yes,width=1,height=1\')" src="' . $modSettings['fbresim1'] . '" alt="" border="0" width="525" height="123"></a><div id="text" style="visibility: hidden;"><a href="$1" target="_blank"><img src="' . $modSettings['fbresim2'] . '" alt=""></a></div>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'fb2',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['no_view_fb'] . "\n" . '' . $txt['no_view_fb'] . ' <a href="' . $scripturl . '?action=register">' . $txt['no_view_register'] . '</a> ' . $txt['no_view_or'] . ' <a href="' . $scripturl . '?action=login">' . $txt['no_view_login'] . '</a>' : '<a onclick="showText(event);" href="javascript://"><img onerror="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);" onclick="MM_openBrWindow(\'' . $modSettings['fblink1'] . '\',\'\',\'scrollbars=yes,width=1,height=1\')" src="' . $modSettings['fbresim1'] . '" alt="" border="0" width="525" height="123"></a><div id="text" style="visibility: hidden;"><a href="$1" target="_blank"><img src="' . $modSettings['fbresim2'] . '" alt=""></a></div>',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
Para mostrar-lhe não só para os visitantes
Modifications.teuidioma.php?>
//Membros Links smfpt.net
$txt['ziyaretci_fb'] = 'Esta secção só aparece para os visitantes para os utilizadores e deve se livrar desta miséria';
?>
subs.phparray(
'tag' => 'fb2',
'type' => 'unparsed_content',
'parameters' => array(
'alt' => array('optional' => true),
),
'content' => $user_info['is_guest'] ? $txt['ziyaretci_fb'] . "\n" . '<a onclick="showText(event);" href="javascript://"><img onerror="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);" onclick="MM_openBrWindow(\'' . $modSettings['fblink1'] . '\',\'\',\'scrollbars=yes,width=1,height=1\')" src="' . $modSettings['fbresim1'] . '" alt="" border="0" width="525" height="123"></a><div id="text" style="visibility: hidden;"><a href="$1" target="_blank"><img src="' . $modSettings['fbresim2'] . '" alt=""></a></div>' : '',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),
array(
'tag' => 'fb2',
'type' => 'unparsed_content',
'content' => $user_info['is_guest'] ? $txt['ziyaretci_fb'] . "\n" . '<a onclick="showText(event);" href="javascript://"><img onerror="javascript: wp_broken_images = window.wp_broken_images || function(){}; wp_broken_images(this);" onclick="MM_openBrWindow(\'' . $modSettings['fblink1'] . '\',\'\',\'scrollbars=yes,width=1,height=1\')" src="' . $modSettings['fbresim1'] . '" alt="" border="0" width="525" height="123"></a><div id="text" style="visibility: hidden;"><a href="$1" target="_blank"><img src="' . $modSettings['fbresim2'] . '" alt=""></a></div>' : '',
'validate' => create_function('&$tag, &$data, $disabled', '$data = strtr($data, array(\'<br />\' => \'\'));'),
'disabled_content' => '($1)',
),