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

Dizkus

Bottom
Help with errors in theme.php, is it a bug in Postnuke?
  • Posted: 05.12.2004, 22:17
     
    hyayang
    rank:
    Freshman Freshman
    registered:
     December 2004
    Status:
    offline
    last visit:
    05.12.04
    Posts:
    3
    hi,

    I am trying to add pictures for each block title in the theme.php.

    Code

    function themesidebox($block)
    {
        echo "<table border=\"0\" cellspacing=\"1\" cellpadding=\"0\" style=\"width:100%;background-color:$GLOBALS[bgcolor2]\">" .
             "<tr><td>" .
             "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"3\">" .
            "<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-title\"></td>$block[title]</tr>" .
             "<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-normal\">$block[content]</td></tr>" .
             "</table>" .
             "</td></tr>" .
             "</table>";
    }

    I replaced it with the following code

    Code

    "<tr><td style=\"background-color:$GLOBALS[bgcolor1]\" class=\"pn-title\"><img src=\"images/$block[title].gif\"></td></tr>" .


    I add a variable to the path of a image's "href". Is this grammar correct? I am not sure about it! I found one example in the "thelang.php"

    Code

    $content .= "<a href=\"$currentURL".$append."newlang=$k\"><img src=\"images/flags/flag-$k.png\" alt=\"$lang[$k]\" $imgsize[3]></a>";


    if this is correct, my code should be working.

    And the most strange thing is that it's working when I don't log in. When I log in, I got the follwing error.

    Not Found
    The requested URL /images/MainMenu span>

    I do have those pictures in the fold of "images".

    Can someone help me to fix it?


    Thanks

    Tracy
  • Posted: 05.12.2004, 23:32
     
    rank:
    Moderator Moderator
    registered:
     March 2002
    Status:
    offline
    last visit:
    26.08.08
    Posts:
    7720
    Please don't cross-post.

    Thread closed.

    -Mark

Extensions Moderation

Main Menu

Extensions Database

Documentation

Development

Login

Donate to Zikula