Avatar billede ujo33 Nybegynder
08. april 2003 - 14:46 Der er 11 kommentarer og
1 løsning

PHPnuke: artiklens ramme er for stor

Jeg har problemer med ramme i forsiden. Efter jeg har oprettet en artikel kommer der en artikel med en mega stor ramme (border). Men efter jeg har logget ind som administrator bliver den til normal størrelse. Hvad er det der er gået galt? Hvor kan jeg ændre størrelse?
Avatar billede avminarm Juniormester
09. april 2003 - 09:28 #1
link til din side?
Avatar billede ujo33 Nybegynder
09. april 2003 - 13:49 #2
Den ligger lokalt...
Men theme.php ser ellers sådan us:

<?php

$bgcolor1 = "#ffffff";
$bgcolor2 = "#ffffff";
$bgcolor3 = "#ffffff";
$bgcolor4 = "#ACAEBA";
$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 CloseTable() {
    echo "</td></tr></table></td></tr></table>\n";
}

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

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

function FormatStory($thetext, $notes, $aid, $informant) {
    global $anonymous;
    if ($notes != "") {
    $notes = "<br><br><b>"._NOTE."</b> <i>$notes</i>\n";
    } else {
    $notes = "";
    }
    if ("$aid" == "$informant") {
    echo "<font class=\"content\">$thetext$notes</font>\n";
    } else {
    if($informant != "") {
        $boxstuff = "<a href=\"modules.php?name=Your_Account&amp;op=userinfo&amp;username=$informant\">$informant</a> ";
    } else {
        $boxstuff = "$anonymous ";
    }
    $boxstuff .= ""._WRITES." <i>\"$thetext\"</i>$notes\n";
    echo "<font class=\"content\">$boxstuff</font>\n";
    }
}

/************************************************************/
/* Function themeheader()                                  */
/************************************************************/

function themeheader() {
    global $banners;
    echo "<body bgcolor=\"#ffffff\" text=\"#000000\" link=\"0000ff\">"
    /*Herunder stod der ellers -> ."<br>";        */
    ."";
    if ($banners) {
    include("banners.php");
    /*Herunder stod der ellers -> echo "<br>";    */
    echo "";
    }

    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"760\" align=\"center\">\n"
    ."<tr><td width=\"100%\">\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"760\">\n"
    ."<tr><td width=\"100%\">\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"760\">\n"
    ."<tr><td width=\"100%\" height=\"88\" bgcolor=\"#FFFFFF\">\n"
    ."<table border=0 width=100% cellpadding=0 cellspacing=0><tr><td align=\"left\"><a href=\"index.php\"><img border=\"0\" src=\"themes/DeepBlue/images/logo.png\" alt=\"Welcome to $sitename!\" hspace=\"20\"></a></td><td align=\"left\"><img border=\"0\" src=\"themes/DeepBlue/images/logo-graphic.gif\"></td></tr></table></td></tr>\n"
   
   
   
    ."</td></tr><tr><td width=\"100%\" height=\"10\" bgcolor=\"#ffffff\">\n"
    ."</td></tr></table>\n"
    ."</td></tr><tr><td width=\"100%\"><table width='100%' cellspacing='0' cellpadding='0' border='0'><tr><td bgcolor='#ffffff'>\n"
;
    $public_msg = public_message();
    echo "$public_msg<br>";
    echo "</td></tr></table><table width=\"760\" cellpadding=\"0\" bgcolor=\"ffffff\" cellspacing=\"0\" border=\"0\">\n"
    ."<tr valign=\"top\">\n"
    ."<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\"></td>\n"
    ."<td width=\"138\" bgcolor=\"ffffff\" valign=\"top\">\n";
    blocks(left);
    echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td width=\"100%\">\n";
}

/************************************************************/
/* Function themefooter()                                  */
/*                                                          */
/* Control the footer for your site. You don't need to      */
/* close BODY and HTML tags at the end. In some part call  */
/* the function for right blocks with: blocks(right);      */
/* Also, $index variable need to be global and is used to  */
/* determine if the page your're viewing is the Homepage or */
/* and internal one.                                        */
/************************************************************/

function themefooter() {
    global $index;
    echo "<br>";
    if ($index == 1) {
    echo "</td><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\"></td><td valign=\"top\" width=\"138\" bgcolor=\"ffffff\">\n";
    blocks(right);
    echo "<td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"6\" height=\"1\" border=\"0\" alt=\"\">";
    }
else {
    echo "</td><td colspan=\"2\"><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"10\" height=\"1\" border=\"0\" alt=\"\">";
    }
    echo "<br><br></td></tr></table>\n"
    ."<br><center>";
    footmsg();
    echo "</center>";
}


function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#ACAEBA\">\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
    ."<img src=\"themes/DeepBlue/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
    ."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
    ."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
    ."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes, $aid, $informant);
    echo "</td></tr></table>\n"
    ."</td></tr></table><br>\n"
    ."</td></tr><tr><td bgcolor=\"#FFFFFF\" align=\"center\">\n"
    ."<font class=\"tiny\">"._POSTEDBY." ";
    formatAidHeader($aid);
    echo " "._ON." $time $timezone ($counter "._READS.")<br></font>\n"
    ."<font class=\"content\">$morelink</font></center><br>\n"
    ."<img src=\"themes/DeepBlue/images/pixel.gif\" border=\"0\" height=\"3\">\n"
    ."</td></tr></table>\n"
    ."</td></tr></table><br>\n";
}

function themearticle ($aid, $informant, $datetime, $title, $thetext, $topic, $topicname, $topicimage, $topictext) {
    global $admin, $sid, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#000000\">\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"1\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#FFFFFF\">\n"
    ."<img src=\"themes/DeepBlue/images/dot.gif\" border=\"0\"></td><td width=\"100%\" bgcolor=\"#FFFFFF\"><font class=\"option\"><b>&nbsp;$title</b></font></td></tr>\n"
    ."<tr><td colspan=\"2\" bgcolor=\"#FFFFFF\"><br>\n"
    ."<table border=\"0\" width=\"98%\" align=\"center\"><tr><td>\n"
    ."<a href=\"modules.php?name=News&new_topic=$topic\"><img src=\"$tipath$topicimage\" alt=\"$topictext\" border=\"0\" align=\"right\"></a>";
    FormatStory($thetext, $notes="", $aid, $informant);
    echo "</td></tr></table>\n"
    ."</td></tr></table><br>\n"
    ."</td></tr></table>\n"
    ."</td></tr></table><br><br>\n";
}

function themesidebox($title, $content) {
    echo "<table border=\"0\" align=\"center\" width=\"138\" cellpadding=\"0\" cellspacing=\"0\">"
    ."<tr><td background=\"themes/DeepBlue/images/table-title.gif\" width=\"138\" height=\"20\">"
    ."&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font color=\"#FFFFFF\"><b>$title</b></font>"
    ."</td></tr><tr><td><img src=\"themes/DeepBlue/images/pixel.gif\" width=\"100%\" height=\"3\"></td></tr></table>\n"
    ."<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"138\">\n"
    ."<tr><td width=\"138\" bgcolor=\"#ACAEBA\">\n"
    ."<table border=\"0\" cellpadding=\"1\" cellspacing=\"1\" width=\"138\">\n"
    ."<tr><td width=\"138\" bgcolor=\"#ffffff\">\n"
    ."$content"
    ."</td></tr></table></td></tr></table><br>";
}

?>
Avatar billede avminarm Juniormester
09. april 2003 - 14:32 #3
hmm - jeg er ikke helt med på hvad det er der går galt for dig - prøv at forklar lidt nærmere.
Avatar billede ujo33 Nybegynder
09. april 2003 - 17:53 #4
Hej igen
Jeg har udgivet den til min egen webside.
Du kan prøve at kigge på denne URL:
http://www.kalaaleq.com/ral/index.php

Bemærk den blokke i midten/nederst af siden. Den har en rigtig stor border...
Avatar billede avminarm Juniormester
11. april 2003 - 21:24 #5
jeg tror det er denne: DeepBlue/images/dot.gif - som du skal lave mindre, med et grafikprogram
Avatar billede avminarm Juniormester
11. april 2003 - 21:25 #6
nej - det er det ikke - hmmm - kigger lidt næemere på det
Avatar billede avminarm Juniormester
13. april 2003 - 09:13 #7
du kan løse det sådan:

dette afsnit kan tilpasses med CSS:

function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td bgcolor=\"#ACAEBA\">\n"


