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 => Tópico começado por: candidosa2 em 28 de Abril de 2009, 05:25

Título: Cor e tamanho para adicionar
Mensagem de: candidosa2 em 28 de Abril de 2009, 05:25
(http://i276.photobucket.com/albums/kk39/apllic/sshot-3-33.png)

source/Subs.php
Pesquisar
array(
'tag' => 'hr',
'type' => 'closed',
'content' => '<hr />',
'block_level' => true,
),


Adicionar por Baixo
array(
'tag' => 'bgcolor',
'type' => 'unparsed_equals',
'test' => '(#[\da-fA-F]{3}|#[\da-fA-F]{6}|[A-Za-z]{1,12})\]',
'before' => '<span style="background-color:$1;">',
'after' => '</span>',
),


Post.template.php

Pesquisar
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{


Adicionar antes desse código este abaixo
// if both color and bgcolor are disabled
if (!isset($context['disabled_tags']['color']) || !isset($context['disabled_tags']['bgcolor'])) {

echo '<tr>
<td align="right"></td>
<td valign="middle">
<script language="javascript" type="text/javascript">';

// define the image dir
echo 'var cbid = "', $settings['default_theme_url'],'/images/bbc/";';

// define the settings for javascript purposes
if (!isset($context['disabled_tags']['color'])) { echo 'var usecolor = 1;'; } else { echo 'var usecolor=0;';}
if (!isset($context['disabled_tags']['bgcolor'])) { echo 'var usebgcolor = 1;'; } else { echo 'var usebgcolor = 0;';}

// call colorbar.js which has the javascript in
echo '</script>
<script language="javascript" src="', $settings['default_theme_url'], '/color.js" type="text/javascript"></script>
</td>
</tr>';
}



default/style.css
Pesquisar
/* Normal, standard links. */
a:link
{
color: #476C8E;
text-decoration: none;
}


Adicionar por baixo
/* Color Bar CSS Class */
.colorbar {
width:450px;
}
.colorcell {
height:18px;
}
.colorbox {
border-color:#808080;
border-width:1px;
border-style:solid;
width:18px;
height:18px;
overflow:hidden;
}
.colorboxspacer {
width:18px;
height:18px;
}


os ficheiros anexo colocar no default as imagens no BBC
Título: Re:Cor e tamanho para adicionar
Mensagem de: candidosa2 em 28 de Abril de 2009, 05:38
(http://i276.photobucket.com/albums/kk39/apllic/sshot-4-26.png)

post.template.php

Pesquisar
<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
echo '<br/>';


Substituir por este aqui..
[logged]<option value="Maroon">', $txt[274], '</option>
<option value="LimeGreen">', $txt[275], '</option>
</select>';
echo '';
// Yazi stilleri ve  Kodu Baslangici ivan_  Translate Candidosa2 Suporte smfpt.net. . . . . . . .
    echo ' <select onchange="surroundText(\'[font=\'+this.options[this.selectedIndex].value+\']\', \'[/font]\', document.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0;" style="margin-bottom: 1ex;">
            <option value="" selected="selected">Tipo de Fonte</option>
            <option value="Arial">Arial</option>
            <option value="Times New Roman">Times New Roman</option>
            <option value="Monotype Corsiva"> Monotype Corsiva </option>
            <option value="Impact">Impact</option>
            <option value="Tahoma">Tahoma</option>
            <option value="Verdana">Verdana</option>
            <option value="Trebuchet MS">Trebuchet MS</option>
        <option value="Comic Sans MS">Comic Sans Ms</option>
<option value="Georgia">Georgia</option>
    <option value="Courier">Courier</option>

            </select>';
// Yazi stilleri Kodu Sonu ivan_ . . . . . . . .
// Yazi boyutu Kodu Baslangici  ivan_  Update Candidosa2 Translate Suporte smfpt.net. . . . . . . .
    echo ' <select onchange="surroundText(\'[size=\'+this.options[this.selectedIndex].value+\']\', \'[/size]\', document.', $context['post_form'], '.', $context['post_box_name'], '); this.selectedIndex = 0;" style="margin-bottom: 1ex;">
            <option value="" selected="selected">Tamanho da Fonte</option>
            <option value="10pt">10pt</option>
            <option value="12pt">12pt</option>
            <option value="14pt">14pt</option>
            <option value="16pt">16pt</option>
            <option value="18pt">18pt</option>
            </select><br/>';
// Yazi boyutu Kodu Sonu ivan_  Suporte smfpt.net. . . . . . . .
[/logged]


Pesquisar
if (!isset($context['disabled_tags']['color']))
echo


Trocar por este
if (!isset($context['disabled_tags']['color']))
echo ' <br/>