11
redheadedrod
Re: News module - Recent News block not showing

The theme you are using likely does not have the bottom blocks installed in it. Alot of themes do not have these blocks in them but you can add them relatively easy.

Your blocks are displayed with code like this...

<{foreach item=block from=$xoops_lblocks}>
<{$block.title}>
<{$block.content}>
<{/foreach}>

This would print out all the blocks for the left block.

You need to add the appropriate CSS coding to format this block but it is not hard. If you look at the theme you are using you will see similar coding with HTML and CSS coding to format your blocks.

To print out different blocks you can add similar code as above... All you need to do is insert the right variable and similar CSS and HTML and you have it... Would be easier to duplicate the code you already have in your theme and just change the variable you see above to show the correct block.

The available variables and their places: (Replace $xoops_lblocks with these.)

$xoops_lblocks = left block
$xoops_rblocks = right block
$xoops_ccblocks = top center
$xoops_clblocks = top left
$xoops_crblocks = top right
$xoBlocks.page_bottomcenter = bottom center
$xoBlocks.page_bottomleft = bottom left
$xoBlocks.page_bottomright = bottom right

I will be writing a Theme tutorial soon and putting it in the wiki but this should get you going for now.

The bottom blocks look different as they were added in more recent versions of xoops and the framer of these add ons wanted to make them easier to remember so they have different format to the names. The original coding was left as was so as not to confuse anyone and to keep older themes working. These are Smarty variables and you can't apply CSS to them directly. MOST people today will surround it in a DIV with a class associated with it that reflects on which CSS class to use from the external STYLE.CSS file.

If you have a theme that is using tables to surround everything or only use the first 5 variables or maybe not even all of those you may have an older theme that can be added to by adding additional code as above.

Rodney

12
Wonderfish1
Re: News module - Recent News block not showing

Thanks Rod,

That looks like it might be the problem. Now to fix it....

I have added some code from the default theme.css to my new theme.css. It looks like this:


            <{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}>
            



I think I need to add something to reference this but I am not sure what. I can't find anything in theme.html that looks close.

Thanks again for your help,
Tim

13
ghia
Re: News module - Recent News block not showing
  • 2011/1/5 9:43

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Just insert it before the last table for the footer.
It seems there is a closing table tag too less in your /themes/montisblue/theme.html

14
Wonderfish1
Re: News module - Recent News block not showing

Hi guys and thanx,

I have tried to fix themes.html in my theme and it doesn't want to play - it now loos like this:

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="Microsoft FrontPage 6.0" />
<
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}>" />

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

script>

<
table width="100%" border="0" cellspacing="0" cellpadding="0" height="96" background="<{$xoops_imageurl}>headermiddle.gif">
  <
tr>
    <
td width="300" align="left" style="vertical-align:middle"><img src="<{$xoops_imageurl}>logo5.gif" width="297" height="60">td>
    <
td>&nbsp;td>
    <
td width="300" align="left" valign="top">td>
  tr>
table>
<
table width="100%" border="0" cellspacing="0" cellpadding="0" height="26">
  <
tr
    <
th width="180" background="<{$xoops_imageurl}>middleheadertop.gif" align="center"><font color="#999999">
      <
script type="text/javascript" language="">

var 
monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
var 
now = new Date();
thisYear now.getYear();
if(
thisYear 1900) {thisYear += 1900}; 
document.write(now.getDate() + " " monthNames[now.getMonth()] + ", " thisYear);

      script>
    font>th>
    <
th background="<{$xoops_imageurl}>middleheadertop.gif" align="center"> <font color="#CCCCCC"><{$xoops_slogan}>font>font>th>
    <
th width="180" background="<{$xoops_imageurl}>middleheadertop.gif">&nbsp;th>
  tr>
table>

<
div align="center">div>
<
table cellspacing="0">
    <
tr>
      
    <
td id="leftcolumn" height="143"
      
      <{foreach 
item=block from=$xoops_lblocks}> <{include file="montisblue/theme_blockleft.html"}> 
      <{/foreach}> 
     
    td>

      
    <