ret til:
function themeindex ($aid, $informant, $time, $title, $counter, $topic, $thetext, $notes, $morelink, $topicname, $topicimage, $topictext) {
    global $anonymous, $tipath;
    echo "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"><tr><td style=\"border: #ACAEBA; border-bottom: 1px solid #ACAEBA; border-left: 1px solid #ACAEBA; border-right: 1px solid #ACAEBA; border-top: 1px solid #ACAEBA;\">\n"

det vil dog nok være bedre at give tabelcellen en CLASS og så putte style koden over i dit stylesheet
Avatar billede ujo33 Nybegynder
14. april 2003 - 12:40 #8
Det lykkedes ! Men jeg har ellers prøvet at lægge style koden på mit stylesheet, uden resultat :-( Det er fordi jeg har aldrig rodet med css, kun når jeg skal ændre farver størrelser osv.
Der er nemlig tre css filer i/under den directory, og jeg tror det er den (nedenunder) som skal ændres. Filen hedder "forums.css" og ser således ud:

/*
  The original subSilver Theme for phpBB version 2+
  Created by subBlue design
  http://www.subBlue.com
*/


/* General page style. The scroll bar colours only visible in IE5.5+ */
body {
    background-color: #000000;
    scrollbar-face-color: #DEE3E7;
    scrollbar-highlight-color: #FFFFFF;
    scrollbar-shadow-color: #DEE3E7;
    scrollbar-3dlight-color: #D1D7DC;
    scrollbar-arrow-color:  #006699;
    scrollbar-track-color: #EFEFEF;
    scrollbar-darkshadow-color: #98AAB1;
}

/* General font families for common tags */
font,th,td,p { font-family: Verdana, Arial, Helvetica, sans-serif }
a:link,a:visited { color : #993366; }
a:active { color : #215DC6; }
a:hover        { text-decoration: underline; color : #000000; }
hr    { height: 0px; border: solid #D1D7DC 0px; border-top-width: 1px;}


/* This is the border line & background colour round the entire page */
.bodyline    { background-color: #FFFFFF; border: 1px #98AAB1 solid; }

/* This is the outline round the main forum tables */
.forumline    { background-color: #FFFFFF; border: 2px #006699 solid; }


/* Main table cell colours and backgrounds */
td.row1    { background-color: #EFEFEF; }
td.row2    { background-color: #DEE3E7; }
td.row3    { background-color: #D1D7DC; }


/*
  This is for the table cell above the Topics, Post & Last posts on the index.php page
  By default this is the fading out gradiated silver background.
  However, you could replace this with a bitmap specific for each forum
*/
td.rowpic {
        background-color: #FFFFFF;
        background-image: url(images/cellpic2.jpg);
        background-repeat: repeat-y;
}

/* Header cells - the blue and silver gradient backgrounds */
th    {
    color: #FFA34F; font-size: 11px; font-weight : bold;
    background-color: #006699; height: 25px;
    background-image: url(images/cellpic3.gif);
}

td.cat,td.catHead,td.catSides,td.catLeft,td.catRight,td.catBottom {
            background-image: url(images/cellpic1.gif);
            background-color:#D1D7DC; border: #FFFFFF; border-style: solid; height: 28px;
}


/*
  Setting additional nice inner borders for the main table cells.
  The names indicate which sides the border will be on.
  Don't worry if you don't understand this, just ignore it :-)
*/
td.cat,td.catHead,td.catBottom {
    height: 29px;
    border-width: 0px 0px 0px 0px;
}
th.thHead,th.thSides,th.thTop,th.thLeft,th.thRight,th.thBottom,th.thCornerL,th.thCornerR {
    font-weight: bold; border: #FFFFFF; border-style: solid; height: 28px; }
td.row3Right,td.spaceRow {
    background-color: #D1D7DC; border: #FFFFFF; border-style: solid; }

th.thHead,td.catHead { font-size: 12px; border-width: 1px 1px 0px 1px; }
th.thSides,td.catSides,td.spaceRow    { border-width: 0px 1px 0px 1px; }
th.thRight,td.catRight,td.row3Right    { border-width: 0px 1px 0px 0px; }
th.thLeft,td.catLeft      { border-width: 0px 0px 0px 1px; }
th.thBottom,td.catBottom  { border-width: 0px 1px 1px 1px; }
th.thTop    { border-width: 1px 0px 0px 0px; }
th.thCornerL { border-width: 1px 0px 0px 1px; }
th.thCornerR { border-width: 1px 1px 0px 0px; }

Story.table { border: #ACAEBA; border-bottom: 1px solid #ACAEBA; border-left: 1px solid #ACAEBA; border-right: 1px solid #ACAEBA; border-top: 1px solid #ACAEBA; }


/* The largest text used in the index page title and toptic title etc. */
.maintitle,h1,h2    {
            font-weight: bold; font-size: 22px; font-family: "Trebuchet MS",Verdana, Arial, Helvetica, sans-serif;
            text-decoration: none; line-height : 120%; color : #000000;
}


/* General text */
.gen { font-size : 12px; }
.genmed { font-size : 11px; }
.gensmall { font-size : 10px; }
.gen,.genmed,.gensmall { color : #000000; }
a.gen,a.genmed,a.gensmall { color: #006699; text-decoration: none; }
a.gen:hover,a.genmed:hover,a.gensmall:hover    { color: #DD6900; text-decoration: underline; }


/* The register, login, search etc links at the top of the page */
.mainmenu        { font-size : 11px; color : #000000 }
a.mainmenu        { text-decoration: none; color : #006699;  }
a.mainmenu:hover{ text-decoration: underline; color : #DD6900; }


/* Forum category titles */
.cattitle        { font-weight: bold; font-size: 12px ; letter-spacing: 1px; color : #006699}
a.cattitle        { text-decoration: none; color : #006699; }
a.cattitle:hover{ text-decoration: underline; }


/* Forum title: Text and link to the forums used in: index.php */
.forumlink        { font-weight: bold; font-size: 12px; color : #006699; }
a.forumlink     { text-decoration: none; color : #006699; }
a.forumlink:hover{ text-decoration: underline; color : #DD6900; }


/* Used for the navigation text, (Page 1,2,3 etc) and the navigation bar when in a forum */
.nav            { font-weight: bold; font-size: 11px; color : #000000;}
a.nav            { text-decoration: none; color : #006699; }
a.nav:hover        { text-decoration: underline; }


/* titles for the topics: could specify viewed link colour too */
.topictitle            { font-weight: bold; font-size: 11px; color : #000000; }
a.topictitle:link  { text-decoration: none; color : #006699; }
a.topictitle:visited { text-decoration: none; color : #5493B4; }
a.topictitle:hover    { text-decoration: underline; color : #DD6900; }


/* Name of poster in viewmsg.php and viewtopic.php and other places */
.name            { font-size : 11px; color : #000000;}

/* Location, number of posts, post date etc */
.postdetails        { font-size : 10px; color : #000000; }


/* The content of the posts (body of text) */
.postbody { font-size : 12px;}
a.postlink:link    { text-decoration: none; color : #006699 }
a.postlink:visited { text-decoration: none; color : #5493B4; }
a.postlink:hover { text-decoration: underline; color : #DD6900}


/* Quote & Code blocks */
.code {
    font-family: Courier, 'Courier New', sans-serif; font-size: 11px; color: #006600;
    background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
    border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}

.quote {
    font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 11px; color: #444444; line-height: 125%;
    background-color: #FAFAFA; border: #D1D7DC; border-style: solid;
    border-left-width: 1px; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px
}


/* Copyright and bottom info */
.copyright        { font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; color: #444444; letter-spacing: -1px;}
a.copyright        { color: #444444; text-decoration: none;}
a.copyright:hover { color: #000000; text-decoration: underline;}


/* Form elements */
input,textarea, select {
    color : #000000;
    font: normal 11px Verdana, Arial, Helvetica, sans-serif;
    border-color : #000000;
}

/* The text input fields background colour */
input.post, textarea.post, select {
    background-color : #FFFFFF;
}

input { text-indent : 2px; }

/* The buttons used for bbCode styling in message post */
input.button {
    background-color : #EFEFEF;
    color : #000000;
    font-size: 11px; font-family: Verdana, Arial, Helvetica, sans-serif;
}

/* The main submit button option */
input.mainoption {
    background-color : #FAFAFA;
    font-weight : bold;
}

/* None-bold submit button */
input.liteoption {
    background-color : #FAFAFA;
    font-weight : normal;
}

/* This is the line in the posting page which shows the rollover
  help line. This is actually a text box, but if set to be the same
  colour as the background no one will know ;)
*/
.helpline { background-color: #DEE3E7; border-style: none; }


/* Import the fancy styles for IE only (NS4.x doesn't use the @import function) */
@import url("formIE.css");

----------------------------------------------------------------------

Skal jeg så putte stylesheet/class koder ind i "theme.php"  ?
Avatar billede avminarm Juniormester
14. april 2003 - 13:31 #9
i din css fil laver du en class - dvs indsætter flg:

.ramme{
border: #ACAEBA;
border-bottom: 1px solid #ACAEBA;
border-left: 1px solid #ACAEBA;
border-right: 1px solid #ACAEBA;
border-top: 1px solid #ACAEBA;
}

og i din theme.php ændrer du flg:
><td style=\"border: #ACAEBA; border-bottom: 1px solid #ACAEBA; border-left: 1px solid #ACAEBA; border-right: 1px solid #ACAEBA; border-top: 1px solid #ACAEBA;\">\n"

til:
><td class=\"ramme\">\n"
Avatar billede avminarm Juniormester
14. april 2003 - 13:32 #10
og jeg tror det er din fil der hedder style.css du skal rette i ;o)
Avatar billede ujo33 Nybegynder
14. april 2003 - 13:57 #11
Mange TAK skal du have ! Så nu ved jeg hvordan jeg skal bruge css i fremtiden.
Der er også andre ting jeg vil gerne spørge om, men lige nu skal jeg lige afslutte dette emne og starte nyt igen. Jeg håber du kan hjælpe mig igen snart ;-)
Avatar billede avminarm Juniormester
14. april 2003 - 14:53 #12
du spør bare - og tak for points ;o)
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