Fork me on GitHub

Admin Messages  Bottom

  • Admin Messages does not appear in postnuke, only if I use default theme PostNukeBlue. Why would it be?
  • How many different themes did you try?
    Not all themes have the center block for the admin messages built in yet. Did you try all themes from the default PostNuke install?
  • Yes, you are right. I found more themes witch can show admin message with no problem, but I would like to use that specific one. Any idea how to fix it? Thanks.
  • Yes, you are right. I found more themes witch can show admin message with no problem, but I would like to use that specific one. Any idea how to fix it? Thanks.
  • Yes, you are right. I found more themes witch can show admin message with no problem, but I would like to use that specific one. Any idea how to fix it? Thanks.
  • olegk

    Yes, you are right. I found more themes witch can show admin message with no problem, but I would like to use that specific one. Any idea how to fix it? Thanks.


    You need to modify the themeheader() function in the theme.php in the directory under html/themes named for the theme. (ie - html/themes/PostNukeBlue for the PostNukeBlue theme.)

    Look at a theme that does support the center blocks and compare it to the theme you want to use. You'll see something like this in the theme that supports center blocks (and Admin messages):

    Code

    if ($index == 1) {
            echo "<span class=\"message-centre\">\n";
            blocks('centre');
            echo "</span>\n";
        }


    Something similar needs to be added to the theme you're interested in.
  • OKOK.. heres what has to be done .. its the best fix ive fouund yet it works on evry theme ive tryed it onn sofar .. only one drawback im working onn ...

    ok first you have to open up your theme.php found in the dir of your heme .. so lets say you were trying to fix the theme called 0rion (its jstu a popular theme .. im jsut using it as an ex.)

    then open the file "\themes\0ri0n\theme.php"

    find thsi ligne

    Code

    function themeheader


    now .. find this

    {[
    }

    function themefooter() {

    [/code]

    ok now jsut before that first '}' add this

    Code

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


    so it shoudl look SOMETHING liek this


    Code

    function themeheader() {
        global $slogan;
        echo "<body bgcolor=\"000000\" text=\"FFFFFF\" link=\"FFFFFF\" vlink=\"FFFFFF\">";
        if ($banners) {
        echo "<br>";
        include("banners.php");
        echo "<br>";
        }
        echo "<table border=\"0 cellpadding=\"4\" cellspacing=\"0\" width=\"100%\" align=\"center\"><tr><td bgcolor=\"000000\">"
            ."<table border=\"0\" cellspacing=\"0\" cellpadding=\"3\" width=\"100%\" bgcolor=\"000000\"><tr><td>"
            ."<a href=\"modules.php?op=modload&name=News&file=index\"><img src=\"themes/0ri0n/images/title.jpg\" Alt=\""._WELCOMETO." $sitename\" border=\"0\"></a>"
            ."</td><td align=\"right\">"
            ."<form action=\"search.php\" method=\"post\">"
            ."<font class=\"content\">"._SEARCH.""
            ."<input type=\"text\" name=\"query\">"
            ."</font></form>"
            ."</td></tr></table></td></tr>"
        ."<tr><td valign=\"top\" bgcolor=\"000000\">&nbsp;&nbsp;</td></tr>" 
        ."<tr><td valign=\"top\" bgcolor=\"CC0000\" background=\"themes/0ri0n/images/barra.gif\"><font class=content>$slogan</font></td></tr>"
        ."<tr><td valign=\"top\" bgcolor=\"000000\">&nbsp;&nbsp;</td></tr>"
        ."<tr><td valign=\"top\" width=\"100%\" bgcolor=\"000000\">"
            ."<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" width=\"100%\"><tr><td valign=\"top\" width=\"150\" bgcolor=\"000000\">";
        blocks(left);
        echo "<img src=\"images/pix.gif\" border=\"0\" width=\"150\" height=\"1\"></td><td>&nbsp;&nbsp;</td><td width=\"100%\" valign=\"top\">";

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

    function themefooter() {
        global $index;
        if ($index == 1) {
        echo "</td><td>&nbsp;&nbsp;</td><td valign=\"top\" bgcolor=\"#000000\">";
        blocks(right);
        echo "</td>";
        }
        echo "</td></tr></table></td></tr></table>";
        footmsg();
    }


    now all themes are different .. what matters is that

    the part i asked you to add is inscide the 'themeheader' function at the veryend .. thats what ur doing when u add it before that '}'

    that '}' is closing the 'themeheader' so that the function 'themefooter' can start .. make sure u add what i told u to add inscide the themeheader



    now the drawback i found is that its width is fucked .. now with that i need help .. anyone?
  • 0 users

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