MyBBThemes Community

Full Version: Updating Themes for 1.2.10 User Guide
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
Hello. This User Guide will give you instructions on how to update your 1.2.9 themes to work with 1.2.10. :)

Instructions

1) Go to your Admin Control Panel (ACP). Log in.
2) Go to Templates (down the left hand side) and click Find Updated.
This will show you all the templates for each theme that can be updated. All of these are not necessary.
3) On each theme's templates, you will find these templates:
  1. index - Revert Required
  2. index_boardstats - Not Required

(The boardstats is not required, so if it is not there don't worry about it)
4) Click revert. You will have to keep going into Find Updated Templates because it will redirect you to the main templates list.

MyBB Community Wrote:"Revert required" indicates that for this template to work correctly with MyBB 1.2.10 you'll either need to revert it to the default or modify your custom template to include the changes in the default. If a revert is not required your custom version of the template should work perfectly fine.

After identifying changed templates using the tool you can either revert your custom template to the default (deleting your custom one) or use the "diff" tool to perform a difference analysis on your custom template and the default.

Once the templates are reverted, you're done!
When performing the update to 1.2.10 if you have a rounded cornered theme, the Board Stats box at the bottom of the index will no longer be rounded. Follow the instructions below to make it rounded again..

Instructions
1) ACP > Templates > *Your Template Set* > Index Templates > index_boardstats

Replace the entire template with this:
Code:
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
    <tr>
        <tbody>

<tr>
<td align="left"><img src="{$theme['imgdir']}/cat_l.gif" alt="" border="0"></td>
<td style="background: url({$theme['imgdir']}/cat_tbg.gif) repeat-x" align="center" width="100%"><div class="expcolimage"><img src="{$theme['imgdir']}/collapse{$collapsedimg['boardstats']}.gif" id="boardstats_img" class="expander" alt="[-]" /></div>
<span class="thead"><div style="text-align: left;"><strong>{$lang->boardstats}</strong></div></span>
</td>
<td align="right"><img src="{$theme['imgdir']}/cat_r.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tbody style="{$collapsed['boardstats_e']}" id="boardstats_e">
{$whosonline}
{$birthdays}
{$forumstats}
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" align="center" width="100%">
    <tr>
        <tbody>

<tr>
<td align="left"><img src="{$theme['imgdir']}/cat_lb.gif" alt="" border="0"></td>
<td style="background: url({$theme['imgdir']}/cat_tbgb.gif) repeat-x" align="center" width="100%">
</td>
<td align="right"><img src="{$theme['imgdir']}/cat_rb.gif" alt="" border="0"></td>
</tr>
</tbody>
</table>
<br />
Great work, this'll sure help me out.
I followed this, and it kinda worked...but now *nothing* has rounded corners.

Little help please?
What theme were you using before you did the template reverts? This revert should only effect the rounded corners on the board stats box on your index, it changes no other template.

Maybe you did something to the templates ?
Using Fusion. And the no-rounded-corners-anywhere problem is probably because before I started looking for help, I deleted the theme from the AdminCP thinking a re-import would be in order. After that, the only way to import it again is to tell it both "ignore version compatibility" and "do not import custom templates"...and without those templates associated with the theme, it doesn't apply the rounded corners.

Removing the theme seems to leave the theme's custom templates in the system, albeit not associated with any theme. If there was an easy way to re-associate the leftover templates to the imported-without-custom-templates Fusion Theme, the problem would just about be solved.
Ok, when you delete the Fusion theme, you need to go into your ACP > Templates > Modify / Delete area.

Find Fusion Templates and click the Delete button. It should ask you if you want to delete it, and you click Yes.

Make sure Fusion has already been deleted from the Theme Manager. Now you should be able to re-import. ;)
Nope, nothing changed from before.

If I try to Import the theme *with* its custom templates, I get:

Code:
MySQL error: 1366
Incorrect integer value: '' for column 'version' at row 1
Query: INSERT INTO mybb_templates (title,template,sid,version,status,dateline) VALUES ('report_thanks','\n\n\n{$headerinclude}\n\n\n
\n\n\n\n\n
\n
\n
\n{$lang->thank_you}\n

    {$lang->post_reported}

\n

\n
\n \n
\n
\n\n','7','','','1198541935')
And you deleted the template set?
Yes, I did.
Pages: 1 2 3
Reference URL's