xoops forums

pw-kw

Just popping in
Posted on: 2009/10/20 12:08
pw-kw
pw-kw (Show more)
Just popping in
Posts: 50
Since: 2007/2/1 8
#1

I'm looking for a div-theme master for xoops 2.2

Hi community,

I'd like to re-new my table-theme into a div-theme for my XOOPS 2.2.6 version. Can anybody advise a theme?

Thanks a lot for help ...

Mamba

Moderator
Posted on: 2009/10/20 12:26
Mamba
Mamba (Show more)
Moderator
Posts: 10990
Since: 2004/4/23
#2

Re: I'm looking for a div-theme master for xoops 2.2

try to search in the Themes Gallery:

pw-kw

Just popping in
Posted on: 2009/10/20 12:32
pw-kw
pw-kw (Show more)
Just popping in
Posts: 50
Since: 2007/2/1 8
#3

Re: I'm looking for a div-theme master for xoops 2.2

@ mamba - thanks a lot - I've searched in the themes-gallery -

but, perhaps I'm blind, I can't see a section for 2.2 themes .... and I hoped, somebody can advise a good and bug-free master-theme ...

ghia

Community Support Member
Posted on: 2009/10/21 0:56
ghia
ghia (Show more)
Community Support Member
Posts: 4954
Since: 2008/7/3 1
#4

Re: I'm looking for a div-theme master for xoops 2.2

There is not made a distinction for the 2.2.x themes.
In principle everything from old works.
The newer contains specific tags as xoAppUrl and xoImgUrl, which are not supported by 2.2.x, but these can be edited for backwards compatibillity.
Replace eg
<{xoAppUrl /images/logo.png}>

by
<{$xoops_url}>/images/logo.png

and
<{xoImgUrl img/xoops_logo.png}>

by
<{$xoops_imageurl}>img/xoops_logo.png

Watch out for
<{xoAppUrl /user.php op=login}>

=>
<{$xoops_url}>/user.php?op=login
Other replacements are:
$xoBlocks.canvas_left => $xoBlocks.canvas_left
$xoBlocks.canvas_right => $xoBlocks.canvas_right
$xoBlocks.page_topcenter => $xoBlocks.page_topcenter
$xoBlocks.page_topleft => $xoBlocks.page_topleft
$xoBlocks.page_topright => $xoBlocks.page_topright
$xoBlocks.page_bottomcenter => $xoBlocks.page_bottomcenter
$xoBlocks.page_bottomleft => $xoBlocks.page_bottomleft
$xoBlocks.page_bottomright => $xoBlocks.page_bottomright

In some themes:
<{assign var=theme_name value=$xoops_rootpath|cat:'/themes/'|cat:$xoops_theme}>
<{
assign var=theme_tpl value=$theme_name|cat:'/tpl'}>
=>
<{assign var=theme_name value=$xoTheme->folderName}>
<{
assign var=theme_tpl value=$xoTheme->folderName|cat:'/tpl'}>


Comment out messagebox indicator:
<!-- pour ma messagerie -->
<{
xoInboxCount assign=pmcount}>
<
a href="<{xoAppUrl viewpmsg.php}>">
<{if 
$pmcount}>
<!-- 
si j'ai des messages -->
<img src="<{xoImgUrl icons/users/inbox-full.png}>" alt="(<{$pmcount}>) <{$smarty.const.THEME_NOTREAD}>"/>
<{else}>
<!-- si je n'
ai pas de message -->
<
img src="<{xoImgUrl icons/users/inbox.png}>" alt="<{$smarty.const.THEME_MESSAGE}>"/>
<{/if}>
</
a>
<!-- 
fin de ma messagerie -->

=>
<!-- pour ma messagerie -->
<{* 
xoInboxCount assign=pmcount *}>
<
a href="<{$xoops_url}>/viewpmsg.php">
<{* if 
$pmcount}>
<!-- 
si j'ai des messages -->
<img src="<{$xoops_url}>/themes/ds_red/icons/users/inbox-full.png" alt="(<{$pmcount}>) <{$smarty.const.THEME_NOTREAD}>"/>
<{else *}>
<!-- si je n'
ai pas de message -->
<
img src="<{$xoops_url}>/themes/ds_red/icons/users/inbox.png" alt="<{$smarty.const.THEME_MESSAGE}>"/>
<{* /if *}>
</
a>
<!-- 
fin de ma messagerie -->

pw-kw

Just popping in
Posted on: 2009/10/22 7:08
pw-kw
pw-kw (Show more)
Just popping in
Posts: 50
Since: 2007/2/1 8
#5

Re: I'm looking for a div-theme master for xoops 2.2

@ ghia - thanks a lot for help ....

BJS3D

Just popping in
Posted on: 2011/5/15 19:14
BJS3D
BJS3D (Show more)
Just popping in
Posts: 7
Since: 2010/2/11
#6

Re: I'm looking for a div-theme master for xoops 2.2

Thank you for this. It's amazing what a little code change can accomplish. Worked just fine in 2.5.x as well.