Index.template
search
// Version: 2.0 RC5; index
remplace
/**
* 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
$settings['theme_version'] = '2.0 RC5';
remplace
$settings['theme_version'] = '2.0';
search
// 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
// 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
<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
<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
<div class="info">', $txt['login_or_register'], '</div>
remplace
<div class="info">', sprintf($txt['welcome_guest'], $txt['guest_title']), '</div>
search
<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
<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
// Version: 2.0 RC5; Display
remplace
/**
* 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
<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
<textarea cols="600" rows="7" name="message" tabindex="', $context['tabindex']++, '"></textarea>
search
<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
<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
// Version: 2.0 RC5; BoardIndex
remplace
/**
* 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
</tbody>
<tbody class="content" id="category_', $category['id'], '_boards">';
remplace
</tbody>';
search
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
remplace
// Assuming the category hasn't been collapsed...
if (!$category['is_collapsed'])
{
echo '
<tbody class="content" id="category_', $category['id'], '_boards">';
search
}
echo '
</tbody>
<tbody class="divider">
Add Before
echo '
</tbody>';
search
if (!empty($settings['number_recent_posts']))
remplace
if (!empty($settings['number_recent_posts']) && (!empty($context['latest_posts']) || !empty($context['latest_post'])))
PersonalMessage.template
search
// Version: 2.0 RC5; PersonalMessage
remplace
/**
* 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
<div class="errorbox">
<strong>', $txt['error_while_submitting'], '</strong>
<ul>';
remplace
<div class="errorbox">
<strong>', $txt['error_while_submitting'], '</strong>
<ul class="reset">';
search
<span class="botslice"><span></span></span>
</div>';
remplace
<span class="botslice"><span></span></span>
</div><br class="clear" />';
search
<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
<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
<textarea name="reason" rows="4" cols="70" style="width: 80%;"></textarea>
remplace
<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
// Version: 2.0 RC5; MessageIndex
remplace
/**
* 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
// If Quick Moderation is enabled start the form.
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
remplace
// If Quick Moderation is enabled start the form.
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] > 0 && !empty($context['topics']))
search
// Finish off the form - again.
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] == 1 && !empty($context['topics']))
remplace
// Finish off the form - again.
if (!empty($context['can_quick_mod']) && $options['display_quick_mod'] > 0 && !empty($context['topics']))
Settings.template
search
// Version: 2.0 RC5; Settings
remplace
/**
* 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
// Version: 2.0 RC5; Themes
remplace
/**
* 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
<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
<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
<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
<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
// Version: 2.0 RC5; Themes
remplace
// Version: 2.0; Themes
Settings.english(spanish,etc) (./themes/your_theme/languajes/)
search
// Version: 2.0 RC5; Settings
remplace
// Version: 2.0; Settings
Index.css (./themes/your_theme/css/)
search
/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
margin: 0 auto;
min-width: 780px;
max-width: 2300px;
}
remplace
/* This division wraps the entire forum when a forum width is set. */
div#wrapper
{
margin: 0 auto;
min-width: 764px;
max-width: 2300px;
}
search
/* 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
/* 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
dl.settings dt
{
width: 48%;
remplace
dl.settings dt
{
width: 40%;
search
dl.settings dd
{
width: 48%;
float: right;
margin: 0 0 3px 0;
padding: 0;
}
remplace
dl.settings dd
{
width: 56%;
float: right;
overflow: auto;
margin: 0 0 3px 0;
padding: 0;
}
search
div.roundframe div.cat_bar
{
background: #99abbf url(../images/theme/main_block.png) no-repeat 0 -240px;
}
remplace
div.roundframe div.cat_bar
{
background: #99abbf url(../images/theme/main_block.png) no-repeat 0 -240px;
margin-bottom: 0;
}
search
table.table_list a.collapse
{
margin: 10px 5px 0 1em;
}
remplace
table.table_list a.collapse
{
margin: 10px 5px 0 1em;
height: 31px;
line-height: 31px;
}
search
#guest_form .info
{
padding: 4px 0 ;
}
remplace
#guest_form .info
{
padding: 4px 0 ;
line-height: 1.3em;
}
search
.navigate_section ul li
{
float: left;
padding: 0 0.5em 0 0;
font-size: 0.95em;
}
remplace
.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
}
.inner img.smiley
{
remplace
}
img.smiley
{
search
/* 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
/* Styles for the quick reply area.
---------------------------------------------------- */
search
#quickReplyOptions form textarea
{
height: 100px;
margin: 0.25em 0 1em 0;
}
remplace
#quickReplyOptions form textarea
{
height: 100px;
width: 635px;
max-width: 100%;
min-width: 100%;
margin: 0.25em 0 1em 0;
}
search
/* Additional profile fields */
dl.register_form
{
margin: 0;
clear: right;
/* overflow: auto; */
}
remplace
/* Additional profile fields */
dl.register_form
{
margin: 0;
clear: right;
}
search
#adm_container
{
border-bottom: 1px solid #ccc;
margin-bottom: 5px;
}
remplace
#main_container
{
position: relative;
}
search
#main_admsection
{
margin-left: 172px;
overflow: hidden;
}
remplace
#main_admsection
{
position: relative;
left: 0;
right: 0;
overflow: hidden;
}
search
#avatar_server_stored div
{
float: left;
}
aƱadir despues
#avatar_upload
{
overflow: auto;
}
search
#creator dd
{
float: left;
width: 55%;
margin: 0 0 10px 2px;
}
remplace
#creator dd
{
float: right;
width: 55%;
margin: 0 0 10px 2px;
overflow: auto;
}
IE6.css (./themes/your_theme/css/)
search
.codeheader, code.bbc_code
{
width: 96%;
margin: 0 auto;
}
Add After
code.bbc_code
{
white-space: normal;
}
search
#forumposts h3.catbg
{
clear: both;
}
Add After
#quickReplyOptions form textarea
{
width: 98%;
}
search
#main_admsection
{
height: 655px;
}
remplace
#main_admsection
{
height: 100%;
}
ie7.css
search
h3.catbg input.input_check
{
margin: 0 4px;
}
Add Before
code.bbc_code
{
white-space: normal;
}
search
/* Overrides for the profile template
------------------------------------------------------- */
#basicinfo h4
{
word-wrap: break-word;
}
Add Before
#quickReplyOptions form textarea
{
width: 98%;
}
rtl.css
search and delete
#main_admsection
{
margin-right: 172px;
margin-left: 0;
}
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.
Great job! Thank you very much for the work on this.
Thank you.. This Helped me a lot.. :)
Wow.... lotsa work to do i guess.... uuuugh!!!!
Why is it necessary to update my theme from RC5 to 2.0?
for security and bug fixes
good work friend 8)
thanks friend. ;)
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.. :)
thanks friends.
Quote from: Sisko Punk 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.. :)
I use the Beyond compare and patience. ;)
version trail (http://www.scootersoftware.com/)
you can also use winmerge to compare/diff files and it is free.
in displaytemplate you should change cols="600" to cols="60" - it looks better ;-)
However, thanks for the nice job!
mmm problem persist with IE9
Quote from: quebo 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!
+1
why not update the installers/upgraders/updaters? 600cols by default is too bad...
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.
thank you
good work
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.
can you update this theme to smf 2.0 final "ProCurve" . Please
you need to ask the author of that theme. this thread is not for update requests.
Sorry i dont mean that , but the theme i requested is something different as some codes mentioned does not exist in index.template.php and board index and other files mentioned does not exist except The css files.
then ask the theme author to look into the issue.
Quote from: Sisko Punk 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.
Sorry, it was a late night. I posted that reply on the wrong thread. Removed.