>>  Site Map >>  Forums >>  Themes 6x

Forum module - topics in forum:



Themes 6x - Discussions regarding PHP-Nuke Themes.



Blocks layout

hi everyone i have a question concerning the layout of blocks. If i look at the the themes directory in every theme there is a theme.php and i believe that the bottom part of that file is the layout of the blocks. but i change the HTML in that part and put my self made HTML in there, my site does not work anymore.

so how do i change the layout of blocks, i am pretty good with HTML and also know a bit of PHP and i am pretty good with photoshop so i can design layouts i only dont know how to code it the right way so that it can be put into my php-nuke site.

Halbarad

the table i want for my blocks is:
Code: :

<TABLE WIDTH=150 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<TR><TD background="themes/LiteRed/images/block_01.gif" WIDTH=11 ROWSPAN=3></TD>
      
<TD background=="themes/LiteRed/images/titlebackground.gif" WIDTH=130 HEIGHT=11>$title</TD>

<TD background="themes/LiteRed/images/block_03.gif" WIDTH=9 ROWSPAN=3></TD></TR>
<TR><TD background="themes/LiteRed/images/contentbackground.gif" WIDTH=130>
$content</TD></TR>
   
<TR><TD><IMG SRC="themes/LiteRed/images/block_05.gif" WIDTH=130 HEIGHT=70 ALT=""></TD></TR></TABLE>







heya

you need to add the echo's in and escape the " so it should be something like

Code: :
echo "<TABLE WIDTH=150 BORDER=0 CELLPADDING=0 CELLSPACING=0> \n"
. "<TR><TD background=\"themes/LiteRed/images/block_01.gif\" WIDTH=11 ROWSPAN=3></TD>\n"

. "<TD background=\"themes/LiteRed/images/titlebackground.gif\" WIDTH=130 HEIGHT=11>$title</TD>\n"

. "<TD background=\"themes/LiteRed/images/block_03.gif\" WIDTH=9 ROWSPAN=3></TD></TR>\n"
. "<TR><TD background=\"themes/LiteRed/images/contentbackground.gif\" WIDTH=130>
$content</TD></TR>\n"

. "<TR><TD><IMG SRC=\"themes/LiteRed/images/block_05.gif\" WIDTH=130 HEIGHT=70 ALT=\"\"></TD></TR></TABLE> \n"


that should be ok






allright, now i tried it myself with a different code, but it does not work.

this is what i did:
Code: :

echo "<TABLE WIDTH=150 BORDER=0 CELLPADDING=0 CELLSPACING=0> \n"
. "<TR><TD ROWSPAN=2><IMG SRC=\"themes/LiteRed/images/block_01.gif\" WIDTH=11 HEIGHT=19></TD>\n"
. "<TD background=\"themes/LiteRed/images/titlebackground.gif\" WIDTH=130 HEIGHT=11><font face="Verdana,Tahoma,Arial" color=000000 style="font-size: 10px;">$title</font></TD>\n"
. "<TD ROWSPAN=2><IMG SRC=\"themes/LiteRed/images/block_03.gif\" WIDTH=9 HEIGHT=19></TD></TR>\n"
   
. "<TR><TD><IMG SRC=\"themes/LiteRed/images/block_04.gif\" WIDTH=130 HEIGHT=8></TD></TR>\n"
   
. "<TR><TD background=\"themes/LiteRed/images/side1.gif\" WIDTH=11></TD>\n"
. "<TD background=\"themes/LiteRed/images/contentbackground.gif\" WIDTH=130>$content</TD>\n"
. "<TD background=\"themes/LiteRed/images/side2.gif\" WIDTH=9></TD></TR>\n"
   
. "<TR><TD COLSPAN=3><IMG SRC=\"themes/LiteRed/images/bottom.gif\" WIDTH=150 HEIGHT=70></TD></TR></TABLE>\n"







nvm. i allready fixed it, thanks anyway.

Halbarad






well now i am changing the header, and i get the same problem, there has to be a flaw in my code but i cant seem to find it and my site does not work.

Code: :

    echo "<br>"
. "<TABLE WIDTH=780 BORDER=0 CELLPADDING=0 CELLSPACING=0><TR><TD COLSPAN=4 ROWSPAN=3><A HREF=\"index.php\"><IMG SRC=\"themes/LiteRed/images/logo.gif\" WIDTH=298 HEIGHT=81 BORDER=0 alt=\"Welcome to $sitename\" title=\"Welcome to $sitename\"></A></TD>"
. "<TD COLSPAN=7><IMG SRC=\"themes/LiteRed/images/header_02.gif\" WIDTH=482 HEIGHT=3></TD></TR>"
   
. "<TR><TD COLSPAN=6><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=479 HEIGHT=74></TD>"
. "<TD ROWSPAN=3><IMG SRC=\"themes/LiteRed/images/header_04.gif\" WIDTH=3 HEIGHT=107></TD></TR>"
   
. "<TR><TD COLSPAN=6><IMG SRC=\"themes/LiteRed/images/header_05.gif\" WIDTH=479 HEIGHT=4></TD></TR>"
   
. "<TR><TD><IMG SRC="themes/LiteRed/images/header_06.gif" WIDTH=86 HEIGHT=29></TD>"
. "<TD><A HREF=\"index.php\"><IMG SRC=\"themes/LiteRed/images/homelink.gif\" WIDTH=107 HEIGHT=29 BORDER=0></A></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/header_08.gif\" WIDTH=35 HEIGHT=29></TD>"
. "<TD COLSPAN=2><A HREF=\"modules.php?name=Content\"><IMG SRC=\"themes/LiteRed/images/articleslink.gif\" WIDTH=120 HEIGHT=29 BORDER=0></A></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/header_10.gif\" WIDTH=25 HEIGHT=29></TD>"
. "<TD><A HREF=\"modules.php?name=Downloads\"><IMG SRC=\"themes/LiteRed/images/downloadslink.gif\" WIDTH=130 HEIGHT=29 BORDER=0></A></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/header_12.gif\" WIDTH=20 HEIGHT=29></TD>"
. "<TD><A HREF=\"modules.php?name=Your_Account\"><IMG SRC=\"themes/LiteRed/images/usercplink.gif\" WIDTH=115 HEIGHT=29 BORDER=0></A></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/header_14.gif\" WIDTH=139 HEIGHT=29></TD></TR>"

. "<TR><TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=86 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=107 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=35 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=70 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=50 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=25 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=130 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=20 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=115 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=139 HEIGHT=1></TD>"
. "<TD><IMG SRC=\"themes/LiteRed/images/spacer.gif\" WIDTH=3 HEIGHT=1></TD></TR></TABLE> ";







heya

missing an escape

change
Code: :
. "<TR><TD><IMG SRC="themes/LiteRed/images/header_06.gif" WIDTH=86 HEIGHT=29></TD>"


to

Code: :
. "<TR><TD><IMG SRC=\"themes/LiteRed/images/header_06.gif\" WIDTH=86 HEIGHT=29></TD>"







allright, i just knew i was a stupid mistake.

halbarad




Attention! You are currently viewing sitemap page!
We strongly suggest to look at original content

Search from web

Valid HTML 4.01 Valid CSS