1
snow77
How to upgrade themes to 2.0.14
  • 2006/8/29 19:36

  • snow77

  • Just can't stay away

  • Posts: 864

  • Since: 2003/7/23


1- Open the theme.html of the default theme found in XOOPS V.2.0.14 with an html editor or text editor that shows you the code line numbers.

2- Select the centercolumn of the default theme in design view if you can or select line numbers #47- #102, copy this selection

* the centercolumn starts with this tag:
<td id ="centercolumn">
and ends with this tag
td>
right before where it says
<{if $xoops_showrblock == 1}>


3- Open your theme.html and select the centercolumn replacing the code with the one copied from the 2.0.14 default one.

3.1- Another way way would be to add this code:

<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
        <
table cellspacing="0">
        <{if 
$xoBlocks.page_bottomcenter}>
        <
tr><td id="bottomCcolumn" colspan="2">
            <{foreach 
from=$xoBlocks.page_bottomcenter item=block}><{include file="default/theme_blockcenter_c.html"}><{/foreach}>
            td>
        tr>
        <{/if}>
        <{if 
$xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
        <
tr>
            <
td id="bottomLcolumn">
                <{foreach 
from=$xoBlocks.page_bottomleft item=block}><{include file="default/theme_blockcenter_l.html"}><{/foreach}>
            td>
            <
td id="bottomRcolumn">
                <{foreach 
from=$xoBlocks.page_bottomright item=block}><{include file="default/theme_blockcenter_r.html"}><{/foreach}>
            td>
        tr>
        <{/if}>
        table>
        <{/if}>


right after:

<div id="content">
          <{
$xoops_contents}>
        div>


4. The above procedure would leave your theme.html upgraded, now we need to add the extra styles for the new blocks. Open the style.css of the theme you want to upgrade and add the following styles:

#bottomCcolumn {padding: 0px 3px 1px 3px;}
#bottomCcolumn .blockTitle {padding: 3px; color: #639ACE; font-weight: bold; margin-top: 0px; margin-right: 0px;  margin-left: 0px;}
#bottomCcolumn .blockContent {border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom: 1px solid #dddddd; padding: 3px; margin-right: 0px;  margin-left: 0px; margin-bottom: 2px; line-height: 120%;}

#bottomLcolumn,  #bottomRcolumn {
    
width50%; padding0px 3px 0px 0px;
}
#bottomLcolumn .blockTitle, #bottomRcolumn .blockTitle {
    
padding3pxcolor#639ACE; font-weight: bold; margin-top: 0px;
}
#bottomLcolumn .blockContent, #bottomRcolumn .blockContent {
    
border-left1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom: 1px solid #dddddd; padding: 3px; margin-left: 2px; margin-right: 3px; margin-bottom: 2px; line-height: 120%;
}


this is just a rough draft of the additional styles used extracted from the 2.0.14 default theme style.css, improvable in many ways but a fast way to get the new blocks working.

it is recommended you first open the files of the default theme of XOOPS 2.0.14 before starting to upgrade your old one so you can get a global overwiew of the changes you will make.

2
Mantooth
Re: How to upgrade themes to 2.0.14
  • 2006/8/29 19:55

  • Mantooth

  • Friend of XOOPS

  • Posts: 189

  • Since: 2004/11/2


Thanks. That's very helpful. If that code is added in to a theme, will it still work on XOOPS 2.2.4?
...


I hate Mortal Kombat

3
msdana
Re: How to upgrade themes to 2.0.14
  • 2006/8/29 21:09

  • msdana

  • Just can't stay away

  • Posts: 817

  • Since: 2005/12/11


Quote:
If that code is added in to a theme, will it still work on XOOPS 2.2.4?


It should work, but won't take advantage of the collapse-able Notification box. I've tested my 2.0.14 themes on 2.2.4 and they seem to work fine.

HTH
[size=x-small]If God is watching us, the least we can do is be entertaining.[/size]
Graphic Worx : Xoops Themes

4
davidl2
Re: How to upgrade themes to 2.0.14
  • 2006/12/9 9:43

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


Very useful indeed! Thanks!

5
spadre
Re: How to upgrade themes to 2.0.14
  • 2007/4/13 16:41

  • spadre

  • Just popping in

  • Posts: 4

  • Since: 2007/4/13


Useful! Thanks for the code man.

6
davidl2
Re: How to upgrade themes to 2.0.14
  • 2007/4/13 16:50

  • davidl2

  • XOOPS is my life!

  • Posts: 4843

  • Since: 2003/5/26


True - it is a useful topic - but I hope you were not just bumping it for your search engine link....

7
spadre
Re: How to upgrade themes to 2.0.14
  • 2007/4/20 17:34

  • spadre

  • Just popping in

  • Posts: 4

  • Since: 2007/4/13


I really meant that!

Login

Who's Online

362 user(s) are online (250 user(s) are browsing Support Forums)


Members: 0


Guests: 362


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits