Advertisement:

Author Topic: [tip]update themes SMF RC5 to final version (curve default theme)  (Read 29383 times)

Offline kenet

  • SMF Hero
  • ******
  • Posts: 3,007
  • Gender: Male
    • Skinmod
Index.template

search

Code: [Select]
// Version: 2.0 RC5; index
remplace


Code: [Select]
/**
 * 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
 */



search

Code: [Select]
$settings['theme_version'] = '2.0 RC5';
remplace


Code: [Select]
$settings['theme_version'] = '2.0';


search

Code: [Select]
// 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" />';

remplace


Code: [Select]
// 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" />';



search

Code: [Select]
<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>

remplace


Code: [Select]
<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>



search

Code: [Select]
<div class="info">', $txt['login_or_register'], '</div>
remplace


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



search

Code: [Select]
<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>
remplace


Code: [Select]
<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


search

Code: [Select]
// Version: 2.0 RC5; Display
remplace


Code: [Select]
/**
 * 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
 */


search

Code: [Select]
<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>
remplace


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

search

Code: [Select]
<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 />
remplace


Code: [Select]
<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

search

Code: [Select]
// Version: 2.0 RC5; BoardIndex
remplace


Code: [Select]
/**
 * 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
 */

search

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

remplace


Code: [Select]
</tbody>';
search

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

remplace


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

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

search

Code: [Select]
}
        echo '
            </tbody>
            <tbody class="divider">

Add Before


Code: [Select]
echo '
            </tbody>';

search

Code: [Select]
if (!empty($settings['number_recent_posts']))
remplace


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


PersonalMessage.template

search

Code: [Select]
// Version: 2.0 RC5; PersonalMessage
remplace


Code: [Select]
/**
 * 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
 */


search

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

remplace


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


search

Code: [Select]
<span class="botslice"><span></span></span>
    </div>';

remplace


Code: [Select]
<span class="botslice"><span></span></span>
    </div><br class="clear" />';

search

Code: [Select]
<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>

remplace


Code: [Select]
<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>

search

Code: [Select]
<textarea name="reason" rows="4" cols="70" style="width: 80%;"></textarea>
remplace


Code: [Select]
<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

search

Code: [Select]
// Version: 2.0 RC5; MessageIndex
remplace


Code: [Select]
/**
 * 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
 */

search

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

remplace


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


search

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

remplace


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



Settings.template

search

Code: [Select]
// Version: 2.0 RC5; Settings
remplace


Code: [Select]
/**
 * 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

search

Code: [Select]
// Version: 2.0 RC5; Themes
remplace


Code: [Select]
/**
 * 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
 */


search

Code: [Select]
<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 />
remplace


Code: [Select]
<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 />
search

Code: [Select]
<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'], '" />

remplace


Code: [Select]
    <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/)

search

Code: [Select]
// Version: 2.0 RC5; Themes
remplace


Code: [Select]
// Version: 2.0; Themes


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


search

Code: [Select]
// Version: 2.0 RC5; Settings
remplace


Code: [Select]
// Version: 2.0; Settings



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

search

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

remplace


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

search

Code: [Select]
/* 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;

remplace


Code: [Select]
/* 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;
}

search

Code: [Select]
dl.settings dt
{
    width: 48%;

remplace


Code: [Select]
dl.settings dt
{
    width: 40%;

search

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

remplace


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

search

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

remplace


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

search

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

remplace


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

search

Code: [Select]
#guest_form .info
{
    padding: 4px 0 ;
}

remplace


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

search

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

remplace


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

search

Code: [Select]
}
.inner img.smiley
{

remplace


Code: [Select]
}
img.smiley
{

search

Code: [Select]
/* 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? */

remplace


Code: [Select]
/* Styles for the quick reply area.
---------------------------------------------------- */

search

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

remplace


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

search

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

remplace


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

search

Code: [Select]
#adm_container
{
    border-bottom: 1px solid #ccc;
    margin-bottom: 5px;
}

remplace


Code: [Select]
#main_container
{
    position: relative;
}

search

Code: [Select]
#main_admsection
{
    margin-left: 172px;
    overflow: hidden;
}

remplace


Code: [Select]
#main_admsection
{
    position: relative;
    left: 0;
    right: 0;
    overflow: hidden;
}

search

Code: [Select]
#avatar_server_stored div
{
    float: left;
}

añadir despues


Code: [Select]
#avatar_upload
{
    overflow: auto;
}

search

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

remplace


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


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


search

Code: [Select]
.codeheader, code.bbc_code
{
    width: 96%;
    margin: 0 auto;
}

Add After

Code: [Select]
code.bbc_code
{
    white-space: normal;
}

search

Code: [Select]
#forumposts h3.catbg
{
    clear: both;
}

Add After


Code: [Select]
#quickReplyOptions form textarea
{
    width: 98%;
}


search

Code: [Select]
#main_admsection
{
    height: 655px;
}

remplace


Code: [Select]
#main_admsection
{
    height: 100%;
}


ie7.css


search

Code: [Select]
h3.catbg input.input_check
{
    margin: 0 4px;
}

Add Before

Code: [Select]
code.bbc_code
{
    white-space: normal;
}

search

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

Add Before


Code: [Select]
#quickReplyOptions form textarea
{
    width: 98%;
}



rtl.css

search and delete

Code: [Select]
#main_admsection
{
    margin-right: 172px;
    margin-left: 0;
}
« Last Edit: June 12, 2011, 05:01:34 PM by kenet »