td height="143" align="center" valign="top" id="centercolumn"
    
 

           <{if 
$xoops_showcblock == 1}> <{$xoops_banner}><br>
      <
table cellspacing="0">
          <
tr>
            
          <
td id="centerCcolumn" colspan="2"
           
            <{foreach 
item=block from=$xoops_ccblocks}> <{include file="montisblue/theme_blockcenter_c.html"}> 
            <{/foreach}> 
            
          td>
          tr>
          <
tr>
            
          <
td id="centerLcolumn"
            
            <{foreach 
item=block from=$xoops_clblocks}> <{include file="montisblue/theme_blockcenter_l.html"}> 
            <{/foreach}> 
           
          td>
          <
td id="centerRcolumn"
            
            <{foreach 
item=block from=$xoops_crblocks}> <{include file="montisblue/theme_blockcenter_r.html"}> 
            <{/foreach}> 
           
          td>
          tr>
      table>
       <{/if}>
  
        <
div id="content">
          <{
$xoops_contents}>
        div>
      td>

      <{if 
$xoops_showrblock == 1}>
     
    <
td id="rightcolumn" height="143"
      
      <{foreach 
item=block from=$xoops_rblocks}> <{include file="montisblue/theme_blockright.html"}> 
      <{/foreach}> 
      
    td>

      <{/if}>

    tr>

        
            
            <{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}>
            
 
<
table border="0" width="100%" cellspacing="0" cellpadding="0"
style="border: 1px solid rgb(0,0,0)">
  <
tr
    <
td width="100%" bgcolor="#FEE9E4">td>
    <
td width="19" bgcolor="#FEE9E4">td>
  tr>
  <
tr
    <
td width="33%" bgcolor="#C0C0C0" height="1">td>
    <
td width="19" bgcolor="#C0C0C0" height="1">td>
  tr>
table>
body>
html>



I agree with ghia that there is a missing somewhere but when I tried to fix it I broke the page horribly. If anyone can see what is wrong I would hugely appreciate it.

Thanks
Tim


15
redheadedrod
Re: News module - Recent News block not showing

Quote:

Wonderfish1 wrote:
Thanks Rod,

That looks like it might be the problem. Now to fix it....

I have added some code from the default theme.css to my new theme.css. It looks like this:



I think I need to add something to reference this but I am not sure what. I can't find anything in theme.html that looks close.

Thanks again for your help,
Tim


You meant theme.html not theme.css right?

This looks like it should have the center bottom column and then below it show the left and right column.

Looks like it is designed for a 2 column layout.

Also, you will need to have code in your style.css file that refers to the ID's bottomCcolumn, bottomLcolumn and bottomRcolumn. They will inherit the css of the body otherwise. If you have specific CSS code in your CSS file for the other blocks you will also need it for these blocks as well.


16
Wonderfish1
Re: News module - Recent News block not showing

Hi all,

I added the code for the bottom blocks to theme.html See


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="Microsoft FrontPage 6.0" />
<
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}>" />

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

script>

<
table width="100%" border="0" cellspacing="0" cellpadding="0" height="96" background="<{$xoops_imageurl}>headermiddle.gif">
  <
tr>
    <
td width="300" align="left" style="vertical-align:middle"><img src="<{$xoops_imageurl}>logo5.gif" width="297" height="60">td>
    <
td>&nbsp;td>
    <
td width="300" align="left" valign="top">td>
  tr>
table>
<
table width="100%" border="0" cellspacing="0" cellpadding="0" height="26">
  <
tr
    <
th width="180" background="<{$xoops_imageurl}>middleheadertop.gif" align="center"><font color="#999999">
      <
script type="text/javascript" language="">

var 
monthNames = new Array( "January","February","March","April","May","June","July","August","September","October","November","December");
var 
now = new Date();
thisYear now.getYear();
if(
thisYear 1900) {thisYear += 1900}; 
document.write(now.getDate() + " " monthNames[now.getMonth()] + ", " thisYear);

      script>
    font>th>
    <
