Autor Tópico: Cor e tamanho para adicionar  (Lida 3960 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Cor e tamanho para adicionar
« em: 28 de Abril de 2009, 04:25 »

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

Adicionar por Baixo
Código: [Seleccione]
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
Código: [Seleccione]
// Now start printing all of the smileys.
if (!empty($context['smileys']['postform']))
{

Adicionar antes desse código este abaixo
Código: [Seleccione]
// 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
Código: [Seleccione]
/* Normal, standard links. */
a:link
{
color: #476C8E;
text-decoration: none;
}

Adicionar por baixo
Código: [Seleccione]
/* 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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re:Cor e tamanho para adicionar
« Responder #1 em: 28 de Abril de 2009, 04:38 »

post.template.php

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

Substituir por este aqui..
[logged]
Código: [Seleccione]
<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
Código: [Seleccione]
if (!isset($context['disabled_tags']['color']))
echo

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