Autor Tópico: Upgrade do tema 1.1.1 SMF 1.1.2  (Lida 6128 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Upgrade do tema 1.1.1 SMF 1.1.2
« em: 20 de Janeiro de 2008, 03:27 »
Poll.template.php

Pesquisar por
Código: [Seleccione]
// Version: 1.1; Poll
Colocar
Código: [Seleccione]
// Version: 1.1.2; Poll
Pesquisar por
Código: [Seleccione]
if (document.forms.postmodify.elements[i].id.substr(0, 8) == "options[")
Colocar
Código: [Seleccione]
if (document.forms.postmodify.elements[i].id.substr(0, 8) == "options-")

Pesquisar por
Código: [Seleccione]
<label for="options_', $choice['id'], '" ', (isset($context['poll_error']['poll_few']) ? ' style="color: red;"' : ''), '>', $txt['smf22'], ' ', $choice['number'], '</label>: <input type="text" name="options[', $choice['id'], ']" id="options_', $choice['id'], '" size="25" value="', $choice['label'], '" />';
Colocar
Código: [Seleccione]
<label for="options-', $choice['id'], '" ', (isset($context['poll_error']['poll_few']) ? ' style="color: red;"' : ''), '>', $txt['smf22'], ' ', $choice['number'], '</label>: <input type="text" name="options[', $choice['id'], ']" id="options-', $choice['id'], '" size="25" value="', $choice['label'], '" />';

Profile.template.php

Pesquisar por
Código: [Seleccione]
// Version: 1.1; Profile
Código: [Seleccione]
// Version: 1.1.2; Profile
Pesquisar por
Código: [Seleccione]
<td>', ($context['allow_edit_name'] ? '<input type="text" name="realName" size="30" value="' . $context['member']['name'] . '" />' : $context['member']['name']), '</td>
Colocar
Código: [Seleccione]
<td>', ($context['allow_edit_name'] ? '<input type="text" name="realName" size="30" value="' . $context['member']['name'] . '" maxlength="60" />' : $context['member']['name']), '</td>
Register.template.php

Pesquisar
Código: [Seleccione]
// Version: 1.1; Register
Colocar
Código: [Seleccione]
// Version: 1.1.2; Register
Pesquisar
Código: [Seleccione]
function template_admin_settings()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

Alterar por
Código: [Seleccione]
function template_admin_settings()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;

// Javascript for the verification image.
if ($context['use_graphic_library'])
{
echo '
<script language="JavaScript" type="text/javascript"><!-- // --><![CDATA[
function refreshImages()
{
var imageType = document.getElementById(\'visual_verification_type_select\').value;
document.getElementById(\'verificiation_image\').src = \'', $context['verificiation_image_href'], ';type=\' + imageType;
}
// ]]></script>';
}

Pesquisar
Código: [Seleccione]
</tr><tr class="windowbg2">
<th width="50%" align="right">
<label for="disable_visual_verification_check">', $txt['admin_setting_disable_visual_verification'], '</label>:
</th>
<td width="50%" align="left">
<input type="checkbox" name="disable_visual_verification" id="disable_visual_verification_check" ', !empty($modSettings['disable_visual_verification']) ? 'checked="checked"' : '', ' class="check" />
</td>

Colocar
Código: [Seleccione]
</tr><tr class="windowbg2" valign="top">
<th width="50%" align="right">
<label for="visual_verification_type_select">
', $txt['admin_setting_image_verification_type'], ':<br />
<span class="smalltext" style="font-weight: normal;">
', $txt['admin_setting_image_verification_type_desc'], '
</span>
</label>
</th>
<td width="50%" align="left">
<select name="visual_verification_type" id="visual_verification_type_select" ', $context['use_graphic_library'] ? 'onchange="refreshImages();"' : '', '>
<option value="1" ', !empty($modSettings['disable_visual_verification']) && $modSettings['disable_visual_verification'] == 1 ? 'selected="selected"' : '', '>', $txt['admin_setting_image_verification_off'], '</option>
<option value="2" ', !empty($modSettings['disable_visual_verification']) && $modSettings['disable_visual_verification'] == 2 ? 'selected="selected"' : '', '>', $txt['admin_setting_image_verification_vsimple'], '</option>
<option value="3" ', !empty($modSettings['disable_visual_verification']) && $modSettings['disable_visual_verification'] == 3 ? 'selected="selected"' : '', '>', $txt['admin_setting_image_verification_simple'], '</option>
<option value="0" ', empty($modSettings['disable_visual_verification']) ? 'selected="selected"' : '', '>', $txt['admin_setting_image_verification_medium'], '</option>
<option value="4" ', !empty($modSettings['disable_visual_verification']) && $modSettings['disable_visual_verification'] == 4 ? 'selected="selected"' : '', '>', $txt['admin_setting_image_verification_high'], '</option>
</select><br />';
if ($context['use_graphic_library'])
echo '
<img src="', $context['verificiation_image_href'], ';type=', empty($modSettings['disable_visual_verification']) ? 0 : $modSettings['disable_visual_verification'], '" alt="', $txt['admin_setting_image_verification_sample'], '" id="verificiation_image" /><br />';
else
{
echo '
<span class="smalltext">', $txt['admin_setting_image_verification_nogd'], '</span>';
}
echo '
</td>
« Última modificação: 18 de Abril de 2009, 06:50 por candidosa2 »