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



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>
        

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

div>



    div>

<
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 Herea><{/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 
"";





 

 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("
  • $row[link]'>$row[name]
  • "
    ,XOOPS_URL);

    }

    $tail=$select_row[parent_id]==0?"
      $lies
    "
    :"";



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

     



    echo 
    "
    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("
  • $row[link]$selected>$row[name]$child
  • "
    ,XOOPS_URL);          



        }



        
    $output=get_child_menu($next[id],sprintf("n %sn",

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

                    
    $output));



        return 
    $output;



    }



    <{/
    php}>



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

    div>



    <{if 
    $xoops_lblocks}>

      <
    div id="left"
        
        <{foreach 
    item=block from=$xoops_lblocks}> 
        
        <{include 
    file="ideal-tabs/themeblocks/theme_blockleft.html"}> 
        
        <{/foreach}> 
        
      div>

      <{/if}>

    <{if 
    $xoops_showrblock == 1}>

      <
    div id="right"
        
        <{foreach 
    item=block from=$xoops_rblocks}> 
        
        <{include 
    file="ideal-tabs/themeblocks/theme_blockright.html"}> 
        
        <{/foreach}> 
        
      div>

    <{/if}>

    <
    div id="centrecontent">

            

            

            <{if 
    $xoops_showcblock == 1}>

                <
    div id="outerCCol">

                

                

                
          <
    div id="ccCol"
            
            <{foreach 
    item=block from=$xoops_ccblocks}> 
            
            <{include 
    file="ideal-tabs/themeblocks/theme_blockcenter_c.html"}> 
            
            <{/foreach}> 
            
            
          div>



                

                
          <
    div id="clCol"
            
            <{foreach 
    item=block from=$xoops_clblocks}> 
            
            <{include 
    file="ideal-tabs/themeblocks/theme_blockcenter_l.html"}> 
            
            <{/foreach}> 
            
            
          div>



                

                
          <
    div id="crCol"
            
            <{foreach 
    item=block from=$xoops_crblocks}> 
            
            <{include 
    file="ideal-tabs/themeblocks/theme_blockcenter_r.html"}> 
            
            <{/foreach}> 
            
            
          div>



             

                div>

                <
    div id="ccfinished">div>

            <{/if}>

                <{
    $xoops_contents}>

    div>

    <
    div id="clearfooter">div>

      

    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

    304 user(s) are online (96 user(s) are browsing Support Forums)


    Members: 0


    Guests: 304


    more...

    Donat-O-Meter

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

    Latest GitHub Commits