Fork me on GitHub

Admin Messages Block is Too Small  Bottom

  • First off, the theme I'm using wasn't showing Admin Messages. I went ahead and searched through the forums and found out how to get them to show up. I currently have this added at the end of my themeheader():

    Code

    // If we have admin messages or blocks of 'centre' type, lets display them
        if ($GLOBALS['index'] == 1) {
            blocks('centre');
        }

    However when I do that it just makes a small block in the middle of the page. You can see it here. I've also tried using this code:

    Code

    if ($GLOBALS['index']) {
            OpenTable();
            echo '<div class="message-centre" width="800%">';
            blocks('centre');
            echo '</div>';
            CloseTable();
        }

    The current one I'm using is the only code that seemed to place the admin message block in the center of the page. All the other codes either created two sets of admin messages or did not make a block at all, but instead just a large space in the middle of my page.

    My question is, how can I make the current block stretch so it takes up the entire width of the middle? Thanks in advance.
  • I've done some more searching through the forums. I can get the admin block to show up now, with the correct width... but now there is no block. It's just the message. Here is some of my theme.php:

    End of my themeheader():

    Code

    blocks('left');
            echo "</TD>\n"
            ."<TD WIDTH=\"5\"><IMG SRC=\"themes/Geigant-de/images/pix-t.gif\" WIDTH=\"5\" HEIGHT=\"1\" ALT=\"\" BORDER=\"0\"></TD>\n"
            ."<TD ALIGN=\"center\" VALIGN=\"top\">\n";

    // If we have admin messages or blocks of 'centre' type, lets display them
       if ($GLOBALS['index']) {
           OpenTable();
           echo '<div class="message-centre" width="8000%">';
           blocks('centre');
           echo '</div>';
           CloseTable();
       }
    }

    And my themesidebox()

    Code

    function themesidebox($block) {
    global $sepcolor;
            if ($block['position'] == 'c') {
                //Begin Center Block
            echo $block['content']."<br />";
            } else {
            echo "<table align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"150\">\n"

    And you can view the site here.
  • Here is what I'm talking about. This pic shows two center blocks:

    [img]'s don't seem to work for me

This list is based on users active over the last 60 minutes.