Fork me on GitHub

Watch

GitHub Core

Show your support for Zikula! Sign up at Github account and watch the Core project!




GitHub Modules

Forum Activity

Forum feed

» Visit forum | » View latest posts

Adding Centre block support  Bottom

  • I've read and searched through the forums, but can't find a thread that explains how to add centre block support to my theme's code. I think it is written a bit different than most other, btu am not sure.

    This is what my themsidebox code reads..

    Code

    }

    function themesidebox($block) {
        global $bgcolor1, $bgcolor2;
      if (empty($block['title']))   {
         echo "<font class='boxcontent'>$block[content]</font>";
      }
      else
      {
        if(pnUserLoggedIn()) {
            if(checkuserblock($block)=='1') {
                if (!empty($block['title'])) {
                    $button =" <a href=\"modules.php?op=modload&name=Blocks&file=index&req=ChangeStatus&bid=$block[bid]&amp;authid=".pnSecGenAuthKey()."\"><img src=\"themes/"._HSDIRNAME."/images/xpminimize.gif\" border=\"0\" alt=\"\"></a>";
                }
            } else {
                $block['content'] ='';
                if (!empty($block['title'])) {
                    $button =" <a href=\"modules.php?op=modload&name=Blocks&file=index&req=ChangeStatus&bid=$block[bid]&amp;authid=".pnSecGenAuthKey()."\"><img src=\"themes/"._HSDIRNAME."/images/xpmaximize.gif\" border=\"0\" alt=\"\"></a>";
                }
            }
        }
        else
        {
            $button = "<img src=\"themes/"._HSDIRNAME."/images/xpminimize.gif\" border=\"0\" alt=\"\">";
        }
        echo "<br /><table border='0' cellpadding='0' cellspacing='0' width='175'><tr><td>\n"
    // title


    Can someone help me with my problem, my centre blocks are beign displayed as wide as the left and right blocks, they are not filling up the entire center section.

    Thanks

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