1
fredski
No Blocks Showing in CalFacts TAB Module
  • 2004/5/11 15:12

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I have installed the CalFacts TAB Module, and it looks SWEET, problem is my blocks don't show, I can see page content, but no blocks. Any help? I shall leave it on my site overnite for you to see what I mean. Web Site Link

2
fredski
Re: No Blocks Showing in CalFacts TAB Module
  • 2004/5/12 7:39

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Heres the theme.html in case I've overlooked something.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">

<
html xml:lang="<{$xoops_langcode}>" xmlns="http://www.w3.org/1999/xhtml">

<
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" />

<
script type="text/javascript">

<!--

<{
$xoops_js}>

//-->

</script>

<
script type="text/javascript" src="<{$xoops_imageurl}>scripts/styleswitcher.js"></script>

<
style rel="stylesheet" type="text/css" media="screen">@import url(<{$xoops_imageurl}>style/style.css);</style>

<
link rel="alternate stylesheet" media="screen" type="text/css" href="<{$xoops_imageurl}>style/text-small.css" title="small" />

<
link rel="alternate stylesheet" media="screen" type="text/css" href="<{$xoops_imageurl}>style/text-large.css" title="large" />

<{
$xoops_module_header}>

</
head>

<
body>

<{if 
$xoops_showrblock == 1}>

<
div id="outer"

  <
div id="newheader">

<{else}>

<
div id="outer2"

  <
div id="newheader2">

<{/if}> 

    <
div id="topwhite">



    <
div class="rbroundbox">

<
div class="rbtop"><div>
            
          </
div></div>
        <
div id="centre">
<
div align="center"><a href="<{$xoops_url}>/"><img src="<{$xoops_imageurl}>images/logo.jpg" class="logo" alt="One" title="One" /></a></div>
        </
div>
        <!-- /
rbcontent -->

<
div class="rbbot"><div></div></div>

</
div><!-- /rbroundbox -->



    </
div>
<!-- 
start menu -->
<
table width="100%" border="0" cellspacing="0" cellpadding="0">

        <
tr>

          <
td width="180" class="headerprvi">

              <
form style="margin-top: 1px; margin-bottom: 0px" action="<{$xoops_url}>/search.php" method="post">

                &
nbsp;&nbsp;<input class="button" type="text" name="query" size="10" />

                <
input type="hidden" name="action" value="results" />

                <
input name="submit" type="submit" class="gumb" value="search" />

              </
form>

          </
td>

          <
td><table width="100%" border="0" cellspacing="0" cellpadding="0">

              <
tr

                
              <
td> &nbsp;&nbsp;<{if $xoops_isuser}> Hello <a href="<{$xoops_url}>/user.php"><{$xoops_uname}></a>&nbsp;&nbsp;&nbsp;<a href="<{$xoops_url}>/user.php">your 
                account 
</a>&nbsp; <{else}> <a href="<{$xoops_url}>/register.php">New 
                
Users Register Here</a><{/if}> <span class="right"> <{if $xoops_isuser}> 
                <
a href="<{$xoops_url}>/user.php?op=logout"></a> <{else}> &nbsp;&nbsp;&nbsp;<a href="<{$xoops_url}>/user.php">Existing 
                Members Login
</a> <{/if}> </span></td>

                <
td align="right" class="vrijeme"><span id="clock"></span> <script language="JavaScript" type="text/javascript" src="<{$xoops_imageurl}>images/clock.js">

                </
script> &nbsp;</td>

              </
tr>

            </
table></td>

        </
tr>

      </
table>
<{
php}>

global 
$xoopsDB ,$xoopsModule $xoopsUser$dirname ;

$xoops_url XOOPS_URL ;



if ( isset(
$xoopsModule)) {



$dirname $xoopsModule->getVar'dirname' ) ;

}



else

{

$dirname "home";

}



// Get current filename to determine non-mod pages for top level nav.



$url $_SERVER['REQUEST_URI'];

$url_array parse_url($url);

$path $url_array['path'];

$query $url_array['query'];

$path_array explode("/"$path);

$dir $path_array[5];

//echo $dir;

//echo $path;

//echo $url;

//echo $query;

//echo $path;



 
$table=$xoopsDB->prefix('tb_tabs');

 
$quer=sprintf("select * from $table order by parent_id , tb_ord Desc",$xoopsDB->prefix('tb_tabs'));



 
$res=$xoopsDB->query($quer);





echo 
"<div id='content-nav'>";





 

 while (
$row=$xoopsDB->fetchArray($res)){

     eval(
"$condition=$row[activ_cond];");

   if (
$condition) { $select_row=$row; }

 }



$res=$xoopsDB->query("select * from $table where parent_id=$select_row[id] order by tb_ord DESC");



while (
$row=$xoopsDB->fetchArray($res)) {

$lies.=sprintf("<li><a href='%s/$row[link]'>$row[name]</a></li>",XOOPS_URL);

}

$tail=$select_row[parent_id]==0?"<ul>$lies</ul>":"";



 echo 
get_child_menu($select_row[id],"$tail");

 



echo 
"</div>n" ;

  

  

        

