View previous topic :: View next topic |
Author |
Message |
acidgloss
Joined: 08 Oct 2003 Posts: 12 Location: Long Island NY
|
Posted: Sat Nov 29, 2003 7:45 am Post subject: Multiple Layouts?? |
|
|
http://www.acidgloss.net/blog.php?m=200311
For some reason; my pages are showing up - a layout inside of a layout, inside of a layout - and so on and so forth. Any idea what I could have done wrong with my coding?? I closed all tags so I honestly don't understand what could be wrong.
Also -- Note; I've edited the b2 files so that I can run b2 in it's own directory; changing the neccessary files so that I can run the b2 program in acidgloss.net/b2 - but still load the index page in acidgloss.net - so this is where my confusion is -- Do you think I messed up the template - through this method??
Help - please?? |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Sat Nov 29, 2003 8:10 am Post subject: |
|
|
Seems you've got a serious looping problem in blog.php; could we see the source code? _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
acidgloss
Joined: 08 Oct 2003 Posts: 12 Location: Long Island NY
|
Posted: Sat Nov 29, 2003 9:30 pm Post subject: |
|
|
One of the problems is it shouldn't be running off blog.php considering the configuration is set for index.php - and I attached the index file
Code: |
<?php $blog=1; include ("b2/blog.header.php"); ?>
<HTML>
<HEAD>
<TITLE> & AcidGlossNET -- Yesterday </TITLE>
<meta http-equiv="reply-to" content="<?php bloginfo('admin_email'); ?>" />
<?php comments_popup_script() ?>
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php permalink_anchor(); ?>
<link rel="stylesheet" href="xxx.css">
<script language=JavaScript>
var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers)
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}
document.oncontextmenu=new Function("return false")
</script>
</HEAD>
<BODY TOPMARGIN=0 LEFTMARGIN=0>
<TABLE BORDER="0" STYLE="POSITION:ABSOLUTE; TOP:0PX;LEFT:0PX" CELLPADDING="0" CELLSPACING="0" WIDTH="775" HEIGHT="600">
<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="193" HEIGHT="150" BACKGROUND="/images/layout/x_1x1.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_1x2.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_1x3.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_1x4.gif">
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="193" HEIGHT="150" BACKGROUND="/images/layout/x_2x1.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_2x2.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_2x3.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_2x4.gif">
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="193" HEIGHT="150" BACKGROUND="/images/layout/x_3x1.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_3x2.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_3x3.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_3x4.gif">
</TR>
<TR>
<TD ROWSPAN="1" COLSPAN="1" WIDTH="193" HEIGHT="150" BACKGROUND="/images/layout/x_4x1.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_4x2.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_4x3.gif">
<TD ROWSPAN="1" COLSPAN="1" WIDTH="194" HEIGHT="150" BACKGROUND="/images/layout/x_4x4.gif">
</TR>
</TABLE>
<div style="position:absolute; width:440; top:545px; left:92px">
<table width=100% class=content cellpadding="2" cellspacing="0"><TR><TD>
<a href="http://regretless.com/dodo/newworld/topsites/vote.php?id=1454" target="_blank">Vote</a>
<a href="http://www.thislife.net/cgi-bin/journals/rankem.cgi?action=in&id=krissy" target="_blank">Vote</a><p>
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
<?php the_date("","<h3>","</h3>"); ?><B>» <?php the_title(); ?></b>
// By <a href="mailto:<?php the_author_email() ?>"><?php the_author() ?></a> @ <?php the_time() ?>
<BR>
<img src="musicnote.gif" border="0"> <B><?php getcustomfield('Band'); ?>:</b> <?php getcustomfield('Song'); ?><BR>
<BR>
<?php the_content(); ?>
<BR><BR>
<img src="comment.gif" border="0" alt="Commenters"> <?php getcustomfield('Commenters'); ?><BR><BR>
<img src="quote.gif" border="0" alt="quote of the moment"> <?php getcustomfield('Quote'); ?>
<BR><BR><center>
<font style="font-family:symbol">é</font>
·
<a href="mailto:[email protected]" title="[email protected]">mail</a>
·
<a href="aim:goim?screenname=acid+x+gloss" title="Acid x Gloss">im</a>
·
<a href="http://www.amazon.com/o/registry/3SK8XL2GKNFBV" target="new" title="Duh?">amzn</a> ·
<a href="http://www.hottopic.com/WishList/viewSomeonesWishList.asp?W=245282&LS=0&M=683651220&" target="new"
title="HotTopic">hot</a>
·
<a href="http://petisa.net/fl/narf" target="new" title="My Fanlisting">fan</a>
·
<a href="https://www.paypal.com/xclick/[email protected]" target="new" title="Donate Money to
Krissy!">$$</a>
·
<font style="font-family:symbol">û</font><br>
<font style="font-family:symbol">é</font>
<?php link_pages("<br />Pages: ","<br />","number") ?>
<?php comments_popup_link("Comments (0)", "Comments (1)", "Comments (%)") ?>
<?php trackback_rdf() ?>
<font style="font-family:symbol">û</font></center></center></center>
</center></center></center>
<?php include ("b2/b2comments.php"); ?>
</p>
<?php } ?>
<p>
<center>
[powered by <a href="http://cafelog.com" target="_blank"><b>b2</b></a>.]
</TR></TD></TABLE></TR></TD></TABLE></DIV></CENTER></BODY></HTML>
|
Last edited by acidgloss on Sat Nov 29, 2003 9:42 pm; edited 1 time in total |
|
Back to top |
|
 |
epolady
Joined: 30 Jul 2002 Posts: 800 Location: Texas
|
Posted: Sat Nov 29, 2003 9:40 pm Post subject: |
|
|
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
Should be directly above
<?php the_date("","<h3>","</h3>"); ?><B>» <?php the_title(); ?></b>
<?php while($row = mysql_fetch_object($result)) { start_b2(); ?>
Starts the LOOP, which causes the layout to repeat, etc. That should fix your problem. _________________ No more support from me. Goodbye!
Go upgrade to WordPress, you'll find better support there. |
|
Back to top |
|
 |
acidgloss
Joined: 08 Oct 2003 Posts: 12 Location: Long Island NY
|
Posted: Sat Nov 29, 2003 9:48 pm Post subject: |
|
|
OOOhh - Thank you; that helped. I don't know why I didn't see that.
Thanks again =D |
|
Back to top |
|
 |
|