th background="<{$xoops_imageurl}>middleheadertop.gif" align="center"> <font color="#CCCCCC"><{$xoops_slogan}>font>font>th>
    <
th width="180" background="<{$xoops_imageurl}>middleheadertop.gif">&nbsp;th>
  tr>
table>

<
div align="center">div>
<
table cellspacing="0">
    <
tr>
      
    <
td id="leftcolumn" height="143"
      
      <{foreach 
item=block from=$xoops_lblocks}> <{include file="montisblue/theme_blockleft.html"}> 
      <{/foreach}> 
     
    td>

      
    <
td height="143" align="center" valign="top" id="centercolumn"
    
 

           <{if 
$xoops_showcblock == 1}> <{$xoops_banner}><br>
      <
table cellspacing="0">
          <
tr>
            
          <
td id="centerCcolumn" colspan="2"
           
            <{foreach 
item=block from=$xoops_ccblocks}> <{include file="montisblue/theme_blockcenter_c.html"}> 
            <{/foreach}> 
            
          td>
          tr>
          <
tr>
            
          <
td id="centerLcolumn"
            
            <{foreach 
item=block from=$xoops_clblocks}> <{include file="montisblue/theme_blockcenter_l.html"}> 
            <{/foreach}> 
           
          td>
          <
td id="centerRcolumn"
            
            <{foreach 
item=block from=$xoops_crblocks}> <{include file="montisblue/theme_blockcenter_r.html"}> 
            <{/foreach}> 
           
          td>
          tr>
      table>



        <{/if}>
  

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

      <{if 
$xoops_showrblock == 1}>

      
    <
td id="rightcolumn" height="143"
      
      <{foreach 
item=block from=$xoops_rblocks}> <{include file="montisblue/theme_blockright.html"}> 
      <{/foreach}> 
      
    td>

      <{/if}>

    tr>



      
        
        
            
            <{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}>
            
        
        
        
       





  
<
table border="0" width="100%" cellspacing="0" cellpadding="0"
style="border: 1px solid rgb(0,0,0)">
  <
tr
    <
td width="100%" bgcolor="#FEE9E4">td>
    <
td width="19" bgcolor="#FEE9E4">td>
  tr>
  <
tr
    <
td width="33%" bgcolor="#C0C0C0" height="1">td>
    <
td width="19" bgcolor="#C0C0C0" height="1">td>
  tr>
table>
body>
html>


