Apdejt tema sa RC5 na 2.0 verziju

Started by Dzonny, June 12, 2011, 10:30:58 AM

Previous topic - Next topic

Dzonny

Evo malog trika za autore tema koji žele da teme za RC5 apdejtuju na 2.0 verzije.
Autor ovog tuta je kenet.




Index.template

Nadjite

// Version: 2.0 RC5; index

zamenite sa


/**
* 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
*/




Nadjite

$settings['theme_version'] = '2.0 RC5';

zamenite sa


$settings['theme_version'] = '2.0';



Nadjite

// 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" />';


zamenite sa


// 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" />';




Nadjite

<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>


zamenite sa


<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>




Nadjite

<div class="info">', $txt['login_or_register'], '</div>

zamenite sa


<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>




Nadjite

<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>

zamenite sa


<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


Nadjite

// Version: 2.0 RC5; Display

zamenite sa


/**
* 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
*/



Nadjite

<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>

zamenite sa


<textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea>


Nadjite

<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 />

zamenite sa


<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

Nadjite

// Version: 2.0 RC5; BoardIndex

zamenite sa


/**
* 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
*/


Nadjite

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


zamenite sa


</tbody>';

Nadjite

// Assuming the category hasn't been collapsed...
        if (!$category['is_collapsed'])
        {


zamenite sa


// Assuming the category hasn't been collapsed...
        if (!$category['is_collapsed'])
        {

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


Nadjite

}
        echo '
            </tbody>
            <tbody class="divider">


Pre toga dodajte


echo '
            </tbody>';


Nadjite

if (!empty($settings['number_recent_posts']))

zamenite sa


if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))




PersonalMessage.template

Nadjite

// Version: 2.0 RC5; PersonalMessage

zamenite sa


/**
* 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
*/



Nadjite

<div class="errorbox">
    <strong>', $txt['error_while_submitting'], '</strong>
    <ul>';


zamenite sa


<div class="errorbox">
    <strong>', $txt['error_while_submitting'], '</strong>
    <ul class="reset">';



Nadjite

<span class="botslice"><span></span></span>
    </div>';


zamenite sa


<span class="botslice"><span></span></span>
    </div><br class="clear" />';


Nadjite

<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>


zamenite sa


<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>


Nadjite

<textarea name="reason" rows="4" cols="70" style="width: 80%;"></textarea>

zamenite sa


<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

Nadjite

// Version: 2.0 RC5; MessageIndex

zamenite sa


/**
* 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
*/


Nadjite


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


zamenite sa



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



Nadjite


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


zamenite sa


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





Settings.template

Nadjite

// Version: 2.0 RC5; Settings

zamenite sa


/**
* 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

Nadjite

// Version: 2.0 RC5; Themes

zamenite sa


/**
* 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
*/



Nadjite

<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 />

zamenite sa


<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 />

Nadjite

<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'], '" />


zamenite sa


    <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(spanish,etc) (./themes/your_theme/languajes/)

Nadjite

// Version: 2.0 RC5; Themes

zamenite sa


// Version: 2.0; Themes




Settings.english(spanish,etc) (./themes/your_theme/languajes/)


Nadjite

// Version: 2.0 RC5; Settings

zamenite sa


// Version: 2.0; Settings





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

Nadjite

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


zamenite sa


/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
    margin: 0 auto;
    min-width: 764px;
    max-width: 2300px;
}


Nadjite

/* 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;


zamenite sa


/* 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;
}


Nadjite

dl.settings dt
{
    width: 48%;


zamenite sa


dl.settings dt
{
    width: 40%;


Nadjite

dl.settings dd
{
    width: 48%;
    float: right;
    margin: 0 0 3px 0;
    padding: 0;
}


zamenite sa


dl.settings dd
{
    width: 56%;
    float: right;
    overflow: auto;
    margin: 0 0 3px 0;
    padding: 0;
}


Nadjite

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


zamenite sa


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


Nadjite

table.table_list a.collapse
{
    margin: 10px 5px 0 1em;
}


zamenite sa


table.table_list a.collapse
{
    margin: 10px 5px 0 1em;
    height: 31px;
    line-height: 31px;
}


Nadjite

#guest_form .info
{
    padding: 4px 0 ;
}


zamenite sa


#guest_form .info
{
    padding: 4px 0 ;
    line-height: 1.3em;
}


Nadjite

.navigate_section ul li
{
    float: left;
    padding: 0 0.5em 0 0;
    font-size: 0.95em;
}


zamenite sa


.navigate_section ul li
{
    float: left;
    padding: 0 0.5em 0 0;
    font-size: 0.95em;
}
.navigate_section ul li a
{
    white-space: pre;
}


Nadjite

}
.inner img.smiley
{


zamenite sa


}
img.smiley
{


Nadjite

/* 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? */


zamenite sa


/* Styles for the quick reply area.
---------------------------------------------------- */


Nadjite

#quickReplyOptions form textarea
{
    height: 100px;
    margin: 0.25em 0 1em 0;
}


zamenite sa


#quickReplyOptions form textarea
{
    height: 100px;
    width: 635px;
    max-width: 100%;
    min-width: 100%;
    margin: 0.25em 0 1em 0;
}


Nadjite

/* Additional profile fields */
dl.register_form
{
    margin: 0;
    clear: right;
    /* overflow: auto; */
}


zamenite sa


/* Additional profile fields */
dl.register_form
{
    margin: 0;
    clear: right;
}


Nadjite

#adm_container
{
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
}


zamenite sa


#main_container
{
    position: relative;
}


Nadjite

#main_admsection
{
    margin-left: 172px;
    overflow: hidden;
}


zamenite sa


#main_admsection
{
    position: relative;
    left: 0;
    right: 0;
    overflow: hidden;
}


Nadjite

#avatar_server_stored div
{
    float: left;
}


añadir despues


#avatar_upload
{
    overflow: auto;
}


Nadjite

#creator dd
{
    float: left;
    width: 55%;
    margin: 0 0 10px 2px;
}


zamenite sa


#creator dd
{
    float: right;
    width: 55%;
    margin: 0 0 10px 2px;
    overflow: auto;
}




IE6.css (./themes/your_theme/css/)


Nadjite

.codeheader, code.bbc_code
{
    width: 96%;
    margin: 0 auto;
}


Posle toga dodajte

code.bbc_code
{
    white-space: normal;
}


Nadjite

#forumposts h3.catbg
{
    clear: both;
}


Posle toga dodajte


#quickReplyOptions form textarea
{
    width: 98%;
}



Nadjite

#main_admsection
{
    height: 655px;
}


zamenite sa


#main_admsection
{
    height: 100%;
}




ie7.css


Nadjite

h3.catbg input.input_check
{
    margin: 0 4px;
}


Pre toga dodajte

code.bbc_code
{
    white-space: normal;
}


Nadjite

/* Overrides for the profile template
------------------------------------------------------- */
#basicinfo h4
{
    word-wrap: break-word;
}


Pre toga dodajte


#quickReplyOptions form textarea
{
    width: 98%;
}





rtl.css

Nadjite i uklonite

#main_admsection
{
    margin-right: 172px;
    margin-left: 0;
}


Advertisement: