1
pw-kw
I'm looking for a div-theme master for xoops 2.2
  • 2009/10/20 12:08

  • pw-kw

  • Just popping in

  • Posts: 50

  • Since: 2007/2/1 8


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 ...

2
Mamba
Re: I'm looking for a div-theme master for xoops 2.2
  • 2009/10/20 12:26

  • Mamba

  • Moderator

  • Posts: 11378

  • Since: 2004/4/23


try to search in the Themes Gallery:

3
pw-kw
Re: I'm looking for a div-theme master for xoops 2.2
  • 2009/10/20 12:32

  • pw-kw

  • Just popping in

  • Posts: 50

  • Since: 2007/2/1 8


@ 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 ...

4
ghia
Re: I'm looking for a div-theme master for xoops 2.2
  • 2009/10/21 0:56

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


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:

<{
xoInboxCount assign=pmcount}>
<
a href="<{xoAppUrl viewpmsg.php}>">
<{if 
$pmcount}>

" alt="(<{$pmcount}>) <{$smarty.const.THEME_NOTREAD}>"/>
<{else}>

<
img src="<{xoImgUrl icons/users/inbox.png}>" alt="<{$smarty.const.THEME_MESSAGE}>"/>
<{/if}>
a>

=>

<{* 
xoInboxCount assign=pmcount *}>
<
a href="<{$xoops_url}>/viewpmsg.php">
<{* if 
$pmcount}>

/themes/ds_red/icons/users/inbox-full.png" alt="(<{$pmcount}>) <{$smarty.const.THEME_NOTREAD}>"/>
<{else *}>

<
img src="<{$xoops_url}>/themes/ds_red/icons/users/inbox.png" alt="<{$smarty.const.THEME_MESSAGE}>"/>
<{* /if *}>
a>

5
pw-kw
Re: I'm looking for a div-theme master for xoops 2.2
  • 2009/10/22 7:08

  • pw-kw

  • Just popping in

  • Posts: 50

  • Since: 2007/2/1 8


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

6
BJS3D
Re: I'm looking for a div-theme master for xoops 2.2
  • 2011/5/15 19:14

  • BJS3D

  • Just popping in

  • Posts: 7

  • Since: 2010/2/11


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

Login

Who's Online

523 user(s) are online (167 user(s) are browsing Support Forums)


Members: 0


Guests: 523


more...

Donat-O-Meter

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

Latest GitHub Commits