Avatar billede equip.dk Nybegynder
22. november 2004 - 00:48 Der er 2 kommentarer

hjelp til rettelse i theme.php i postnuke

Er der nogle der ved hvordan jeg flytter "banner" ned ved siden af logo?

koden ser sådan ud:

$bgcolor1 = "#ffffff";
$bgcolor2 = "#ffffff";
$bgcolor3 = "#ffffff";
$bgcolor4 = "#ffffff";
$bgcolor5 = "#333333";
$textcolor1 = "#333333";
$textcolor2 = "#333333";
$postnuke_theme = true;

function OpenTable()
{
    echo "<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:$GLOBALS[bgcolor2]\"><tr><td>\n";
    echo "<table width=\"700\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:$GLOBALS[bgcolor1]\"><tr><td>\n";
}

function OpenTable2()
{
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"background-color:$GLOBALS[bgcolor2];text-align:center\"><tr><td>\n";
    echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"8\" style=\"background-color:$GLOBALS[bgcolor1]\"><tr><td>\n";
}

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

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

function themeheader()
{
    $sitename = pnConfigGetVar('sitename');
    $banners = pnConfigGetVar('banners');

    echo "</head>";
    echo "<body>";
    if(pnModAvailable('Banners'))
    {
        pnBannerDisplay();
    }
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"width:700\">\n" .
        "<tr>\n" .
        "<td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
        "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"width:700;background-color:$GLOBALS[bgcolor1]\">\n" .
        "<tr>\n" .
        "<td>\n" .
        "<a href=\"index.php\"><img src=\"" . WHERE_IS_PERSO . "images/logo.gif\" alt=\"" . _WELCOMETO . " $sitename\" /></a>\n" .
        "</td><td align=\"right\">" .
        "</td>
        </tr></table>\n</td></tr>\n<tr><td valign=\"top\" style=\"width:700;background-color:$GLOBALS[bgcolor1]\">" .
        "<table border=\"0\" cellspacing=\"0\" cellpadding=\"2\" style=\"width:700\">
          <tr><td valign=\"top\" style=\"width:0px;background-color:$GLOBALS[bgcolor1]\">";
    blocks('left');
    echo "<img src=\"images/global/pix.gif\" width=\"0\" height=\"1\" alt=\"\" />
          </td>
          <td>&nbsp;&nbsp;</td>
          <td valign=\"top\">";
    if ($GLOBALS['index'] == 1) {
        blocks('centre');
    }
}

function themefooter()
{
    if ($GLOBALS['index'] == 1) {
        echo "</td>
              <td>&nbsp;&nbsp;</td>
              <td valign=\"top\" style=\"width:0px;background-color:$GLOBALS[bgcolor1]\">";
        blocks('right');
    }
    echo "</td></tr></table>
          </td></tr></table>
          <div style=\"text-align:center\">";
    footmsg();
    echo "</div>";
}

function themeindex ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"text-align:center;background-color:$GLOBALS[bgcolor5]\" width=\"0\"><tr><td>\n" .
        "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" width=\"0\"><tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
        "<strong>$preformat[catandtitle]</strong><br />\n" .
        "<span class=\"pn-normal\">" . _POSTEDBY . ": $info[informant] " . _ON . " $info[longdatetime]\n";
    echo "<br /><a href=\"$links[searchtopic]\">$info[topicname]</a>&nbsp;\n" .
        "</span>\n</td></tr>\n" .
        "<tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n" .
        "<span class=\"pn-normal\">$info[hometext]\n<br /><br />$preformat[notes]\n<br /><br /></span>\n" .
        "</td></tr>\n" .
        "<tr><td style=\"background-color:$GLOBALS[bgcolor1];text-align:right\">\n" .
        "<span class=\"pn-sub\">$preformat[more]</span>\n" .
        "</td></tr></table>\n" .
        "</td></tr></table>\n" .
        "<br />";
}

function themearticle ($_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $_deprecated, $info, $links, $preformat)
{
    echo"
    <table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"text-align:center;background-color:$GLOBALS[bgcolor5];width:0\"><tr><td>\n
    <table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" style=\"width:0\"><tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n
    <span class=\"pn-title\">$preformat[catandtitle]</span><br />\n
    <span class=\"pn-normal\"><span class=\"pn-sub\">" . _POSTEDBY . ": $info[informant] " . _ON . " $info[briefdatetime]</span></span>\n";

    if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_EDIT)) {
        echo "&nbsp;&nbsp; <span class=\"pn-normal\"> [ <a href=\"admin.php?module=NS-AddStory&amp;op=EditStory&amp;sid=$info[sid]\">" . _EDIT . "</a> ]";
        if (pnSecAuthAction(0, 'Stories::Story', "$info[aid]:$info[cattitle]:$info[sid]", ACCESS_DELETE)) {
            echo " [ <a href=\"admin.php?module=NS-AddStory&amp;op=RemoveStory&amp;sid=$info[sid]\">" . _DELETE . "</a> ]</span>";
        }
    }
    echo "\n<br />
          <span class=\"pn-normal\"><a href=\"$links[searchtopic]\">$info[topicname]</a>&nbsp;</span>\n
    </td></tr>\n<tr><td style=\"background-color:$GLOBALS[bgcolor1]\">\n
    <span class=\"pn-normal\">$preformat[fulltext]</span>\n
    </td></tr></table>\n</td></tr></table><br />\n";
}

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

?>
Avatar billede equip.dk Nybegynder
22. november 2004 - 01:05 #1
altså i tabellen ved siden af tabellen med logo...
Avatar billede equip.dk Nybegynder
22. november 2004 - 17:26 #2
der skulle jo osse stå at det var theme.php til ExtraLite.
Ville bare gerne have hjælp fra en der kunne udpege hvor meget kode og hvilken kode jeg skal flytte ned i tabellen ved siden af logo.gif.
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester