1
demian
Missing Bottom Block in theme
  • 2009/12/18 17:20

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


i found a nice theme that i would like to use in my site

http://hello.oceannet.jp/?xoops_theme_select=mambo_taste

donwload: http://oceannet.jp/files/theme/mambo_taste.zip

can anyone help me to add missing bottom block - (bl bc br) to this theme
my coding skill is not good..

TQ..Help

DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<{$xoops_langcode}>" lang="<{$xoops_langcode}>">
<
head>
<
meta http-equiv=content-type content="text/html; charset=<{$xoops_charset}>" />
<
meta http-equiv="content-language" content="<{$xoops_langcode}>" />
<
meta name="robots" content="<{$xoops_meta_robots}>" />
<
meta name="keywords" content="<{$xoops_meta_keywords}>" />
<
meta name="description" content="<{$xoops_meta_description}>" />
<
meta name="rating" content="<{$xoops_meta_rating}>" />
<
meta name="author" content="<{$xoops_meta_author}>" />
<
meta name="copyright" content="<{$xoops_meta_copyright}>" />
<
meta name="generator" content="XOOPS" />
<
title><{$xoops_sitename}> - <{$xoops_pagetitle}>title>
<
link href="<{$xoops_url}>/favicon.ico" rel="SHORTCUT ICON" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_url}>/xoops.css" />
<
link rel="stylesheet" type="text/css" media="all" href="<{$xoops_themecss}>" />

<{
$xoops_module_header}>
<
script type="text/javascript">

script>
head>
<
body>
<
table width="100%" border="0" cellspacing="0" cellpadding="0">
  <
tr bgcolor=#202020>
    
<td width="25">&nbsp;td>
    <
td width="170"><img src="<{$xoops_imageurl}>top.jpg">td>
    <
td id="header1"><img src="<{$xoops_imageurl}>logo.gif">td>
    <
td width="170" id="header2">
    <
EMBED src="<{$xoops_imageurl}>clock.swf" quality=high WIDTH=90 HEIGHT=90 bgcolor=#202020 menu=false>
    
td>
  tr>
  <
tr>
    <
td width="25" id="headerbar"><img src="<{$xoops_imageurl}>mark.gif">td>
    <
td width="170" id="headerbar">&nbsp;td>
    <
td id="headerbar"><img src="<{$xoops_imageurl}>mark.gif"><a href="<{$xoops_url}>/modules/xcgal/">&nbsp;ORIGINAL THEMEa>td>
    <
td width="170" id="headerbar">&nbsp;td>
  tr>
table>


<
table cellspacing="0">

    <
tr>
      <
td width=25 bgcolor=#F4F4F4> 

      
<td id="leftcolumn">
        
        <{foreach 
item=block from=$xoops_lblocks}>
        <{if 
$block.title|regex_replace:"/.*none/":"none" ne "none"}>
        <
div class="blockTitle"> :: <{$block.title}>div>
        <{/if}>
        <
div class="blockContent"><{$block.content}>div>
        <{/foreach}>
        

      td>

      <
td id="centercolumn">

        
        <{if 
$xoops_showcblock == 1}>

        <
table cellspacing="0">
          <
tr>
            <
td id="centerCcolumn" colspan="2">

            
            <{foreach 
item=block from=$xoops_ccblocks}>
            <{if 
$block.title|regex_replace:"/.*none/":"none" ne "none"}>
            <
div class="blockTitle"><{$block.title}>div>
            <{/if}>
            <
div class="blockContent"><{$block.content}>div>
            <{/foreach}>
            

            td>
          tr>
          <
tr>
            <
td id="centerLcolumn">

            
              <{foreach 
item=block from=$xoops_clblocks}>
              <
div style="padding: 0px 0px 0px 8px;">
              <
div class="blockTitle"><{$block.title}>div>
              <
div class="blockContent"><{$block.content}>div>
              div>
              <{/foreach}>
            

            td><td id="centerRcolumn">

            
              <{foreach 
item=block from=$xoops_crblocks}>
              <
