Zikula: A Flexible Open Source Content Management System
home | forum | contact us

Dizkus

Bottom
Help With Center Block
  • Posted: 08.12.2003, 20:29
     
    DJ_Cease
    rank:
    Freshman Freshman
    registered:
     April 2003
    Status:
    offline
    last visit:
    11.01.06
    Posts:
    46
    Here is Tha Code can anybody tell me where I need 2 put the code for the Center Blocks 2 show up..........
    Also the Blocks on the right do not show up either..........


    Code

    <?php

    $thename = "Holiday";
    $bgcolor1   = "#922020";
    $bgcolor2   = "#3D6832";
    $bgcolor3   = "#3D6832";
    $bgcolor4   = "#3D6832";
    $textcolor1 = "#000000";
    $textcolor2 = "#000000";

    function OpenTable() {
        global $bgcolor1, $bgcolor2;
        echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
        echo "<table width=\"100%\" border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
    }

    function OpenTable2() {
        global $bgcolor1, $bgcolor2;
        echo "<center>";
        echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"$bgcolor2\"><tr><td>\n";
        echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"8\" bgcolor=\"$bgcolor1\"><tr><td>\n";
    }

    function CloseTable() {
        echo "</td></tr></table></td></tr></table>\n";
    }
    function CloseTable2() {
        echo "</td></tr></table></td></tr></table>\n";
    }

    function FormatStory($thetext, $notes, $aid, $informant) {
        global $anonymous;
        if ($notes != "") {
        $notes = "<b>"._NOTE."</b> <i>$notes</i>\n";
        } else {
        $notes = "";
        }
        if ("$aid" == "$informant") {
        echo "<font size=\"2\">$thetext<br>$notes</font>\n";
        } else {
        if($informant != "") {
            $boxstuff = "<a href=\"user.php?op=userinfo&amp;uname=$informant\">$informant</a> ";
        } else {
            $boxstuff = "$anonymous ";
        }
        $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes\n";
        echo "<font size=\"2\">$boxstuff</font>\n";
        }
    }
    function themeheader() {
    echo "<LINK rel=\"StyleSheet\" HREF=\"themes/Holiday/style/style.css\" TYPE=\"text/css\">";
    echo "<body  bgcolor=#000000 text=000000 topmargin=0 leftmargin=0 rightmargin=0 marginheight=0 link=#000000 vlink=#000000 alink=#000000>";?>
    <table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#000000">
    <tr>
    <td height="30" width="40%" align="center" valign="absmiddle"  bgcolor="#000000">
    <img src="themes/Holiday/logo.jpg" border=0>
    </td><td>
    <td height="30" colspan="8" bgcolor="#000000" align="center">
    <form action=search.php method=post><img src="themes/Holiday/search.jpg" border=0>
    <input type=text name=query style="background-color: #ffffff">
    <INPUT TYPE=image src=themes/Holiday/panah2.jpg border=0 width="19">
    </form>
    </td>
    </tr>
    </table>
    <? echo "<table border=0 cellspacing=3 cellpadding=4 width=100%><tr><td valign=top bgcolor=000000>";
    blocks(left);
    echo "<td width=100% valign=top>";
    ?>
    <div align="center">
    </div><? echo "<font face='verdana'size=2>";
    }

    function themefooter() {
    global $index;
    if ($index == 1) {
    echo "</td><td></td><td valign=\"top\" width=\"200\"><center><img src=\"themes/Holiday/images/tree.gif\"></center><br>\n";
    blocks(right);
    }
    echo "</td>\n"
    ."</tr></table>\n"
    ."<table width=\"99%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#C82424\" align=\"center\"><tr valign=\"top\">\n"
    ."<td align=\"center\" height=\"17\">\n"
    ."<IMG height=\"17\" alt=\"\" hspace=\"0\" src=\"themes/Holiday/bawah1.jpg\" width=\"17\" align=\"left\">\n"
    ."<IMG height=\"17\" alt=\"\" hspace=\"0\" src=\"themes/Holiday/bawah2.jpg\" width=\"17\" align=\"right\">\n"
    ."</td></tr></table>\n"
    ."<br>"
    ."<table width=\"99%\" cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#000000\" align=\"center\"><tr valign=\"top\">\n"
    ."<td><IMG height=\"17\" alt=\"\" hspace=\"0\" src=\"themes/Holiday/bawah1.jpg\" width=\"17\" align=\"left\"></td>\n"
    ."<td width=\"100%\">&nbsp;</td>\n"
    ."<td><IMG height=\"17\" alt=\"\" hspace=\"0\" src=\"themes/Holiday/bawah2.jpg\" width=\"17\" align=\"right\"></td>\n"
    ."</tr><tr align=\"center\">\n"
    ."<td width=\"100%\" colspan=\"3\">\n";
    footmsg();
    echo "</td>\n"
    ."</tr><tr>\n"
    ."<td><IMG height=\"17\" alt=\"\" hspace=\"0\" src=\"themes/Holiday/bawah3.jpg\" width=\"17\" align=\"left\"></td>\n"
    ."<td width=\"100%\">&nbsp;</td>\n"
    ."<td><IMG height=\"17\" alt=\"\" hspace=\"0\" src=\"themes/Holiday/bawah4.jpg\" width=\"17\" align=\"right\"></td>\n"
    ."</tr></table>\n";

    }

    function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $tipath, $anonymous;
    echo "<div align=center>
    <center>

    <table cellSpacing=1 cellPadding=0 width=100% border=0>
    <tr>
    <td align=middle bgcolor=#C82424><img alt hspace=0 src=themes/Holiday/biru3d.jpg align=left width=16 height=15>
    <p align=left><font face='arial' color=#ffffff size=4><b>
    &nbsp;&nbsp;&nbsp;$title</b></font></p>
    </td>
    </tr>
    <tr bgColor=#3D6832>
    <td>
    <table cellSpacing=5 cellPadding=0 width=100% border=0>
    <tbody>
    <tr>
    <td valign=top align=left><a href=\"search.php?query=&topic=$topic\"><img src=\"$tipath$topicimage\" Alt=\"$topictext\" align=\"left\" border=\"0\"></td>
    <td vAlign=top><font color=#ffffff>$thetext<br>$boxstuff<br>$morelink</font></td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    </table>
    <table cellSpacing=0 cellPadding=0 width=100% bgColor=#C82424>
    <tr>
    <td bgcolor=#000000><font color=ffffff size=1>"
    ._POSTEDBY." <b>";
    formatAidHeader($aid);
    echo "</b> "._ON." $time $timezone ( $counter "._READS." )   ";
    if ($aid == $informant) {
    $boxstuff = "$thetext";
    } else {
    if ($informant != "") {
    $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
    } else {
    $boxstuff = "$anonymous ";
    }
    $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes";
    }
    echo "<b>"._TOPIC.":</b> <a href=\"search.php?query=&topic=$topic\">$topictext</a><br></td>
    </tr>
    </table>
    </center><br>
    </div>"
    ;
    }


    function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    echo "<center>
    <table cellSpacing=1 cellPadding=0 width=100% border=0>
    <tr>
    <td align=middle bgcolor=#C82424>
    <p align=left><img alt hspace=0 src=themes/Holiday/gauche.gif align=left width=6 height=17><img alt hspace=0 src=themes/Holiday/droite.gif align=right width=5 height=17>&nbsp;&nbsp;&nbsp;<font size=4 color=#606438 face=helevtica,arial><b>$title</b><br>
    </td>
    </tr>
    <tr><td><br>"
    ; if ($aid == $informant) {
    $boxstuff = "$thetext";
    } else {
    if($informant != "") {
     $boxstuff = "<a href=\"user.php?op=userinfo&uname=$informant\">$informant</a> ";
    } else {
    $boxstuff = "$anonymous ";
        }
    $boxstuff .= ""._WRITES." <i>\"$thetext\"</i> $notes";
    }
    echo "<font size=2 color=#686868 face=helevtica,arial><a href=\"search.php?query=&topic=$topic\"><img src=\"$tipath$topicimage\" Alt=\"$topictext\" align=\"right\" border=\"0\"></a> "
    ."$boxstuff";
    echo " </td>
    </tr>
    </table><table cellSpacing=0 cellPadding=0 width=100% bgColor=#0167BA>
    <tr>
    <td bgcolor=#000000><font size=1>"
    ._POSTEDON." $datetime<b>";
    if ($admin) {
    echo "&nbsp;&nbsp;[ <a href=\"admin.php?op=EditStory&sid=$sid\">"._EDIT."</a> | <a href=\"admin.php?op=RemoveStory&sid=$sid\">"._DELETE."</a> ]";
    }
    echo "<br>"._TOPIC.": <a href=\"search.php?query=&topic=$topic&author=\">$topictext</a><br></td>
    </tr>
    </table>
    "
    ;  
    }


    function themesidebox($title, $content) {
    echo "<table height=20 cellSpacing=0 cellPadding=7 width=140 bgColor=#C82424 border=0>
    <tr>
    <td width=140 height=53 valign=top align=center background=themes/Holiday/atas2.jpg height=20><font face=Arial size=2 color=#ffffff><center><b>$title</b></center></font>
    </td>
    </tr></table><table cellSpacing=0 cellPadding=0 width=140 border=0>
    <tr>
    <td>
    <table cellSpacing=0 cellPadding=4 width=140 border=0>
    <tbody>
    <tr>
    <td background=themes/Holiday/biru.jpg width=140 height=4> </td>
    </tr>
    <tr>
    <td bgcolor=#3D6832><font color=#ffffff>$content</font></td>
    </tr>
    </tbody>
    </table>
    </td>
    </tr>
    <tr>
    <td><img src=themes/Holiday/kelabu.gif></td>
    </tr>
    </table>
    <br>"
    ;
    }

    ?>



    Any help would be GREATLY Appreciated icon_rolleyes
  • Posted: 09.12.2003, 04:33
     
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055
    Just take a look at any of the core themes that came with PostNuke, you'll see:

    Code

    blocks(centre);

    at the end of the themeheader() function...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Posted: 09.12.2003, 06:07
     
    DJ_Cease
    rank:
    Freshman Freshman
    registered:
     April 2003
    Status:
    offline
    last visit:
    11.01.06
    Posts:
    46
    Ok so what about tha Right Block???
  • Posted: 09.12.2003, 06:42
     
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055
    Take a look at the theme above... blocks(right);

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Posted: 10.12.2003, 12:36
     
    DJ_Cease
    rank:
    Freshman Freshman
    registered:
     April 2003
    Status:
    offline
    last visit:
    11.01.06
    Posts:
    46
    Ok Neither of those seem 2 work...........
    I put it @ tha end ot the themeheaderfunction() but it still wont work properly
    keeps sayin I have an error on line 137 or 138
    Any suggestions??
  • Posted: 10.12.2003, 18:59
     
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055
    Only that you gotta watch the syntax as that will cause the error. The error message will generally give you an idea... But the short of it is that yo can't just stick 'em in anywhere in the middle of concantated (sp?) echo statements... I might suggest a PHP syntax primer before proceeding...

    --
    Get PhotoGallery, PayPalCart, Dynamenu, Enhanced Blocks & other mods

    Cape Cod Travel Info...
  • Posted: 12.12.2003, 08:11
     
    DJ_Cease
    rank:
    Freshman Freshman
    registered:
     April 2003
    Status:
    offline
    last visit:
    11.01.06
    Posts:
    46
    Ok.........
    Whats a "PHP syntax primer"???
  • Posted: 12.12.2003, 19:14
     
    nate_02631
    rank:
    Professional Professional
    registered:
     September 2003
    Status:
    offline
    last visit:
    11.04.08
    Posts:
    3055

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula