[ Reload ]   [ Source ]  [ Top | Page List | Search | Recent | Backup | Help ]

Counter: 31284, today: 1, yesterday: 5
XOOPSCubeLegacy/ThemeCompatibility

Theme Compatibility

You don't need to modify your favorite Xoops 2.0.16 theme to use it with your new XOOPS Cube 2.1 Legacy

Please read the XOOPS Cube Wiki about migration

Xoops 2.0.16 use a bottom blocks hack which is not present on Legacy. This is not a problem and you can keep it for compatibility. For a light theme and faster render you can remove from your theme.html the hack which is similar to the following tableless code:


<{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright or $xoBlocks.page_bottomcenter}>
<!-- Start Xoops 2.0.16 Bottom Blocks -->
<div id="bottomcolumns">
    <{if $xoBlocks.page_bottomcenter}>
    <!-- Start Blocks Bottom Center-Center -->
    <{foreach from=$xoBlocks.page_bottomcenter item=block}>
    <div id="bottomCcolumn">
    <div class="blockTitle"><{$block.title}></div>
    <div class="blockContent"><{$block.content}></div>
    </div>
    <{/foreach}>
    <!-- End Blocks Bottom Center-Center -->
    <{/if}>    

    <{if $xoBlocks.page_bottomleft or $xoBlocks.page_bottomright}>
    
    <!-- Start Blocks Bottom Center Left -->
    <{foreach from=$xoBlocks.page_bottomleft item=block}>
    <div id="bottomLcolumn">
    <div class="blockTitle"><{$block.title}></div>
    <div class="blockContent"><{$block.content}></div>
    </div>
    <{/foreach}>
    <!-- End Blocks Bottom Center Left -->
    
    <!-- Start Blocks Bottom Center Right -->
    <{foreach from=$xoBlocks.page_bottomright item=block}>
    <div id="bottomRcolumn">
    <div class="blockTitle"><{$block.title}></div>
    <div class="blockContent"><{$block.content}></div>
    </div>
    <{/foreach}>
    <!-- End Blocks Bottom Center Right -->
    
    <{/if}>
</div>
<!-- End Xoops 2.0.16 Bottom Blocks -->

With or without Xoops 2.0.16 bottom blocks hack, your theme will render nice within the new XOOPS Cube 2.1 Legacy

There's a last code modification. Please, check your stylesheet (commonly style.css) for the following classes:


/*----------------- Xoops.org 2.0.16 Bottom Columns ----------------------- */

#bottomcolumns {float:left; width:100%;}

#bottomCcolumn {width:100%; float:left; margin-top:10px;}
#bottomCcolumn .blockTitle {}
#bottomCcolumn .blockContent {}

#bottomLcolumn {width: 49%; float:left; margin-top:10px;}
#bottomLcolumn .blockTitle {}
#bottomLcolumn .blockContent {}

#bottomRcolumn {width: 49%; float:right; margin-top:10px;}
#bottomRcolumn .blockTitle {}
#bottomRcolumn .blockContent {}

Again, this is based on a tableless code that i'm using but you should easily find the keyword 'bottom'.

Finally you're free to leave or remove that code. Anyway, your theme will render nice on XOOPS Cube 2.1 Legacy

You can also create a manifesto.ini.php to provide informations/credits that are visibe from the XOOPS Cube Legacy cpanel.

Create a manifesto.ini.php under your theme folder
.../themes/mytheme/manifesto.ini.php

with the following code:


<?php
/**

[Manifesto]
Name="My Theme Name goes Here"
Depends=Legacy_RenderSystem,legacy
Url="http://xoopscube.org"
Version="1.0"

[Theme]
RenderSystem=Legacy_RenderSystem
Format="XOOPS2 Legacy Style"
Author=My Name goes Here
ScreenShot="screenshot.png"
Description="My Theme description goes here"
W3C=NG

Licence="http://creativecommons.org/licenses/by-nc-nd/2.0/"

*/
?>


Finally, modify the code above to match your information!
Edit: Name, Url, Version, Author, Description and License


Reload   Diff Source Attach Attach List   Wiki Top Page List Search Resent Chenges Backup   Help   RSS feed
Page name:XOOPSCubeLegacy/ThemeCompatibility
Author:gigamaster [d/6Up68wGkD.] - 2007/12/07 04:25:32 JST(3513d)
Last edit:Anonymous - 2007/12/07 04:25:32 JST(3513d)
Editers:Registered Users
Back Link:XOOPSCubeLegacy(2203d)

Comment
The comments are owned by the poster. We aren't responsible for their content.

Activity | Contributions



Who's Online
13 user(s) are online (6 user(s) are browsing Wiki)

Members: 0
Guests: 13

more...

Welcome | News | Overview | Documentation | Forum | Tutorialstop
Brasilian | French | German | Greek | Japanese | Korean | Russian | T-Chinese
Powered by XOOPS Cube © 2001-2011 The XOOPS Cube Project