How to insert an extra table to the right of the page

14.6.1. How to insert an extra table to the right of the page

The themefooter() function in the theme.php file of your theme is the right place to modify if you want to insert an extra table cell to the right of your page:

Find the call to blocks(right) (see it in Section 14.6) and modify it by adding code as follows:

blocks(right);
    }
    echo "</td><td>&nbsp;</td>";
    echo "<td>Some text here.";
    // This is an extra table cell now
    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
    $tmpl_file = "themes/fiblack/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "$r_file="".$thefile."";";
    eval($thefile);
    print $r_file;
}

Or, as a more elaborate variation that includes an external piece of code (in this case the Login block):

blocks(right);
    }
    echo "</td><td>&nbsp;</td>";
    echo "<td>Some text here.<br>";
    include("blocks/block-Login.php");
    $title = "Title Here";
    themesidebox($title,$content);
    // This is an extra table cell now
    $footer_message = "$foot1<br>$foot2<br>$foot3<br>$foot4";
    $tmpl_file = "themes/fiblack/footer.html";
    $thefile = implode("", file($tmpl_file));
    $thefile = addslashes($thefile);
    $thefile = "$r_file="".$thefile."";";
    eval($thefile);
    print $r_file;
}

In both cases, it is important that the inserted code is outside the IF statement that controls the call to blocks(right). See Insert a new table for more details.

 

Site Info v2.2.2

Last SeenLast Seen
Server TrafficServer Traffic
  • Total: 339,401,240
  • Today: 17,804
Server InfoServer Info
  • Oct 24, 2017
  • 04:37 am PDT
 
 

Daily Inspiration