Autor Tópico: [Dica] - actualização temas RC5 SMF para a versão final 2.0  (Lida 5737 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Index.template

Pesquisar

Código: [Seleccione]
// Version: 2.0 RC5; index
Trocar por

Código: [Seleccione]
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

Código: [Seleccione]
$settings['theme_version'] = '2.0 RC5';
Código: [Seleccione]
$settings['theme_version'] = '2.0';
Código: [Seleccione]
// The ?rc5 part of this link is just here to make sure browsers don't cache it wrongly.
    echo '
    <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?rc5" />';

Código: [Seleccione]
// The ?fin20 part of this link is just here to make sure browsers don't cache it wrongly.
    echo '
    <link rel="stylesheet" type="text/css" href="', $settings['theme_url'], '/css/index', $context['theme_variant'], '.css?fin20" />';


Código: [Seleccione]
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?rc5"></script>
    <script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?rc5"></script>

Código: [Seleccione]
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/script.js?fin20"></script>
    <script type="text/javascript" src="', $settings['theme_url'], '/scripts/theme.js?fin20"></script>


Código: [Seleccione]
<div class="info">', $txt['login_or_register'], '</div>
Código: [Seleccione]
<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>

Código: [Seleccione]
<li><a id="button_xhtml" href="http://validator.w3.org/check/referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>
Código: [Seleccione]
<li><a id="button_xhtml" href="http://validator.w3.org/check?uri=referer" target="_blank" class="new_win" title="', $txt['valid_xhtml'], '"><span>', $txt['xhtml'], '</span></a></li>



Display.template.php

Pesquisar
Código: [Seleccione]
// Version: 2.0 RC5; Display
Trocar por
Código: [Seleccione]
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

Código: [Seleccione]
<textarea cols="75" rows="7" style="', $context['browser']['is_ie8'] ? 'max-width: 100%; min-width: 100%' : 'width: 100%', '; height: 100px;" name="message" tabindex="', $context['tabindex']++, '"></textarea>
Código: [Seleccione]
<textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea>
Código: [Seleccione]
<textarea class="editor" name="message" rows="12" style="' . ($context['browser']['is_ie8'] ? 'max-width: 100%; min-width: 100%' : 'width: 100%') . '; margin-bottom: 10px;" tabindex="' . $context['tabindex']++ . '">%body%</textarea><br />
Código: [Seleccione]
<textarea class="editor" name="message" rows="12" style="' . ($context['browser']['is_ie8'] ? 'width: 635px; max-width: 100%; min-width: 100%' : 'width: 100%') . '; margin-bottom: 10px;" tabindex="' . $context['tabindex']++ . '">%body%</textarea><br />


BoardIndex.template.php


Pesquisar
Código: [Seleccione]
// Version: 2.0 RC5; BoardIndex
Código: [Seleccione]
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */


Código: [Seleccione]
</tbody>
    <tbody class="content" id="category_', $category['id'], '_boards">';

Código: [Seleccione]
</tbody>';

Código: [Seleccione]
// Assuming the category hasn't been collapsed...
        if (!$category['is_collapsed'])
        {

Código: [Seleccione]
// Assuming the category hasn't been collapsed...
        if (!$category['is_collapsed'])
        {

        echo '
            <tbody class="content" id="category_', $category['id'], '_boards">';

Código: [Seleccione]
}
        echo '
            </tbody>
            <tbody class="divider">

adicionar antes

Código: [Seleccione]
echo '
            </tbody>';

Código: [Seleccione]
if (!empty($settings['number_recent_posts']))
Código: [Seleccione]
if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))


PersonalMessage.template.php

Pesquisar
Código: [Seleccione]
// Version: 2.0 RC5; PersonalMessage
Trocar por
Código: [Seleccione]
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

Código: [Seleccione]
<div class="errorbox">
    <strong>', $txt['error_while_submitting'], '</strong>
    <ul>';

Código: [Seleccione]
<div class="errorbox">
    <strong>', $txt['error_while_submitting'], '</strong>
    <ul class="reset">';


Código: [Seleccione]
<span class="botslice"><span></span></span>
    </div>';

Código: [Seleccione]
<span class="botslice"><span></span></span>
    </div><br class="clear" />';

Código: [Seleccione]
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/PersonalMessage.js?rc5"></script>
        <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/suggest.js?rc5"></script>

Código: [Seleccione]
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/PersonalMessage.js?fin20"></script>
        <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/suggest.js?fin20"></script>