and added code to the style.css to reference those bits (see from td#bottomCcolumn )


body {colorWhitebackground#000000; margin: 0; padding: 0;}

table {width100%; margin5padding5font-sizesmall}
table td {padding0border-width0vertical-aligntopfont-familyArial;}

{color#FFCC00; text-decoration: underline; font-weight: normal; background-color: transparent;}
a:hover {colorwhite;}

h1 {background-colortransparentcolorWhitevertical-align middlefont-familyVerdanaArialHelveticasans-seriffont-size12px;}
h2 {}
h3 {}
h4 {}
h5 {}
ul margin2pxpadding2px; list-styledecimal insidetext-alignleft;}
li margin-left2px; list-stylesquare insidecolor#FFCC00}

input.formButton {}

.
item {bordernone;}
.
itemHead {padding3pxbackground-colortransparentcolor#646C85;}
.itemInfo {text-alignrightpadding3pxbackground-color#2E4166}
.itemTitle a {font-size130%; font-weightboldfont-variantsmall-capscolor#CCCCCC; font-size: 13px; background-color: transparent;}
.itemPoster {font-size90%; font-style:italic;}
.
itemPostDate {font-size90%; font-style:italic;}
.
itemStats {font-size90%; font-style:italic;}
.
itemBody {padding-left5px;}
.
itemText {margin-top5pxmargin-bottom5pxline-height1.5em;}
.
itemText:first-letter {font-size133%; font-weightbold;}
.
itemFoot {text-alignrightpadding3pxbackground-color#646C85;}
.itemAdminLink {font-size90%;}
.
itemPermaLink {font-size90%;}

th {background-color#4682B4; color: White; padding : 2px; vertical-align : middle; font-family: Verdana, Arial, Helvetica, sans-serif;}

td#headerbanner {width: 100%; background-color: #000040; vertical-align: middle; text-align:center;}
td#headerbar {border-bottom: 0px solid #dddddd; background-image: url(hbar.gif);}

td#leftcolumn a {color: #040824;}
td#leftcolumn a:hover {color: #FFFFFF;}
td#leftcolumn a.highlight {background-color: #FFCCCC; }
td#leftcolumn {width: 180px; font-size: 11px;}
td#leftcolumn th {background-color: #2163AF; color: #CCCCCC; vertical-align: middle;}
td#leftcolumn div.blockTitle {padding: 3px; background-color: transparent; color: #FFFFFF; font-size: 12px; font-weight: bold;}
td#leftcolumn div.blockContent {background-color:#0b8bf7; padding: 3px;line-height: 120%; line-height: 120%; horizontal-align: center;}


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

td#centercolumn th {background-color: transparent; color: #637293; vertical-align: middle;}
td#centerCcolumn {padding: 0px 3px 1px 3px;}
td#centerCcolumn legend.blockTitle {padding: 3px; color: #2163AF; font-weight: bold; margin-top: 0px; margin-right: 0px;  margin-left: 0px;}
td#centerCcolumn div.blockContent {border-left: 0px solid #4682B4; border-right: 0px solid #4682B4; border-bottom: 0px solid #4682B4; padding: 3px; margin-right: 0px;  margin-left: 0px; margin-bottom: 2px; line-height: 120%;}

td#centerLcolumn {width: 50%; padding: 3px 3px3px 3px;}
td#centerLcolumn legend.blockTitle {padding: 3px; color: #2163AF; font-weight: bold; margin-top: 0px;}
td#centerLcolumn div.blockContent {border-left: 0px solid #2163AF; border-right: 0px solid #2163AF; border-bottom: 0px solid #2163AF; padding: 3px; margin-left: 3px; margin-right: 2px; margin-bottom: 2px; line-height: 120%;}

td#centerRcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#centerRcolumn legend.blockTitle {padding: 3px; color: #2163AF; font-weight: bold; margin-top: 0px;}
td#centerRcolumn div.blockContent {border-left: 0px solid #00BFFF; border-right: 0px solid #00BFFF; border-bottom: 0px solid #00BFFF; padding: 3px; margin-left: 2px; margin-right: 3px; margin-bottom: 2px; line-height: 120%;}

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

td#rightcolumn {width: 180px; font-size: 11px;}
td#rightcolumn th {background-color: #8F95A7; color: #000000; vertical-align: middle;}
td#rightcolumn div.blockTitle {padding: 3px; background-color: #transparent; color: #FFFFFF; font-size: 12px; font-weight: bold;}
td#rightcolumn div.blockContent {background-color:transparent; padding: 3px; line-height: 120%;}





td#bottomCcolumn {width: 100%; padding: 0px 3px 0px 0px;}
td#bottomCcolumn legend.blockTitle {padding: 3px; color: #2163AF; font-weight: bold; margin-top: 0px;}
td#bottomCcolumn div.blockContent {border-left: 0px solid #00BFFF; border-right: 0px solid #00BFFF; border-bottom: 0px solid #00BFFF; padding: 3px; margin-left: 2px; margin-right: 3px; margin-bottom: 2px; line-height: 120%;}


td#bottomLcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#bottomLcolumn legend.blockTitle {padding: 3px; color: #2163AF; font-weight: bold; margin-top: 0px;}
td#bottomLcolumn div.blockContent {border-left: 0px solid #00BFFF; border-right: 0px solid #00BFFF; border-bottom: 0px solid #00BFFF; padding: 3px; margin-left: 2px; margin-right: 3px; margin-bottom: 2px; line-height: 120%;}

td#bottomRcolumn {width: 50%; padding: 0px 3px 0px 0px;}
td#bottomRcolumn legend.blockTitle {padding: 3px; color: #2163AF; font-weight: bold; margin-top: 0px;}
td#bottomRcolumn div.blockContent {border-left: 0px solid #00BFFF; border-right: 0px solid #00BFFF; border-bottom: 0px solid #00BFFF; padding: 3px; margin-left: 2px; margin-right: 3px; margin-bottom: 2px; line-height: 120%;}








tr#footerbar {text-align:center; font-size: 10px;}

#mainmenu a {background-color: #2E4166; display: block; margin: 4px; padding: 3px;;}
#mainmenu a.menuTop {padding-left: 3px; color: #A5A464}
#mainmenu a:hover {color: #FFFFFF;}
#mainmenu a.menuMain {padding-left: 3px; color: #A5A464}
#mainmenu a.menuSub {padding-left: 15px; color: #CCCCCC}

#usermenu a {background-color: #2E4166; color: #A5A464; display: block; margin: 4px; padding: 3px;}
#usermenu a:hover {color: #FFFFFF;}
#usermenu a.highlight {background-color: #FFCCCC; }



.outer {border2px #8F95A7;}
.head {background-color#36486A; padding: 5px; font-weight: bold;}
.even {background-color#80879B; padding: 8px;}
.odd {background-color#646C85; padding: 5px;}
.foot {background-color#8F95A7; padding: 5px; font-weight: bold;}
tr.even td {background-color#80879B; padding: 5px;}
tr.odd td {background-color#646C85; 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 #8F95A7; 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#EEEEFF; border: 1px inset #2163AF; font-family: "Courier New",Courier,monospace; padding: 0px 6px 6px 6px;}
div.xoopsQuote background#2E4166; border: 1px inset #5F9EA0; font-family: "Courier New",Courier,monospace; padding: 0px 6px 6px 6px;}


.comTitle {font-weightboldmargin-bottom2px;}
.
comText {padding2px;}
.
comUserStat {font-size10pxcolor#FFCC00; font-weight:bold; border: 1px solid silver; background-color: White; margin: 2px; padding: 2px;}
.comUserStatCaption {font-weightnormal;}
.
comUserStatus {margin-left2pxmargin-top10pxcolor#FFCC00; 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;}



I also do not know what the "td" bits are at the start of the lines but it seems to work for all other instances.

Frustratingly, it works fine with the default template - I have left the theme selector available so you can see this here.

I really hope you can see what is wrong,
Tim

17
redheadedrod
Re: News module - Recent News block not showing

Did you read your PM?

With a table you will see certain tags used...

You need to think of a table as being like an excel spread sheet.

Each tag will have a closing tag that denotes the end of the definition for that tag. The portion is the closing tag.

This is the thing that defines the table. Everything between these tags consist of the table. When using tables for layouts you will see tables within tables sometimes.

This defines a Table ROW.. Imagine a horizontal row of cells in a spread sheet.

This little used tag builds the header row. Would be like the titles that go across the top of a spreadsheet. This would be used like a cell (Next one) but more specialized.

This tag is the actual cell its self. This would be like a cell in a spread sheet. You CAN use this to make the header instead of the last tag.


But read your PM. I left you information there how to send me what you have and I will go through it for you and fix your issues.

Rodney

18
Wonderfish1
Re: News module - Recent News block not showing

Many thanks Rod - best service anywhere

I have sent the files you requested. Thanks for being so helpful and making the community so much stronger as a result.


Cheers,
Tim

19
Wonderfish1
Re: News module - Recent News block not showing

Well that didn't work.

The problem is not with the module but with the theme - the bottom blocks are not installed and despite good help I cannot make installing them work so that the block appears at the bottom of the centre column. I have given up and will put up with no Recent News block. Thanks to those that helped.


Tim

20
Wonderfish1
Re: News module - Recent News block not showing

OK, finally fixed it.

I used the instructions that were available here. The reason I couldn't get the blocks to appear in the right place was because I couldn't find the right place to insert the code in theme.html

Ultimately it went here:

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


so it then looks like this:

<div id="content">
          <{
$xoops_contents}>
 
            
            <{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}>
            


        div>



And now it works.

Login

Who's Online

439 user(s) are online (305 user(s) are browsing Support Forums)


Members: 0


Guests: 439


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