Thomas Alva Edison dijo:

    "No fracasé, sólo descubrí 999 maneras de como no hacer una bombilla."


Offline Antechinus

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,246
  • Master of BBC Abuse
Re: [tip]update themes SMF RC5 to final version
« Reply #1 on: June 12, 2011, 09:53:52 AM »
Good one. I'm going to merge this with my thread in Tips and Tricks. I just posted there because someone had a question over at Dziner Studio, but your list covers a lot more.

ETA: Done.
« Last Edit: June 12, 2011, 10:00:08 AM by Antechinus »

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: [tip]update themes SMF RC5 to final version
« Reply #2 on: June 12, 2011, 04:10:45 PM »
Great job! Thank you very much for the work on this.
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

MarkLeevE

  • Guest
Re: [tip]update themes SMF RC5 to final version
« Reply #3 on: June 12, 2011, 04:54:53 PM »
Thank you.. This Helped me a lot.. :)

Offline Deezel

  • Jr. Member
  • **
  • Posts: 208
  • Gender: Male
  • It Is What It Is
    • Owner/Admin
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #4 on: June 14, 2011, 03:30:39 PM »
Wow.... lotsa work to do i guess.... uuuugh!!!!

Offline IDunc

  • Jr. Member
  • **
  • Posts: 235
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #5 on: June 15, 2011, 01:36:19 PM »
Why is it necessary to update my theme from RC5 to 2.0?


Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,751
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #6 on: June 15, 2011, 02:04:38 PM »
for security and bug fixes

Offline zutzu

  • SMF Hero
  • ******
  • Posts: 2,925
  • Gender: Male
  • by Fireworks!
    • SMF Themes - Soporte - Mods
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #7 on: June 20, 2011, 04:07:41 AM »
good work friend   8)

Offline Crip

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,139
  • Gender: Male
  • C-4 QUAD
    • Cripzone
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #8 on: June 20, 2011, 09:46:04 AM »
thanks friend. ;)
I have become comfortably numb!


I remember my mother's prayers and they have always followed me.
   - Abraham Lincoln -


TOTM Winner. | Demo Site1on1 Theme Support

Offline Alex' Manson

  • Full Member
  • ***
  • Posts: 506
  • Gender: Male
  • dead and gone!
    • Sisko Hosting - FREE|PAID Hosting
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #9 on: June 20, 2011, 09:43:30 PM »
how did you manage to do this?
is there any program that can do it?
a website maybe?
if so, please tell us what is it.. :)

Offline kenet

  • SMF Hero
  • ******
  • Posts: 3,007
  • Gender: Male
    • Skinmod
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #10 on: June 21, 2011, 04:42:55 AM »
thanks friends.

how did you manage to do this?
is there any program that can do it?
a website maybe?
if so, please tell us what is it.. :)

I use the Beyond compare and patience.  ;)

version trail
« Last Edit: June 21, 2011, 04:46:56 AM by kenet »


Thomas Alva Edison dijo:

    "No fracasé, sólo descubrí 999 maneras de como no hacer una bombilla."


Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,751
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #11 on: June 21, 2011, 06:21:32 AM »
you can also use winmerge to compare/diff files and it is free.

Offline quebo

  • Semi-Newbie
  • *
  • Posts: 35
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #12 on: June 23, 2011, 04:16:22 PM »
in displaytemplate you should change cols="600" to cols="60" - it looks better ;-)

However, thanks for the nice job!

Offline quebo

  • Semi-Newbie
  • *
  • Posts: 35
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #13 on: June 23, 2011, 04:41:41 PM »
mmm problem persist with IE9

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,978
    • http://cbasites.net/
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #14 on: July 01, 2011, 09:41:58 PM »
in displaytemplate you should change cols="600" to cols="60" - it looks better ;-)

However, thanks for the nice job!

+1
why not update the installers/upgraders/updaters? 600cols by default is too bad...
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Offline cicka

  • Sophist Member
  • *****
  • Posts: 1,280
  • Gender: Female
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #15 on: July 09, 2011, 04:53:07 PM »
Thank you for this guide. It will save me a lot of time for later when I will upgrade my custom theme for Smf 2.0.

Offline Joomlamz

  • SMF Hero
  • ******
  • Posts: 2,630
  • Gender: Male
  • Suporte SmfPT
    • apllicmz on Facebook
    • apllicmz on GitHub
    • https://www.linkedin.com/in/aplic on LinkedIn
    • @aplichosting on Twitter
    • Webdesign
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #16 on: July 15, 2011, 05:50:30 PM »
thank you
good work



Offline Alex' Manson

  • Full Member
  • ***
  • Posts: 506
  • Gender: Male
  • dead and gone!
    • Sisko Hosting - FREE|PAID Hosting
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #17 on: July 25, 2011, 10:17:28 PM »
AZMaxda, what are you talking about, it doesn't fix anything this is just the manual upgrade from rc5 to 2.0 of the curve theme.

Offline smtek

  • Jr. Member
  • **
  • Posts: 175
    • TheTekWar
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #18 on: August 20, 2011, 06:36:16 AM »
can you update this theme to smf 2.0 final "ProCurve"  . Please
http://thetekwar.com

^ Your entry to the best tech community

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 50,751
Re: [tip]update themes SMF RC5 to final version (curve default theme)
« Reply #19 on: August 20, 2011, 06:52:04 AM »
you need to ask the author of that theme. this thread is not for update requests.