Código: [Seleccione]
<textarea name="reason" rows="4" cols="70" style="width: 80%;"></textarea>
Código: [Seleccione]
<textarea name="reason" rows="4" cols="70" style="' . ($context['browser']['is_ie8'] ? 'width: 635px; max-width: 80%; min-width: 80%' : 'width: 80%') . ';"></textarea>


MessageIndex.template.php
Pesquisar
Código: [Seleccione]
// Version: 2.0 RC5; MessageIndex

Código: [Seleccione]
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

Código: [Seleccione]
// If Quick Moderation is enabled start the form.
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))

Código: [Seleccione]
// If Quick Moderation is enabled start the form.
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] > 0 && !empty($context['topics']))


Código: [Seleccione]
// Finish off the form - again.
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))

Código: [Seleccione]
// Finish off the form - again.
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] > 0 && !empty($context['topics']))


Settings.template.php
Pesquisar

Código: [Seleccione]
// Version: 2.0 RC5; Settings
trocar por
Código: [Seleccione]
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */



Themes.template.php

Pesquisar

Código: [Seleccione]
// Version: 2.0 RC5; Themes
Trocar por

Código: [Seleccione]
/**
 * Simple Machines Forum (SMF)
 *
 * @package SMF
 * @author Simple Machines
 * @copyright 2011 Simple Machines
 * @license http://www.simplemachines.org/about/smf/license.php BSD
 *
 * @version 2.0
 */

Código: [Seleccione]
<textarea name="entire_file" cols="80" rows="20" style="width: 96%; font-family: monospace; margin-top: 1ex; white-space: pre;" onkeyup="setPreviewTimeout();" onchange="refreshPreview(true);">', $context['entire_file'], '</textarea><br />
Código: [Seleccione]
<textarea name="entire_file" cols="80" rows="20" style="' . ($context['browser']['is_ie8'] ? 'width: 635px; max-width: 96%; min-width: 96%' : 'width: 96%') . '; font-family: monospace; margin-top: 1ex; white-space: pre;" onkeyup="setPreviewTimeout();" onchange="refreshPreview(true);">', $context['entire_file'], '</textarea><br />

Código: [Seleccione]
<input type="submit" name="submit" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled="disabled"', ' class="button_submit" />
                    <input type="hidden" name="filename" value="', $context['edit_filename'], '" />
                    <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />

Código: [Seleccione]
    <div class="padding righttext">
                        <input type="submit" name="submit" value="', $txt['theme_edit_save'], '"', $context['allow_save'] ? '' : ' disabled="disabled"', ' class="button_submit" />
                        <input type="hidden" name="filename" value="', $context['edit_filename'], '" />
                        <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
                    </div>


ThemeStrings.english.php ( Portuguese_pt/Portuguese_brazilian )

Pesquisar
Código: [Seleccione]
// Version: 2.0 RC5; Themes
Trocar por
Código: [Seleccione]
// Version: 2.0; Themes


Settings.english.php(Portuguese_PT,etc)

Pesquisar
Código: [Seleccione]
// Version: 2.0 RC5; Settings
Trocar por
Código: [Seleccione]
// Version: 2.0; Settings

Index.css (./themes/your_theme/css/)

pesquisar
Código: [Seleccione]
/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
    margin: 0 auto;
    min-width: 780px;
    max-width: 2300px;   
}

Trocar por
Código: [Seleccione]
/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
    margin: 0 auto;
    min-width: 764px;
    max-width: 2300px;
}