function 
get_child_menu($sel_id ,$child_out=''){

    global 
$xoopsDB,$xoops_url;



     
$table=$xoopsDB->prefix('tb_tabs');

       
$quer="select parent_id from $table where id=$sel_id order by tb_ord DESC";

       
$res=$xoopsDB->query($quer);

    
$row=$xoopsDB->fetchArray($res);

    
$pid=$row[parent_id];





    
$quer="select * from $table where parent_id=$pid order by tb_ord DESC";

       
$res=$xoopsDB->query($quer);

 if ( 
$xoopsDB->getRowsNum($res) == ) {return $child_out;}







            

    while (
$row=$xoopsDB->fetchArray($res)) {

    
$selected=''$child='';  

    if (
$row[id]==$sel_id) {$selected="class='here'";$next[id]=$row[parent_id];$child=$child_out; }

    
$output.= sprintf("<li><a href='%s/$row[link]$selected>$row[name]</a>$child</li>",XOOPS_URL);          



    }



    
$output=get_child_menu($next[id],sprintf("<ul %s >n %s</ul>n",

                
$pid==0?"id='navigation'":'',

                
$output));



    return 
$output;



}



<{/
php}>

<!-- 
end menu -->

<
div style="clear:both"></div>

</
div>

<!-- 
end menu -->

<{if 
$xoops_lblocks}>

  <
div id="left"
    <!-- 
Start left blocks loop -->
    <{foreach 
item=block from=$xoops_lblocks}> 
    <!-- 
start block -->
    <{include 
file="ideal-tabs/themeblocks/theme_blockleft.html"}> 
    <!-- 
end block -->
    <{/foreach}> 
    <!-- 
End left blocks loop -->
  </
div>

  <{/if}>

<{if 
$xoops_showrblock == 1}>

  <
div id="right"
    <!-- 
Start right blocks loop -->
    <{foreach 
item=block from=$xoops_rblocks}> 
    <!-- 
start block -->
    <{include 
file="ideal-tabs/themeblocks/theme_blockright.html"}> 
    <!-- 
end block -->
    <{/foreach}> 
    <!-- 
End right blocks loop -->
  </
div>

<{/if}>

<
div id="centrecontent">

        <!-- 
Display center blocks if any -->

        

        <{if 
$xoops_showcblock == 1}>

            <
div id="outerCCol">

            

            <!-- 
Start center-center col -->

            
      <
div id="ccCol"
        <!-- 
Start center-center blocks loop -->
        <{foreach 
item=block from=$xoops_ccblocks}> 
        <!-- 
start block -->
        <{include 
file="ideal-tabs/themeblocks/theme_blockcenter_c.html"}> 
        <!-- 
end block -->
        <{/foreach}> 
        <!-- 
End center-center blocks loop -->
        <!-- 
End center-center col -->
      </
div>



            <!-- 
Start center-left col -->

            
      <
div id="clCol"
        <!-- 
Start center-left blocks loop -->
        <{foreach 
item=block from=$xoops_clblocks}> 
        <!-- 
start block -->
        <{include 
file="ideal-tabs/themeblocks/theme_blockcenter_l.html"}> 
        <!-- 
end block -->
        <{/foreach}> 
        <!-- 
End center-left blocks loop -->
        <!-- 
End center-left col -->
      </
div>



            <!-- 
Start center-right col -->

            
      <
div id="crCol"
        <!-- 
Start center-right blocks loop -->
        <{foreach 
item=block from=$xoops_crblocks}> 
        <!-- 
start block -->
        <{include 
file="ideal-tabs/themeblocks/theme_blockcenter_r.html"}> 
        <!-- 
end block -->
        <{/foreach}> 
        <!-- 
End center-right blocks loop -->
        <!-- 
End center-right col -->
      </
div>



         <!-- 
End display center blocks -->

            </
div>

            <
div id="ccfinished"></div>

        <{/if}>

            <{
$xoops_contents}>

</
div>

<
div id="clearfooter"></div>

  <!-- 
to clear footer -->

</
div>

<!-- 
end outer div -->

<
div id="footer">
  <
p><{$xoops_footer}></p>
</
div>

</
body>

</
html>

3
fredski
CalFacts TAB Module, DIV's help needed
  • 2004/5/12 11:48

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Now I'm certain that the problem lies in the above theme code as I've jusy loaded up the standard liquid theme and the module runs fine with all blocks where they should be. So, as I'm useless at DIV's and CSS can someone have a look at the code for me, I hacked it up a bit to take away some things I didn't want shown, and thew a table in there of the things I did want from one of my other theme's.

Please
Please
Please
Help

4
Mithrandir
Re: CalFacts TAB Module, DIV's help needed

<{include file="themeblocks/theme_blockcenter_c.html"}>

files are included from the root/themes directory, so paths should include the directory name of the theme. So if the theme is called "tabmodTheme" it should be

<{include file="tabmodTheme/themeblocks/theme_blockcenter_c.html"}>

provided that theme_blockcenter_c.html is located in root/themes/tabmodTheme/themeblocks

5
fredski
Re: CalFacts TAB Module, DIV's help needed
  • 2004/5/12 13:53

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


Well spotted that man............

All sorted now, the silliest things you miss sometimes, makes you crazy

6
Mithrandir
Re: CalFacts TAB Module, DIV's help needed

Have you set the "update module templates from themes/yourtheme folder" setting ON in general settings?

If you have uploaded theme.html and it didn't work and since modified it, you'll need that setting to get the theme.html recompiled.

Login

Who's Online

62 user(s) are online (32 user(s) are browsing Support Forums)


Members: 0


Guests: 62


more...

Donat-O-Meter

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

Latest GitHub Commits