div style="padding: 0px 5px 0px 0px;">
              <
div class="blockTitle"><{$block.title}>div>
              <
div class="blockContent"><{$block.content}>div>
              div>
              <{/foreach}>
            

            td>
          tr>
        table>

        <{/if}>
        

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

      td>

      <{if 
$xoops_showrblock == 1}>

      <
td id="rightcolumn">
        
        <{foreach 
item=block from=$xoops_rblocks}>
        <
div class="blockTitle"> :: <{$block.title}>div>
        <
div class="blockContent"><{$block.content}>div>
        <{/foreach}>
        
      td>

      <{/if}>

    tr>
  table>

  <
table cellspacing="0">
    <
tr id="footerbar">
      <
td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" />a>td>
    tr>
  table>
body>
html>



body {colorblackbackgroundwhitemargin0padding0;}

table {width100%; margin5padding5font-size11px}
table td {padding0border-width0vertical-aligntopfont-familyVerdanaArialHelveticasans-serifosaka;}

{color#333333; text-decoration: none; background-color: transparent;}
a:hover {color#ff6600;}

h1 {}
h2 {}
h3 {}
h4 {}
h5 {}
ul margin2pxpadding2px; list-styledecimal insidetext-alignleft;}
li margin-left2px; list-stylesquare insidecolor#2F5376}

input.formButton {}

.
item {border1px solid #cccccc; margin:1px 6px;}
.itemHead {padding3pxbackground-color#999999; color: #FFFFFF;}
.itemInfo {text-alignrightpadding3pxbackground-color#efefef}
.itemTitle a {font-size110%; font-weightboldfont-variantsmall-capscolor#ffffff; background-color: transparent;}
.itemPoster {}
.
itemPostDate {}
.
itemStats {}
.
itemBody {padding-left12px;}
.
itemText {margin-top5pxmargin-bottom5pxline-height150%; color:#111111;}
.itemText a{color:#000000;text-decoration: underline;}
.itemText:first-letter {font-size150%; font-weightbold;}
.
itemFoot {text-alignrightpadding3pxbackground-color#efefef}
.itemAdminLink {font-size90%;}
.
itemPermaLink {font-size90%;}

th {background-color#2F5376; color: #FFFFFF; padding : 2px; vertical-align : middle; font-family: Verdana, Arial, Helvetica, sans-serif, osaka;}

td#header1 {background-color: #202020; vertical-align: middle; text-align:left; border-right:1px solid #DCDCDC;}
td#header2 {background-color: #202020; vertical-align: middle; text-align:center;}
td#headerbar {border-top:1px solid #dcdcdc;border-right:1px solid #dcdcdc;border-bottom:1px solid #dcdcdc; background-color: #FFFFFF; height:30px; vertical-align: middle; font-size:11px;}

td#leftcolumn {width: 170px; border-right: 1px solid #dcdcdc; border-left: 1px solid #dcdcdc; background:#F4F4F4;}
td#leftcolumn th {background-color: #2F5376; color: #FFFFFF; vertical-align: middle;}
td#leftcolumn div.blockTitle {padding: 3px; background-color: #f4f4f4; color: #CC3300; font-weight: bold;}
td#leftcolumn div.blockContent {padding: 3px 3px 10px 3px; border-bottom:1px solid #DCDCDC;}

#mainmenu a {text-align:left; display: block; margin: 0; padding: 4px;}
#mainmenu a.menuTop {padding-left: 3px;}
#mainmenu a.menuMain {padding-left: 3px;}
#mainmenu a.menuSub {padding-left: 9px;}

#usermenu a {text-align:left; display: block; margin: 0; padding: 4px;}
#usermenu a.menuTop {}
#usermenu a.highlight {color: #0000ff; background-color: #fcc;}

td#centercolumn {font-size: 11px;}

td#centercolumn th {background-color: #898989; color: #FFFFFF; vertical-align: middle;}
td#centerCcolumn {padding: 0px;}
td#centerCcolumn div.blockTitle {padding: 10px 3px 3px 15px; color: #000000; font-weight: bold; margin-top: 0px; margin-right: 0px;  margin-left: 0px;}
td#centerCcolumn div.blockContent {border-bottom: 1px solid #dddddd; padding: 5px 15px; margin-right: 0px; margin-left: 0px; margin-bottom: 3px; line-height: 130%;}

td#centerLcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#centerLcolumn div.blockTitle {padding: 10px 3px 3px 10px; color: #000000; font-weight: bold; margin-top: 0px;}
td#centerLcolumn div.blockContent {padding: 5px; margin-left: 0px; margin-right: 0px; margin-bottom: 2px; line-height: 120%;}

td#centerRcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#centerRcolumn div.blockTitle {padding: 10px 3px 3px 10px; color: #000000; font-weight: bold; margin-top: 0px;}
td#centerRcolumn div.blockContent {padding: 5px; margin-left: 0px; margin-right: 0px; margin-bottom: 2px; line-height: 120%;}

div#content {text-align: left; padding: 8px;}

td#rightcolumn {width: 170px; border-right: 1px solid #dcdcdc; border-left: 1px solid #dcdcdc; background:#F4F4F4;}
td#rightcolumn th {background-color: #2F5376; color: #FFFFFF; vertical-align: middle;}
td#rightcolumn div.blockTitle {padding: 3px; background-color: #f4f4f4; color: #CC3300; font-weight: bold;}
td#rightcolumn div.blockContent {padding: 3px 3px 10px 3px; border-bottom:1px solid #DCDCDC;}

tr#footerbar {text-align:center; background-image: url(hbar.gif);}


.outer {border1px solid silver;}
.
head {background-color#c2cdd6; padding: 5px; font-weight: bold;}
.even {background-color#ededed; padding: 5px;}
.odd {background-color#f9f9f9; padding: 5px; line-height:180%;}
.foot {background-color#c2cdd6; padding: 5px; font-weight: bold;}
tr.even td {background-color#ededed; padding: 5px;}
tr.odd td {background-color#f9f9f9; padding: 5px;}

div.errorMsg background-color#FFCCCC; text-align: center; border-top: 1px solid #DDDDFF; border-left: 1px solid #DDDDFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight: bold; padding: 10px;}
div.confirmMsg background-color#DDFFDF; color: #136C99; text-align: center; border-top: 1px solid #DDDDFF; border-left: 1px solid #DDDDFF; border-right: 1px solid #AAAAAA; border-bottom: 1px solid #AAAAAA; font-weight: bold; padding: 10px;}
div.resultMsg background-color #CCCCCC; color: #333333; text-align: center; border-top: 1px solid silver; border-left: 1px solid silver; font-weight: bold; border-right: 1px solid #666666; border-bottom: 1px solid #666666; padding: 10px;}

div.xoopsCode {background#EFEFEF; border: 1px dotted #666666; font-family:"Courier New",Courier,monospace, osaka; padding: 2px 10px 2px 10px; margin:0px 10px 0px 10px; font-size:12px; color:#2F5376;}
div.xoopsQuote {background#EFEFEF; border: 1px dotted #666666; font-family:"Courier New",Courier,monospace, osaka; padding: 2px; margin:0px 10px 0px 10px; font-size:12px; color:#2F5376;}


.comTitle {font-weightboldmargin-bottom2px;}
.
comText {padding2px;}
.
comUserStat {font-size10pxcolor#2F5376; font-weight:bold; border: 1px solid silver; background-color: #ffffff; margin: 2px; padding: 2px;}
.comUserStatCaption {font-weightnormal;}
.
comUserStatus {margin-left2pxmargin-top10pxcolor#2F5376; font-weight:bold; font-size: 10px;}
.comUserRank {margin2px;}
.
comUserRankText {font-size10px;font-weight:bold;}
.
comUserRankImg {border0;}
.
comUserName {}
.
comUserImg {margin2px;}
.
comDate {font-weightnormalfont-styleitalicfont-sizesmaller}
.
comDateCaption {font-weightboldfont-stylenormal;}



2
Burning
Re: Missing Bottom Block in theme
  • 2009/12/18 20:45

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

I hope it will work : here

3
demian
Re: Missing Bottom Block in theme
  • 2009/12/19 0:09

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29


thank you burning...that was quick....awesome

you guys out there should check this japanese site out...many beautiful XOOPS theme available

http://hello.oceannet.jp/

its just need to be updated.....

Thanks again burning....

4
Burning
Re: Missing Bottom Block in theme
  • 2009/12/19 7:26

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

In most cases, update is not a complicated task.

For Mambo taste, what I have done :


1 • copy templates in your theme folder (from default theme) :
- theme_blockcenter_c
- theme_blockcenter_l
- theme_blockcenter_r


2 • theme.html modifications :

a) HEAD part :

Erase (already called by <{$xoops_module_header}> if I'm not wrong):
<script type="text/javascript">

script>


Add (required to call blocks templates dynamically):

<{
assign var=theme_name value=$xoTheme->folderName}>


b) BODY part

Replace old canvas code by /default theme.html code :

        <{if 
$xoops_showlblock}>
            <
td id="leftcolumn">
            <{foreach 
item=block from=$xoBlocks.canvas_left}>
                <{
includeq file="$theme_name/theme_blockleft.html"}>
            <{/foreach}>
            td>
        <{/if}>
        

        <
td id="centercolumn">

        
        <{if 
$xoBlocks.page_topleft or $xoBlocks.page_topcenter or $xoBlocks.page_topright}>
            <
table cellspacing="0">
            <
tr>
                <
td id="centerCcolumn" colspan="2">
                
                <{foreach 
item=block from=$xoBlocks.page_topcenter}>
                    <{
includeq file="$theme_name/theme_blockcenter_c.html"}>
                <{/foreach}>
                
                td>
            tr>
            <
tr>
                <
td id="centerLcolumn">
                
                <{foreach 
item=block from=$xoBlocks.page_topleft}>
                    <{
includeq file="$theme_name/theme_blockcenter_l.html"}>
                <{/foreach}>
                
                td>
                <
td id="centerRcolumn">
                
                <{foreach 
item=block from=$xoBlocks.page_topright}>
                    <{
includeq file="$theme_name/theme_blockcenter_r.html"}>
                <{/foreach}>
                
                td>
            tr>
            table>
        <{/if}>
        

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

        <{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="$theme_name/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="$theme_name/theme_blockcenter_l.html"}>
                        <{/foreach}>
                    td>
                    <
td id="bottomRcolumn">
                        <{foreach 
from=$xoBlocks.page_bottomright item=block}>
                            <{include 
file="$theme_name/theme_blockcenter_r.html"}>
                        <{/foreach}>
                    td>
                tr>
            <{/if}>
        table>
        <{/if}>        
        
      td>

    <{if 
$xoops_showrblock}>
        <
td id="rightcolumn">
        
        <{foreach 
item=block from=$xoBlocks.canvas_right}>
            <{
includeq file="$theme_name/theme_blockright.html"}>
        <{/foreach}>
        
        td>
    <{/if}>



3 • templates modifications

center blocks templates gets these tags (theme_blockcenter_c.html, theme_blockcenter_l.html and theme_blockcenter_r.html):
-
: erase it
- : replace by



4 • Stylesheet modification

a) blocks

Duplicate styles for Top center blocks
td#centerCcolumn {padding: 0px;}
td#centerCcolumn div.blockTitle {padding: 10px 3px 3px 15px; color: #000000; font-weight: bold; margin-top: 0px; margin-right: 0px;  margin-left: 0px;}
td#centerCcolumn div.blockContent {border-bottom: 1px solid #dddddd; padding: 5px 15px; margin-right: 0px; margin-left: 0px; margin-bottom: 3px; line-height: 130%;}

td#centerLcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#centerLcolumn div.blockTitle {padding: 10px 3px 3px 10px; color: #000000; font-weight: bold; margin-top: 0px;}
td#centerLcolumn div.blockContent {padding: 5px; margin-left: 0px; margin-right: 0px; margin-bottom: 2px; line-height: 120%;}

td#centerRcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#centerRcolumn div.blockTitle {padding: 10px 3px 3px 10px; color: #000000; font-weight: bold; margin-top: 0px;}
td#centerRcolumn div.blockContent {padding: 5px; margin-left: 0px; margin-right: 0px; margin-bottom: 2px; line-height: 120%;}


And replace "center" by "bottom" to apply same styles to bottom blocks.

Like this :
td#bottomCcolumn {padding: 0px;}
td#bottomCcolumn div.blockTitle {padding: 10px 3px 3px 15px; color: #000000; font-weight: bold; margin-top: 0px; margin-right: 0px;  margin-left: 0px;}
td#bottomCcolumn div.blockContent {border-bottom: 1px solid #dddddd; padding: 5px 15px; margin-right: 0px; margin-left: 0px; margin-bottom: 3px; line-height: 130%;}

td#bottomLcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#bottomLcolumn div.blockTitle {padding: 10px 3px 3px 10px; color: #000000; font-weight: bold; margin-top: 0px;}
td#bottomLcolumn div.blockContent {padding: 5px; margin-left: 0px; margin-right: 0px; margin-bottom: 2px; line-height: 120%;}

td#bottomRcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#bottomRcolumn div.blockTitle {padding: 10px 3px 3px 10px; color: #000000; font-weight: bold; margin-top: 0px;}
td#bottomRcolumn div.blockContent {padding: 5px; margin-left: 0px; margin-right: 0px; margin-bottom: 2px; line-height: 120%;}



b) Main and user menus

To get nice menus, check display: block; instruction
Quote:

td#mainmenu a {display: block;}
td#usermenu a {display: block;}



---

In mambotaste_2.zip, I have put old version :
- theme.html
- style.css

---

Sorry for bad english.

5
demian
Re: Missing Bottom Block in theme
  • 2009/12/19 12:50

  • demian

  • Quite a regular

  • Posts: 225

  • Since: 2008/4/29




thanks for the tip..burning

next time i will try this myself....

got a lot nice theme to update

6
red_Slider
Re: Missing Bottom Block in theme

Most of those themes were created for XOOPS 2.0.13 and for XOOPS Cube. In these times we didn't have bottom blocks

PS Burning - nice, and fast solution!

7
Burning
Re: Missing Bottom Block in theme
  • 2009/12/20 20:47

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Another updated theme (Afternoon tea, Oceannet.jp) :
download
preview

Other updates comes soon :
• blog_taste_2 (Oceannet.jp)
• brown_sugar_2 (Oceannet.jp)
• doggie3 (Oceannet.jp)
• garden_2 (Oceannet.jp)
• trump_color-II (Oceannet.jp)
• trump_color-III (Oceannet.jp)
• insects_2 (Oceannet.jp)
• xmbluext (XOOPS Brasil)
• wizards_2 (?)
• mdcone_2 (?)
• fycappuccino_2 (theme4u)
• xf_orange_grey_V3 (StudioC)

8
noo-b
Re: Missing Bottom Block in theme
  • 2009/12/21 8:32

  • noo-b

  • Just can't stay away

  • Posts: 456

  • Since: 2007/10/23


request: please update

1. trump_color...

if i'm not mistaken thats the xoops-tips.com theme right..

2. pnuke_taste


9
Burning
Re: Missing Bottom Block in theme
  • 2009/12/21 13:33

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


Trump Color I, by Oceannet.jp :
download
preview

Someone to update pnuke_taste ?

10
Burning
Re: Missing Bottom Block in theme
  • 2009/12/23 2:04

  • Burning

  • Theme Designer

  • Posts: 1163

  • Since: 2006/8/22


hi'

Brown Sugar, by Oceannet.jp :
download
preview


Login

Who's Online

266 user(s) are online (142 user(s) are browsing Support Forums)


Members: 0


Guests: 266


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