Código: [Seleccione]
/* A code block - maybe PHP. */
code.bbc_code
{
    display: block;
    font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
    font-size: x-small;
    background: #eef;
    border-top: 2px solid #999;
    border-bottom: 2px solid #999;
    line-height: 1.5em;
    padding: 3px 1em;
    overflow: auto;
    white-space: pre;
    /* Show a scrollbar after about 24 lines. */
    max-height: 24em;

Código: [Seleccione]
/* A code block - maybe PHP. */
code.bbc_code
{
    display: block;
    font-family: "dejavu sans mono", "monaco", "lucida console", "courier new", monospace;
    font-size: x-small;
    background: #eef;
    border-top: 2px solid #999;
    border-bottom: 2px solid #999;
    line-height: 1.5em;
    padding: 3px 1em;
    overflow: auto;
    white-space: nowrap;
    /* Show a scrollbar after about 24 lines. */
    max-height: 24em;
}

Código: [Seleccione]
dl.settings dt
{
    width: 48%;

Código: [Seleccione]
dl.settings dt
{
    width: 40%;


Código: [Seleccione]
dl.settings dd
{
    width: 48%;
    float: right;
    margin: 0 0 3px 0;
    padding: 0;
}

Código: [Seleccione]
dl.settings dd
{
    width: 56%;
    float: right;
    overflow: auto;
    margin: 0 0 3px 0;
    padding: 0;
}

Código: [Seleccione]
div.roundframe div.cat_bar
{
    background: #99abbf url(../images/theme/main_block.png) no-repeat 0 -240px;
}

Código: [Seleccione]
div.roundframe div.cat_bar
{
    background: #99abbf url(../images/theme/main_block.png) no-repeat 0 -240px;
    margin-bottom: 0;
}

Código: [Seleccione]
table.table_list a.collapse
{
    margin: 10px 5px 0 1em;
}

Código: [Seleccione]
table.table_list a.collapse
{
    margin: 10px 5px 0 1em;
    height: 31px;
    line-height: 31px;
}

Código: [Seleccione]
#guest_form .info
{
    padding: 4px 0 ;
}

Código: [Seleccione]
#guest_form .info
{
    padding: 4px 0 ;
    line-height: 1.3em;
}

Código: [Seleccione]
.navigate_section ul li
{
    float: left;
    padding: 0 0.5em 0 0;
    font-size: 0.95em;
}

Código: [Seleccione]
.navigate_section ul li
{
    float: left;
    padding: 0 0.5em 0 0;
    font-size: 0.95em;
}
.navigate_section ul li a
{
    white-space: pre;
}

Código: [Seleccione]
}
.inner img.smiley
{

Código: [Seleccione]
}
img.smiley
{

Código: [Seleccione]
/* Styles for the quick reply area.
---------------------------------------------------- */

/* The quick-reply area. Horizontal alignments go a bit wonky in IE6 and IE7 but is it really worth worrying about? */

Código: [Seleccione]
/* Styles for the quick reply area.
---------------------------------------------------- */

Código: [Seleccione]
#quickReplyOptions form textarea
{
    height: 100px;
    margin: 0.25em 0 1em 0;
}

Código: [Seleccione]
#quickReplyOptions form textarea
{
    height: 100px;
    width: 635px;
    max-width: 100%;
    min-width: 100%;
    margin: 0.25em 0 1em 0;
}

Código: [Seleccione]
/* Additional profile fields */
dl.register_form
{
    margin: 0;
    clear: right;
    /* overflow: auto; */
}

Código: [Seleccione]
/* Additional profile fields */
dl.register_form
{
    margin: 0;
    clear: right;
}

Código: [Seleccione]
#adm_container
{
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
}

Código: [Seleccione]
#main_container
{
    position: relative;
}

Código: [Seleccione]
#main_admsection
{
    margin-left: 172px;
    overflow: hidden;
}


Código: [Seleccione]
#main_admsection
{
    position: relative;
    left: 0;
    right: 0;
    overflow: hidden;
}

Código: [Seleccione]
#avatar_server_stored div
{
    float: left;
}

Código: [Seleccione]
#avatar_upload
{
    overflow: auto;
}

Código: [Seleccione]
#creator dd
{
    float: left;
    width: 55%;
    margin: 0 0 10px 2px;
}

Código: [Seleccione]
#creator dd
{
    float: right;
    width: 55%;
    margin: 0 0 10px 2px;
    overflow: auto;
}



IE6.css (./themes/your_theme/css/)
Pesquisar
Código: [Seleccione]
.codeheader, code.bbc_code
{
    width: 96%;
    margin: 0 auto;
}

Código: [Seleccione]
code.bbc_code
{
    white-space: normal;
}

Código: [Seleccione]
#forumposts h3.catbg
{
    clear: both;
}

Código: [Seleccione]
#quickReplyOptions form textarea
{
    width: 98%;
}

Código: [Seleccione]
#main_admsection
{
    height: 655px;
}

Código: [Seleccione]
#main_admsection
{
    height: 100%;
}


ie7.css

Código: [Seleccione]
h3.catbg input.input_check
{
    margin: 0 4px;
}

Adidionar antes
code.bbc_code
{
    
white-spacenormal;
}


Código: [Seleccione]
/* Overrides for the profile template
------------------------------------------------------- */
#basicinfo h4
{
    word-wrap: break-word;
}


Adicionar antes
Código: [Seleccione]
#quickReplyOptions form textarea
{
    width: 98%;
}

rtl.css

Pesquisar e apagar
Código: [Seleccione]
#main_admsection
{
    margin-right: 172px;
    margin-left: 0;
}